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

COM-12449: Add H264 FRExt test suite generator #201

Merged
merged 2 commits into from
Nov 11, 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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ packages = ["fluster", "fluster.decoders"]
"test_suites/h264/JVT-AVC_V1.json",
"test_suites/h264/JVT-FR-EXT.json",
"test_suites/h264/JVT-MVC.json",
"test_suites/h264/JVT-Professional_profiles.json",
"test_suites/h264/JVT-SVC.json"
"test_suites/h264/JVT-Professional_profiles_V1.json",
"test_suites/h264/JVT-SVC_V1.json"
]
"share/fluster/test_suites/h265" = [
"test_suites/h265/JCT-VC-3D-HEVC.json",
Expand Down
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 @@ -283,6 +306,16 @@ def remove_r1_from_path(path):
)
generator.generate(not args.skip_download, args.jobs)

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

generator = JVTGenerator(
"MVC",
"JVT-MVC",
Expand All @@ -294,20 +327,20 @@ def remove_r1_from_path(path):
generator.generate(not args.skip_download, args.jobs)

generator = JVTGenerator(
"SVC",
"JVT-SVC",
"Professional_profiles",
"JVT-Professional_profiles_V1",
Codec.H264,
"JVT Scalable Video Coding test suite",
"JVT Professional Profiles test suite",
H264_URL,
True,
)
generator.generate(not args.skip_download, args.jobs)

generator = JVTGenerator(
"Professional_profiles",
"JVT-Professional_profiles",
"SVC",
"JVT-SVC_V1",
Codec.H264,
"JVT Professional Profiles test suite",
"JVT Scalable Video Coding test suite",
H264_URL,
True,
)
Expand Down
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "JVT-Professional_profiles",
"name": "JVT-Professional_profiles_V1",
"codec": "H.264",
"description": "JVT Professional Profiles test suite",
"test_vectors": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "JVT-SVC",
"name": "JVT-SVC_V1",
"codec": "H.264",
"description": "JVT Scalable Video Coding test suite",
"test_vectors": [
Expand Down
Loading