Home | History | Annotate | Download | only in video_PlaybackQuality
      1 # Copyright 2016 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 from autotest_lib.server import utils
      6 
      7 AUTHOR = 'chromeos-chameleon'
      8 NAME = 'video_PlaybackQuality.mp4'
      9 PURPOSE = 'Measure video playback quality and dropped frame count.'
     10 ATTRIBUTES = "suite:chameleon_dp, suite:chameleon_dp_hdmi, suite:chameleon_hdmi_perbuild, suite:chameleon_hdmi"
     11 TIME = 'MEDIUM'
     12 TEST_CATEGORY = 'Performance'
     13 TEST_CLASS = 'video'
     14 TEST_TYPE = 'server'
     15 DEPENDENCIES = 'chameleon'
     16 JOB_RETRIES = 2
     17 
     18 DOC = """
     19 This test measure video playback quality by playback mp4 video format file.
     20 It will measure the top/bottom/left/right color bars correction during the
     21 playback.
     22 """
     23 
     24 VIDEO_URL = ('http://commondatastorage.googleapis.com/'
     25         'chromiumos-test-assets-public/chameleon/'
     26         'video_PlaybackQuality/'
     27         'video_quality.mp4')
     28 VIDEO_DESCRIPTION = '1920_1080_60fps_mp4'
     29 
     30 TEST_REGIONS= [('Top', (0, 96, 1920, 32)),
     31                ('Left', (96, 0, 32, 1080)),
     32                ('Bottom', (0, 1080 - 96 - 32, 1920, 32)),
     33                ('Right', (1920 - 96 - 32, 0, 32, 1080))]
     34 
     35 args_dict = utils.args_to_dict(args)
     36 chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
     37 
     38 def run(machine):
     39     host = hosts.create_host(machine, chameleon_args=chameleon_args)
     40     job.run_test('video_PlaybackQuality', host=host, video_url=VIDEO_URL,
     41                  test_regions=TEST_REGIONS, video_description=VIDEO_DESCRIPTION)
     42 
     43 parallel_simple(run, machines)
     44