Skip to content

Commit

Permalink
[strapi]ffmpeg-qsv avc using consolidated strapi generators
Browse files Browse the repository at this point in the history
Signed-off-by: Focus Luo <[email protected]>
  • Loading branch information
FocusLuo committed Aug 20, 2024
1 parent 026b8ad commit d704827
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/ffmpeg-qsv/encode/avc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
###

from ....lib import *
from ....lib.parameters_strapi import *
from ....lib.ffmpeg.qsv.util import *
from ....lib.ffmpeg.qsv.encoder import AVCEncoderTest, AVCEncoderLPTest
from ....lib.ffmpeg.qsv.encoder import StringAPIEncoder
Expand Down Expand Up @@ -39,7 +38,7 @@ def test_r2r(self, case, gop, slices, bframes, qp, quality, profile):
self.encode()

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

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

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

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

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

@slash.requires(*have_ffmpeg_encoder_options("h264_qsv", "qsv_params"))
@slash.parametrize(*gen_avc_vbr_lp_strapi_parameters(spec, ['high', 'main']))
@slash.parametrize(*gen_avc_vbr_lp_parameters(spec, ['high', 'main'], strapi=True))
def test_strapi(self, case, gop, slices, bframes, bitrate, fps, quality, refs, profile):
self.EncoderClass = StringAPIEncoder
self.init(spec, case, gop, slices, bframes, bitrate, fps, quality, refs, profile)
Expand Down

0 comments on commit d704827

Please sign in to comment.