• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5from autotest_lib.server import utils
6
7AUTHOR = 'chromeos-chameleon'
8NAME = 'video_PlaybackQuality.mp4'
9PURPOSE = 'Measure video playback quality and dropped frame count.'
10ATTRIBUTES = "suite:chameleon_dp, suite:chameleon_dp_hdmi, suite:chameleon_hdmi_perbuild, suite:chameleon_hdmi"
11TIME = 'MEDIUM'
12TEST_CATEGORY = 'Performance'
13TEST_CLASS = 'video'
14TEST_TYPE = 'server'
15DEPENDENCIES = 'chameleon'
16JOB_RETRIES = 2
17
18DOC = """
19This test measure video playback quality by playback mp4 video format file.
20It will measure the top/bottom/left/right color bars correction during the
21playback.
22"""
23
24VIDEO_URL = ('http://commondatastorage.googleapis.com/'
25        'chromiumos-test-assets-public/chameleon/'
26        'video_PlaybackQuality/'
27        'video_quality.mp4')
28VIDEO_DESCRIPTION = '1920_1080_60fps_mp4'
29
30TEST_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
35args_dict = utils.args_to_dict(args)
36chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
37
38def 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
43parallel_simple(run, machines)
44