Skip to content

Commit

Permalink
[strapi] avc/hevc/av1 add strapi check
Browse files Browse the repository at this point in the history
Signed-off-by: Focus Luo <[email protected]>
  • Loading branch information
FocusLuo committed Aug 1, 2024
1 parent 8caa6da commit 9a1a2e3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions test/ffmpeg-qsv/encode/av1.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_r2r(self, case, gop, bframes, tilecols, tilerows, qp, quality, profile)
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("av1_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("av1_qsv", "qsv_params"))
@slash.parametrize(*gen_av1_cqp_strapi_parameters(spec))
def test_strapi(self, case, gop, bframes, tilecols, tilerows, qp, quality, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -101,7 +101,7 @@ def test_r2r(self, case, gop, bframes, tilecols, tilerows, bitrate, quality, fps
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("av1_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("av1_qsv", "qsv_params"))
@slash.parametrize(*gen_av1_cbr_strapi_parameters(spec))
def test_strapi(self, case, gop, bframes, tilecols, tilerows, bitrate, quality, fps, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_r2r(self, case, gop, bframes, tilecols, tilerows, bitrate, fps, quality
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("av1_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("av1_qsv", "qsv_params"))
@slash.parametrize(*gen_av1_vbr_strapi_parameters(spec))
def test_strapi(self, case, gop, bframes, tilecols, tilerows, bitrate, fps, quality, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -171,7 +171,7 @@ def test_r2r(self, case, gop, bframes, tilecols, tilerows, qp, quality, profile)
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("av1_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("av1_qsv", "qsv_params"))
@slash.parametrize(*gen_av1_cqp_lp_strapi_parameters(spec))
def test_strapi(self, case, gop, bframes, tilecols, tilerows, qp, quality, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -233,7 +233,7 @@ def test_r2r(self, case, gop, bframes, tilecols, tilerows, bitrate, quality, fps
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("av1_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("av1_qsv", "qsv_params"))
@slash.parametrize(*gen_av1_cbr_lp_strapi_parameters(spec))
def test_strapi(self, case, gop, bframes, tilecols, tilerows, bitrate, quality, fps, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -270,7 +270,7 @@ def test_r2r(self, case, gop, bframes, tilecols, tilerows, bitrate, fps, quality
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("av1_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("av1_qsv", "qsv_params"))
@slash.parametrize(*gen_av1_vbr_lp_strapi_parameters(spec))
def test_strapi(self, case, gop, bframes, tilecols, tilerows, bitrate, fps, quality, profile):
self.EncoderClass = StringAPIEncoder
Expand Down
12 changes: 6 additions & 6 deletions test/ffmpeg-qsv/encode/avc.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_r2r(self, case, gop, slices, bframes, qp, quality, profile):
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("h264_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("h264_qsv", "qsv_params"))
@slash.parametrize(*gen_avc_cqp_strapi_parameters(spec, ['high', 'main', 'baseline']))
def test_strapi(self, case, gop, slices, bframes, qp, quality, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -70,7 +70,7 @@ def test_r2r(self, case, gop, slices, bframes, qp, quality, profile):
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("h264_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("h264_qsv", "qsv_params"))
@slash.parametrize(*gen_avc_cqp_lp_strapi_parameters(spec, ['high', 'main']))
def test_strapi(self, case, gop, slices, bframes, qp, quality, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -104,7 +104,7 @@ def test_r2r(self, case, gop, slices, bframes, bitrate, fps, profile):
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("h264_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("h264_qsv", "qsv_params"))
@slash.parametrize(*gen_avc_cbr_strapi_parameters(spec, ['high', 'main', 'baseline']))
def test_strapi(self, case, gop, slices, bframes, bitrate, fps, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_r2r(self, case, gop, slices, bframes, bitrate, fps, profile):
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("h264_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("h264_qsv", "qsv_params"))
@slash.parametrize(*gen_avc_cbr_lp_strapi_parameters(spec, ['high', 'main']))
def test_strapi(self, case, gop, slices, bframes, bitrate, fps, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -174,7 +174,7 @@ def test_r2r(self, case, gop, slices, bframes, bitrate, fps, quality, refs, prof
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("h264_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("h264_qsv", "qsv_params"))
@slash.parametrize(*gen_avc_vbr_strapi_parameters(spec_r2r, ['high', 'main', 'baseline']))
def test_strapi(self, case, gop, slices, bframes, bitrate, fps, quality, refs, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -228,7 +228,7 @@ def test_tcbrc(self, case, bitrate, fps, profile):
)
self.encode()

@slash.requires(*have_string_api("h264_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("h264_qsv", "qsv_params"))
@slash.parametrize(*gen_avc_vbr_lp_strapi_parameters(spec, ['high', 'main']))
def test_strapi(self, case, gop, slices, bframes, bitrate, fps, quality, refs, profile):
self.EncoderClass = StringAPIEncoder
Expand Down
12 changes: 6 additions & 6 deletions test/ffmpeg-qsv/encode/hevc.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_r2r(self, case, gop, slices, bframes, qp, quality, profile):
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("hevc_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("hevc_qsv", "qsv_params"))
@slash.parametrize(*gen_hevc_cqp_strapi_parameters(spec, ['main']))
def test_strapi(self, case, gop, slices, bframes, qp, quality, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -70,7 +70,7 @@ def test_r2r(self, case, gop, slices, qp, quality, profile):
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("hevc_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("hevc_qsv", "qsv_params"))
@slash.parametrize(*gen_hevc_cqp_lp_strapi_parameters(spec, ['main']))
def test_strapi(self, case, gop, slices, qp, quality, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -104,7 +104,7 @@ def test_r2r(self, case, gop, slices, bframes, bitrate, fps, profile):
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("hevc_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("hevc_qsv", "qsv_params"))
@slash.parametrize(*gen_hevc_cbr_strapi_parameters(spec, ['main']))
def test_strapi(self, case, gop, slices, bframes, bitrate, fps, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -137,7 +137,7 @@ def test_r2r(self, case, gop, slices, bitrate, fps, profile):
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("hevc_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("hevc_qsv", "qsv_params"))
@slash.parametrize(*gen_hevc_cbr_lp_strapi_parameters(spec, ['main']))
def test_strapi(self, case, gop, slices, bitrate, fps, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -173,7 +173,7 @@ def test_r2r(self, case, gop, slices, bframes, bitrate, fps, quality, refs, prof
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("hevc_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("hevc_qsv", "qsv_params"))
@slash.parametrize(*gen_hevc_vbr_strapi_parameters(spec, ['main']))
def test_strapi(self, case, gop, slices, bframes, bitrate, fps, quality, refs, profile):
self.EncoderClass = StringAPIEncoder
Expand Down Expand Up @@ -211,7 +211,7 @@ def test_r2r(self, case, gop, slices, bitrate, fps, quality, refs, profile):
vars(self).setdefault("r2r", 5)
self.encode()

@slash.requires(*have_string_api("hevc_qsv"))
@slash.requires(*have_ffmpeg_encoder_options("hevc_qsv", "qsv_params"))
@slash.parametrize(*gen_hevc_vbr_lp_strapi_parameters(spec, ['main']))
def test_strapi(self, case, gop, slices, bitrate, fps, quality, refs, profile):
self.EncoderClass = StringAPIEncoder
Expand Down

0 comments on commit 9a1a2e3

Please sign in to comment.