added after_channel hook to ColorSSTV

This commit is contained in:
András Veres-Szentkirályi 2013-05-30 19:00:00 +02:00
parent 3644c050ae
commit 4d3bdef3c5

View file

@ -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)