From 824937759e5c007be91956dc430995959f034ac6 Mon Sep 17 00:00:00 2001 From: Blaine Murphy Date: Wed, 18 Oct 2017 21:02:06 -0400 Subject: [PATCH] Correct color order of Robot 36 mode. The color sequence for Robot 36 is listed as YCrCb in the SSTV Handbook: http://www.sstv-handbook.com/download/sstv_04.pdf (Table 4.3) and the Dayton Paper: https://web.archive.org/web/20120104184535/http://www.barberdsp.com/files/Dayton%20Paper.pdf --- pysstv/color.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysstv/color.py b/pysstv/color.py index 48baf4a..dbe520c 100644 --- a/pysstv/color.py +++ b/pysstv/color.py @@ -90,7 +90,7 @@ class Robot36(ColorSSTV): INTER_CH_FREQS = [None, FREQ_BLACK, FREQ_WHITE] def on_init(self): - self.yuv = self.image.convert('YCbCr').load() + self.yuv = self.image.convert('YCrCb').load() def encode_line(self, line): pixels = [self.yuv[col, line] for col in range(self.WIDTH)]