From 658b139011a90e1d55e69a9ec9e98ce49e77e8ba Mon Sep 17 00:00:00 2001 From: Jitterbug <3130448+JuniorIsAJitterbug@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:08:40 +0100 Subject: [PATCH] Change default chroma decoder for PAL/PAL-M --- src/tbc_video_export/opts/opts_ldtools.py | 4 ++-- src/tbc_video_export/program_state.py | 2 +- tests/test_wrappers_ldtools.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tbc_video_export/opts/opts_ldtools.py b/src/tbc_video_export/opts/opts_ldtools.py index 775177b..6483b40 100644 --- a/src/tbc_video_export/opts/opts_ldtools.py +++ b/src/tbc_video_export/opts/opts_ldtools.py @@ -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" diff --git a/src/tbc_video_export/program_state.py b/src/tbc_video_export/program_state.py index 2b2db70..ba7dfd9 100644 --- a/src/tbc_video_export/program_state.py +++ b/src/tbc_video_export/program_state.py @@ -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: diff --git a/tests/test_wrappers_ldtools.py b/tests/test_wrappers_ldtools.py index 0a792a2..e127d12 100644 --- a/tests/test_wrappers_ldtools.py +++ b/tests/test_wrappers_ldtools.py @@ -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"}, ], @@ -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"}, ],