added option to override HSYNC

This commit is contained in:
András Veres-Szentkirályi 2013-05-23 15:33:43 +02:00
parent f14657026d
commit dc5061e50d

View file

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