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

OCP-5946 Fix H266 output format #198

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion fluster/codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ class OutputFormat(Enum):
GBRP12LE = "gbrp12le"
GBRP14LE = "gbrp14le"
GRAY = "gray"
GRAY10LE = "gray10le"
GRAY10LE16 = "gray10le16"
GRAY10LE32 = "gray10le32"
GRAY12LE = "gray12le"
GRAY16LE = "gray16le"
UNKNOWN = "Unknown"
3 changes: 2 additions & 1 deletion fluster/decoders/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def output_format_to_gst(output_format: OutputFormat) -> str:
"""Return GStreamer pixel format"""
mapping = {
OutputFormat.GRAY: "GRAY8",
OutputFormat.GRAY10LE: "GRAY10_LE32",
OutputFormat.GRAY10LE16: "GRAY10_LE16",
OutputFormat.GRAY10LE32: "GRAY10_LE32",
OutputFormat.GRAY16LE: "GRAY16_LE",
OutputFormat.YUV420P: "I420",
OutputFormat.YUV422P: "Y42B",
Expand Down
8 changes: 4 additions & 4 deletions test_suites/h266/JVET-VVC_draft6.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"source": "https://www.itu.int/wftp3/av-arch/jvet-site/bitstream_exchange/VVC/draft_conformance/draft6/10b400_A_Bytedance_2.zip",
"source_checksum": "36b6db0ef4992c4f1c00d5f43e7fb405",
"input_file": "10b400_A_Bytedance_2.bit",
"output_format": "gray10le",
"output_format": "gray10le16",
"result": "9607a0890e78ad7b3ca728356e919670"
},
{
"name": "10b400_B_Bytedance_2",
"source": "https://www.itu.int/wftp3/av-arch/jvet-site/bitstream_exchange/VVC/draft_conformance/draft6/10b400_B_Bytedance_2.zip",
"source_checksum": "fe845074ca1771ce480956d434bb049c",
"input_file": "10b400_B_Bytedance_2.bit",
"output_format": "gray10le",
"output_format": "gray10le16",
"result": "b5fcc1c52de8ed51844a9bd2895bda75"
},
{
Expand Down Expand Up @@ -1824,7 +1824,7 @@
"source": "https://www.itu.int/wftp3/av-arch/jvet-site/bitstream_exchange/VVC/draft_conformance/draft6/SCALING_A_InterDigital_1.zip",
"source_checksum": "1b5a690364dee391a28972ac2ec314cf",
"input_file": "SCALING_A_InterDigital_1.bit",
"output_format": "gray10le",
"output_format": "gray10le16",
"result": "f990d21ef21896b64d0ba2dfbca1b338"
},
{
Expand Down Expand Up @@ -2260,4 +2260,4 @@
"result": "e369f002a46e92338db1271dd6166157"
}
]
}
}
Loading