Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ffmpeg-qsv] add av1e playback_seek test case #688

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()