1 # Copyright (c) 2018 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_VDAPerf" 7 PURPOSE = "Monitor the performance of the Chromium hardware VDA." 8 CRITERIA = """ 9 The test fails if the video_decode_accelerator_unittest fails or crashes. 10 """ 11 ATTRIBUTES = "suite:crosbolt_perf_perbuild" 12 TIME = "SHORT" 13 TEST_CATEGORY = "Performance" 14 TEST_CLASS = "video" 15 TEST_TYPE = "client" 16 # Reboot in the lab after the test ends. 17 DEPENDENCIES='cleanup-reboot' 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_decode_accelerator_unittest to measure the 25 performance of the Chromium hardware Video Decode Accelerator. 26 """ 27 28 # A list of test cases. Each entry consists of the following parts: 29 # [download_path, width, height, frame_num, fragment_num, profile, fps, required_cap] 30 test_cases = [ 31 # h264 32 ['crowd/crowd720-8f5d51b87ca7942133b76c9132438883.h264', 1280, 720, 500, 502, 1, 50, 'hw_dec_h264_1080_30'], 33 ['crowd/crowd1080-8a06b8d0da05bb62166c199be855d617.h264', 1920, 1080, 500, 506, 1, 50, 'hw_dec_h264_1080_60'], 34 # h264.4k 35 ['crowd/crowd2160-e63c73bc1d3d149cf35a994241441439.h264', 3840, 2160, 500, 506, 1, 50, 'hw_dec_h264_2160_60'], 36 # vp8 37 ['crowd/crowd720-41e9a3e6a6b1644ebdb3f5723fce96e5.vp8', 1280, 720, 500, 534, 11, 50, 'hw_dec_vp8_1080_30'], 38 ['crowd/crowd1080-1edaaca36b67e549c51e5fea4ed545c3.vp8', 1920, 1080, 500, 539, 11, 50, 'hw_dec_vp8_1080_60'], 39 # vp8.4k 40 ['crowd/crowd2160-4271c26c5a9215b310e834b42165ad96.vp8', 3840, 2160, 500, 533, 11, 50, 'hw_dec_vp8_2160_60'], 41 # vp9 42 ['crowd/crowd1080-fa0fcc36d28e514c8f0a4fdace3443ce.vp9', 1920, 1080, 500, 500, 12, 50, 'hw_dec_vp9_1080_60'], 43 # vp9.4k 44 ['Shaka-Dash/2160_60_10s_600frames-9997299a4e2c853ab2543fc2f813294a.vp9', 3840, 2160, 600, 600, 12, 60, 'hw_dec_vp9_2160_60'], 45 ] 46 47 job.run_test('video_VDAPerf', test_cases=test_cases) 48