1# Copyright (c) 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 5AUTHOR = "Chrome OS Team, chromeos-video@google.com" 6NAME = "video_VideoEncodeAccelerator.vp8" 7PURPOSE = "Verify Chromium hardware Video Encode Acceleration works." 8CRITERIA = """ 9This test will fail if any of the tests in video_encode_accelerator_unittest 10fails. Running video_encode_accelerator_unittest is skipped on machines that are 11known not to support video encode. 12""" 13ATTRIBUTES = "suite:video" 14TIME = "MEDIUM" 15TEST_CATEGORY = "Functional" 16TEST_CLASS = "video" 17TEST_TYPE = "client" 18 19DOC = """ 20This is a wrapper test for Chrome video_encode_accelerator_unittest. 21""" 22 23# Format of each stream: 24# (path, width, height, requested_bit_rate, requested_frame_rate, 25# requested_subsequent_bit_rate, requested_subsequent_frame_rate, 26# pixel_format) 27# requested_frame_rate, requested_subsequent_bit_rate and 28# requested_subsequent_frame_rate may be None, which means to set the default 29# value. 30# 31# Bitrates setting come from http://www.webmproject.org/hardware/rtc-coding-requirements/ 32# The bitrate setting of 1080p comes from 33# third_party/libjingle/source/talk/media/webrtc/simulcast.cc. 34# Please do not change bitrates. 35streams = [ 36 ('crowd/crowd1080-96f60dd6ff87ba8b129301a0f36efc58.yuv', 37 1920, 1080, 4000000, None, None, None, 1), 38 ('tulip2/tulip2-1280x720-1b95123232922fe0067869c74e19cd09.yuv', 39 1280, 720, 1200000, None, None, None, 1), 40 ('tulip2/tulip2-640x360-094bd827de18ca196a83cc6442b7b02f.yuv', 41 640, 360, 500000, None, None, None, 1), 42 ('tulip2/tulip2-320x180-55be7124b3aec1b72bfb57f433297193.yuv', 43 320, 180, 100000, None, None, None, 1), 44 45 # Disable bitrate switch test for http://crbug.com/901227. 46 # Change bit rate at the middle. 47 # ('tulip2/tulip2-1280x720-1b95123232922fe0067869c74e19cd09.yuv', 48 # 1280, 720, 1200000, None, 300000, None, 1), 49 # ('tulip2/tulip2-1280x720-1b95123232922fe0067869c74e19cd09.yuv', 50 # 1280, 720, 300000, None, 600000, None, 1), 51 # ('tulip2/tulip2-1280x720-1b95123232922fe0067869c74e19cd09.yuv', 52 # 1280, 720, 600000, None, 1200000, None, 1), 53 ] 54# Disable the 240x136 video for http://crbug.com/548109. 55# TODO: Enable the test after PSNR(with block) verification is merged: 56# ('tulip2/tulip2-240x136-ed58afc99d08e5d21013c1a5056e43bf.yuv', 57# 240, 136, 100000, None, None, None, 1)] 58 59job.run_test('video_VideoEncodeAccelerator', in_cloud=True, streams=streams, 60 profile=11, tag='vp8', capability='hw_enc_vp8_1080_30') 61