Skip to content

Commit

Permalink
ffmpeg-vaapi/vpp: add AV1 HDR tonemap tests
Browse files Browse the repository at this point in the history
Signed-off-by: Wang Hangjie <hangjiex.wang@intel.com>
  • Loading branch information
Hangjie22Coder authored and uartie committed May 29, 2024
1 parent d3bfb0e commit ff4ef41
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion test/ffmpeg-vaapi/vpp/tonemap.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###
### Copyright (C) 2018-2023 Intel Corporation
### Copyright (C) 2018-2024 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
Expand Down Expand Up @@ -44,3 +44,20 @@ def test_h2s_r2r(self, case, csc):
self.init(spec_hevc_r2r, case, "h2s", csc)
vars(self).setdefault("r2r", 5)
self.vpp()


spec_av1 = load_test_spec("vpp", "tonemap", "av1_10")

@slash.requires(*platform.have_caps("decode", "av1_10"))
@slash.requires(*have_ffmpeg_filter_options("tonemap_vaapi", "format"))
@slash.requires(*have_ffmpeg_decoder("av1"))
class av1(TonemapTest):
def before(self):
self.ffdecoder = "av1"
super().before()

@slash.requires(*platform.have_caps("vpp", "tonemap", "h2s"))
@slash.parametrize(*gen_vpp_h2s_parameters(spec_av1))
def test_h2s(self, case, csc):
self.init(spec_av1, case, "h2s", csc)
self.vpp()

0 comments on commit ff4ef41

Please sign in to comment.