1 # Copyright 2015 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_VEAPerf.vp8" 7 PURPOSE = "Monitor the performance of the Chromium VEA." 8 CRITERIA = """ 9 The test fails if the video_encode_accelerator_unittest fails or crashes. 10 """ 11 ATTRIBUTES = "suite:crosbolt_perf_nightly" 12 SUITE = "crosbolt_perf_nightly" 13 TIME = "MEDIUM" 14 TEST_CATEGORY = "Performance" 15 TEST_CLASS = "video" 16 TEST_TYPE = "client" 17 DEPENDENCIES='hw_video_acc_enc_vp8' 18 BUG_TEMPLATE = { 19 'labels': ['OS-Chrome', 'VideoTestFailure'], 20 'cc': ['chromeos-video-test-failures (a] google.com'], 21 } 22 23 DOC = """ 24 This test utilizes the video_encode_accelerator_unittest to measure the 25 performance of the Chromium Video Encode Accelerator. 26 """ 27 28 # A list of test cases. Each entry consists of the following parts: 29 # (path, on_cloud, width, height, requested_bit_rate, profile, requested_frame_rate) 30 # 31 # Bitrate settings come from http://www.webmproject.org/hardware/rtc-coding-requirements/ 32 # Please do not change bitrates. 33 # 34 # Requested_frame_rate settings control input frame rates when measuring CPU 35 # usage. 36 # (VEA_unittest reuses per-stream requested-frame-rate as input frame rate when 37 # --run_at_fps option is enabled.) 38 test_cases = [ 39 ('tulip2/tulip2-1280x720-1b95123232922fe0067869c74e19cd09.yuv', True, 1280, 720, 1200000, 11, 30), 40 ('tulip2/tulip2-640x360-094bd827de18ca196a83cc6442b7b02f.yuv', True, 640, 360, 500000, 11, 30), 41 ('tulip2/tulip2-320x180-55be7124b3aec1b72bfb57f433297193.yuv', True, 320, 180, 100000, 11, 30), 42 ('tulip2/tulip2-240x136-ed58afc99d08e5d21013c1a5056e43bf.yuv', True, 240, 136, 100000, 11, 30) 43 ] 44 45 job.run_test('video_VEAPerf', test_cases=test_cases) 46