Home | History | Annotate | Download | only in video_HangoutHardwarePerf
      1 # Copyright 2014 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 AUTHOR = 'Chrome OS Team, chromeos-video (a] google.com'
      6 NAME = 'video_HangoutHardwarePerf.power.vp8'
      7 PURPOSE = """
      8 Monitor the performance of running VDA and VEA concurrently in a Hangout
      9 like scenario.
     10 """
     11 CRITERIA = """
     12 The test fails if the vda_unittest or the vea_unittest fails or crashes.
     13 """
     14 TIME = 'SHORT'
     15 TEST_CATEGORY = 'Performance'
     16 TEST_CLASS = 'video'
     17 TEST_TYPE = 'client'
     18 # Reboot in the lab after the test ends.
     19 DEPENDENCIES = 'cleanup-reboot, hw_video_acc_vp8, hw_video_acc_enc_vp8'
     20 BUG_TEMPLATE = {
     21     'labels': ['OS-Chrome', 'VideoTestFailure'],
     22 }
     23 
     24 DOC = """
     25 This test utilizes the vda_unittest and vea_unittest to measure the
     26 performance of using the hardware Video Decode/Encode Accelerator
     27 concurrently.
     28 """
     29 
     30 # Used resources. They will be downloaded in the beginning of the test.
     31 resources = [
     32     'crowd/crowd720-41e9a3e6a6b1644ebdb3f5723fce96e5.vp8',
     33     'crowd/crowd180-bde69ca71393033d9187a2833720c9f8.vp8',
     34     'crowd/crowd720-3cfe7b096f765742b4aa79e55fe7c994.yuv',
     35     'crowd/crowd360-e84aac15c05b9b19250f3fc97722e0f6.yuv',
     36     'crowd/crowd180-6d71fa96da062037482619df31830a97.yuv']
     37 
     38 # The videos to be decoded. Each entry consists of the following parts:
     39 #   [vidoe_name, width, height, frame_num, fragment_num, profile]
     40 decode_videos  = [['crowd720.vp8', 1280, 720, 500, 502, 11]]
     41 decode_videos += [['crowd180.vp8', 320, 180, 500, 502, 11]] * 4
     42 
     43 # The videos to be encoded.
     44 #   [video_name, width, height, profile, bit_rate]
     45 encode_videos = [
     46     ['crowd720.yuv', 1280, 720, 11, 1200000],
     47     ['crowd360.yuv', 640, 360, 11, 500000],
     48     ['crowd180.yuv', 320, 180, 11, 100000]]
     49 
     50 job.run_test('video_HangoutHardwarePerf',
     51     resources=resources,
     52     decode_videos=decode_videos,
     53     encode_videos=encode_videos,
     54     measurement='power')
     55