1 # Copyright 2015 The Chromium OS 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 SUPPORTED_BOARDS = ['lumpy', 'daisy', 'falco', 'link', 'parrot', 'peppy', 6 'peach_pi', 'peach_pit', 'auron_paine', 'squawks', 'cyan' 7 'veyron_jerry', 'chell'] 8 9 DESIRED_WIDTH = 864 10 DESIRED_HEIGHT = 494 11 12 TEST_DIR = '/tmp/test' 13 GOLDEN_CHECKSUMS_FILENAME = 'golden_checksums.txt' 14 GOLDEN_CHECKSUM_REMOTE_BASE_DIR = ( 15 'https://storage.googleapis.com/chromiumos-test-assets-public' 16 '/golden_images_video_image_comparison') 17 18 IMAGE_FORMAT = 'png' 19 FCOUNT = 330 20 MAX_FRAME_REPEAT_COUNT = 5 21 MAX_DIFF_TOTAL_FCOUNT = 10 22 MAX_NONMATCHING_FCOUNT = 10 23 NUM_CAPTURE_TRIES = 10 24 25 #Hardware decoding constants 26 MEDIA_GVD_INIT_STATUS = 'Media.GpuVideoDecoderInitializeStatus' 27 MEDIA_GVD_ERROR = 'Media.GpuVideoDecoderError' 28 RTC_INIT_HISTOGRAM = 'Media.RTCVideoDecoderInitDecodeSuccess' 29 MEDIA_RECORDER_VEA_USED_HISTOGRAM = 'Media.MediaRecorder.VEAUsed' 30 MEDIA_GVD_BUCKET = 0 31 RTC_VIDEO_INIT_BUCKET = 1 32 MEDIA_CAVDA_INIT_STATUS = ( 33 'Media.GpuArcVideoDecodeAccelerator.InitializeResult') 34 MEDIA_CAVDA_BUCKET = 0 35 MEDIA_RECORDER_VEA_USED_BUCKET = 1 36 MEDIA_RECORDER_VEA_NOT_USED_BUCKET = 0 37 38 #Path for video HTML file which helps for video operations 39 CROS_VIDEO_DIR = '/usr/local/autotest/cros/video' 40 VIDEO_HTML_FILEPATH = CROS_VIDEO_DIR + '/video.html' 41 42 #Playback duration to check video can play 43 PLAYBACK_TEST_TIME_S = 10 44