From dc5061e50d6d6973d8f74bc2d20234dbdcc6dcb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Thu, 23 May 2013 15:33:43 +0200 Subject: [PATCH] added option to override HSYNC --- sstv.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sstv.py b/sstv.py index 92e0a54..f7a1efc 100644 --- a/sstv.py +++ b/sstv.py @@ -89,10 +89,14 @@ class GrayscaleSSTV(SSTV): for item in SSTV.gen_freq_bits(self): yield item for line in xrange(self.HEIGHT): - yield FREQ_SYNC, self.SYNC + for item in self.horizontal_sync(): + yield item for item in self.encode_line(line): yield item + def horizontal_sync(self): + yield FREQ_SYNC, self.SYNC + def encode_line(self, line): msec_pixel = self.SCAN / self.WIDTH image = self.image