mirror of
https://github.com/dnet/pySSTV.git
synced 2026-04-21 06:03:43 +00:00
added option to override HSYNC
This commit is contained in:
parent
f14657026d
commit
dc5061e50d
1 changed files with 5 additions and 1 deletions
6
sstv.py
6
sstv.py
|
|
@ -89,10 +89,14 @@ class GrayscaleSSTV(SSTV):
|
||||||
for item in SSTV.gen_freq_bits(self):
|
for item in SSTV.gen_freq_bits(self):
|
||||||
yield item
|
yield item
|
||||||
for line in xrange(self.HEIGHT):
|
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):
|
for item in self.encode_line(line):
|
||||||
yield item
|
yield item
|
||||||
|
|
||||||
|
def horizontal_sync(self):
|
||||||
|
yield FREQ_SYNC, self.SYNC
|
||||||
|
|
||||||
def encode_line(self, line):
|
def encode_line(self, line):
|
||||||
msec_pixel = self.SCAN / self.WIDTH
|
msec_pixel = self.SCAN / self.WIDTH
|
||||||
image = self.image
|
image = self.image
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue