Skip to content

Commit

Permalink
[ffmpeg-qsv] add av1e playback_seek test case
Browse files Browse the repository at this point in the history
Signed-off-by: Wang Hangjie <[email protected]>
  • Loading branch information
Hangjie22Coder authored and uartie committed Sep 26, 2024
1 parent fdbf05e commit fabcc96
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,8 @@ def gen_vp9_seek_lp_parameters(spec):

gen_avc_seek_parameters = gen_vp9_seek_parameters
gen_avc_seek_lp_parameters = gen_vp9_seek_lp_parameters
gen_av1_seek_parameters = gen_vp9_seek_parameters
gen_av1_seek_lp_parameters = gen_vp9_seek_lp_parameters

def gen_av1_cqp_variants(spec, strapi=False):
for case, params in spec.items():
Expand Down
35 changes: 35 additions & 0 deletions test/ffmpeg-qsv/encode/av1.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,24 @@ def test_strapi(self, case, gop, bframes, tilecols, tilerows, bitrate, fps, qual
self.init(spec, case, gop, bframes, tilecols, tilerows, bitrate, fps, quality, profile)
self.encode()

class seek(AV1EncoderTest):
def init(self, tspec, case, rcmode, bitrate, maxrate, fps, seek):
vars(self).update(tspec[case].copy())
vars(self).update(
case = case,
bitrate = bitrate,
maxrate = maxrate,
minrate = bitrate,
rcmode = rcmode,
fps = fps,
seek = seek,
)

@slash.parametrize(*gen_av1_seek_parameters(spec))
def test(self, case, rcmode, bitrate, maxrate, fps, seek):
self.init(spec, case, rcmode, bitrate, maxrate, fps, seek)
self.encode()

class cqp_lp(AV1EncoderLPTest):
def init(self, tspec, case, gop, bframes, tilecols, tilerows,qp, quality, profile):
vars(self).update(tspec[case].copy())
Expand Down Expand Up @@ -276,3 +294,20 @@ def test_strapi(self, case, gop, bframes, tilecols, tilerows, bitrate, fps, qual
self.init(spec, case, gop, bframes, tilecols, tilerows, bitrate, fps, quality, profile)
self.encode()

class seek_lp(AV1EncoderLPTest):
def init(self, tspec, case, rcmode, bitrate, maxrate, fps, seek):
vars(self).update(tspec[case].copy())
vars(self).update(
case = case,
bitrate = bitrate,
maxrate = maxrate,
minrate = bitrate,
rcmode = rcmode,
fps = fps,
seek = seek,
)

@slash.parametrize(*gen_av1_seek_lp_parameters(spec))
def test(self, case, rcmode, bitrate, maxrate, fps, seek):
self.init(spec, case, rcmode, bitrate, maxrate, fps, seek)
self.encode()

0 comments on commit fabcc96

Please sign in to comment.