Skip to content

Commit

Permalink
Change default chroma decoder for PAL/PAL-M
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorIsAJitterbug committed Aug 26, 2024
1 parent f32f89a commit cd7a086
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/tbc_video_export/opts/opts_ldtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def add_ldtool_opts(parent: argparse.ArgumentParser) -> None:
help="Set the chroma decoder to be used.\n"
"Available decoders:\n\n"
f" {ChromaDecoder.MONO} (default for LUMA)\n\n"
f" {ChromaDecoder.PAL2D}\n"
f" {ChromaDecoder.TRANSFORM2D} (default for PAL/PAL-M S-Video)\n"
f" {ChromaDecoder.PAL2D} (default for PAL/PAL-M S-Video)\n"
f" {ChromaDecoder.TRANSFORM2D}\n"
f" {ChromaDecoder.TRANSFORM3D} (default for PAL/PAL-M CVBS)\n\n"
f" {ChromaDecoder.NTSC1D}\n"
f" {ChromaDecoder.NTSC2D} (default for NTSC S-Video and CVBS)\n"
Expand Down
2 changes: 1 addition & 1 deletion src/tbc_video_export/program_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def decoder_chroma(self) -> ChromaDecoder:
case VideoSystem.PAL | VideoSystem.PAL_M:
# pal chroma
if TBCType.CHROMA in self.tbc_types:
decoder = ChromaDecoder.TRANSFORM2D
decoder = ChromaDecoder.PAL2D

# pal combined
if self.tbc_types == TBCType.COMBINED:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_wrappers_ldtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class TestWrappersChromaDecoder:
input_opts=[],
expected_opts=[
{"--luma-nr", "0"},
{"-f", "transform2d"},
{"-f", "pal2d"},
{"--input-json", f"{get_path('pal_svideo')}.tbc.json"},
{"PIPE_IN", "PIPE_OUT"},
],
Expand Down Expand Up @@ -280,7 +280,7 @@ class TestWrappersChromaDecoder:
input_opts=[],
expected_opts=[
{"--luma-nr", "0"},
{"-f", "transform2d"},
{"-f", "pal2d"},
{"--input-json", f"{get_path('palm_svideo')}.tbc.json"},
{"PIPE_IN", "PIPE_OUT"},
],
Expand Down

0 comments on commit cd7a086

Please sign in to comment.