From 4d3bdef3c59b27090c7e6d1ca0853c361c253269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Thu, 30 May 2013 19:00:00 +0200 Subject: [PATCH] added after_channel hook to ColorSSTV --- color.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/color.py b/color.py index 3acc8d6..09a0389 100644 --- a/color.py +++ b/color.py @@ -18,10 +18,14 @@ class ColorSSTV(GrayscaleSSTV): pixel = image.getpixel((col, line)) freq_pixel = byte_to_freq(pixel[index]) yield freq_pixel, msec_pixel + for item in self.after_channel(index): + yield item def before_channel(self, index): return [] + after_channel = before_channel + class MartinM1(ColorSSTV): COLOR_SEQ = (ColorSSTV.GREEN, ColorSSTV.BLUE, ColorSSTV.RED)