text: ###
  ### Copyright (C) 2018-2019 Intel Corporation
  ###
  ### SPDX-License-Identifier: BSD-3-Clause
  ###
  
  from .....lib import *
  from .....lib.ffmpeg.qsv.util import *
  from .....lib.ffmpeg.qsv.decoder import DecoderTest
  
  spec = load_test_spec("hevc", "decode", "10bit")
  
  @slash.requires(*platform.have_caps("decode", "hevc_10"))
  @slash.requires(*have_ffmpeg_decoder("hevc_qsv"))
  class default(DecoderTest):
    def before(self):
      vars(self).update(
        caps      = platform.get_caps("decode", "hevc_10"),
        ffdecoder = "hevc_qsv",
        # default metric
        metric    = dict(type = "ssim", miny = 1.0, minu = 1.0, minv = 1.0),
      )
      super(default, self).before()
  
    @slash.parametrize(("case"), sorted(spec.keys()))
    def test(self, case):
      vars(self).update(spec[case].copy())
      vars(self).update(case = case)
      self.decode()
  