Skip to content

Commit

Permalink
COM-12449: Add H264 FRExt test suite generator
Browse files Browse the repository at this point in the history
- implemented FRExt test suite generator code
- slightly modified json file of FRExt test suite
  • Loading branch information
mdimopoulos committed Nov 11, 2024
1 parent 72e2ba0 commit 2dde512
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 8 deletions.
47 changes: 40 additions & 7 deletions scripts/gen_jvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
]
MD5_EXTS = ["yuv_2.md5", "yuv.md5", ".md5", "md5.txt", "md5sum.txt"]
MD5_EXCLUDES = [".bin.md5", "bit.md5"]
RAW_EXTS = ["nogray.yuv", ".yuv", ".qcif"]
RAW_EXTS = ["nogray.yuv", ".yuv", ".YUV", ".qcif"]


class HREFParser(HTMLParser):
Expand Down Expand Up @@ -193,6 +193,29 @@ def generate(self, download, jobs):
else:
raise key_err

exceptions_checksum = [
# Output checksum of all below test vectors from JVT-FRExt has to be calculated by means of
# executing a run with the reference decoder, `fluster.py -f ...`
"alphaconformanceG", # Raw reference files are split streams and give false checksum value
"FREH10-1",
"FREH10-2",
"Hi422FR1_SONY_A",
"Hi422FR2_SONY_A",
"Hi422FR3_SONY_A",
"Hi422FR4_SONY_A",
"Hi422FR6_SONY_A",
"Hi422FR7_SONY_A",
"Hi422FR8_SONY_A",
"Hi422FR9_SONY_A",
"Hi422FREXT16_SONY_A",
"Hi422FREXT17_SONY_A",
"Hi422FREXT18_SONY_A",
"Hi422FREXT19_SONY_A",
]

if test_vector.name in exceptions_checksum:
continue

if self.name not in (
"Professional_profiles",
"MVC",
Expand Down Expand Up @@ -284,20 +307,20 @@ def remove_r1_from_path(path):
generator.generate(not args.skip_download, args.jobs)

generator = JVTGenerator(
"MVC",
"JVT-MVC",
"FRExt",
"JVT-FR-EXT",
Codec.H264,
"JVT Multiview Video Coding test suite",
"JVT Fidelity Range Extension test suite",
H264_URL,
True,
)
generator.generate(not args.skip_download, args.jobs)

generator = JVTGenerator(
"SVC",
"JVT-SVC",
"MVC",
"JVT-MVC",
Codec.H264,
"JVT Scalable Video Coding test suite",
"JVT Multiview Video Coding test suite",
H264_URL,
True,
)
Expand All @@ -312,3 +335,13 @@ def remove_r1_from_path(path):
True,
)
generator.generate(not args.skip_download, args.jobs)

generator = JVTGenerator(
"SVC",
"JVT-SVC",
Codec.H264,
"JVT Scalable Video Coding test suite",
H264_URL,
True,
)
generator.generate(not args.skip_download, args.jobs)
2 changes: 1 addition & 1 deletion test_suites/h264/JVT-FR-EXT.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "JVT-FR-EXT",
"codec": "H.264",
"description": "JVT Fidelity Range Extensions",
"description": "JVT Fidelity Range Extension test suite",
"test_vectors": [
{
"name": "alphaconformanceG",
Expand Down

0 comments on commit 2dde512

Please sign in to comment.