mirror of
https://github.com/dnet/pySSTV.git
synced 2026-01-10 02:29:56 +01:00
implemented inter-channel gap for Martin
This commit is contained in:
parent
767c061fd3
commit
b565036d3b
8
sstv.py
8
sstv.py
|
|
@ -105,12 +105,16 @@ class GrayscaleSSTV(SSTV):
|
|||
|
||||
class ColorSSTV(GrayscaleSSTV):
|
||||
RED, GREEN, BLUE = range(3)
|
||||
INTER_CH_GAP = 0
|
||||
|
||||
def encode_line(self, line):
|
||||
cs = self.COLOR_SEQ
|
||||
msec_pixel = self.SCAN / self.WIDTH
|
||||
image = self.image
|
||||
for index in cs:
|
||||
icg = self.INTER_CH_GAP
|
||||
for n, index in enumerate(cs):
|
||||
if n and icg:
|
||||
yield FREQ_BLACK, icg
|
||||
for col in xrange(self.WIDTH):
|
||||
pixel = image.getpixel((col, line))
|
||||
value = pixel[index]
|
||||
|
|
@ -141,12 +145,14 @@ class MartinM1(ColorSSTV):
|
|||
HEIGHT = 256
|
||||
SYNC = 4.862
|
||||
SCAN = 146.432
|
||||
INTER_CH_GAP = 0.572
|
||||
|
||||
|
||||
class ScottieS1(MartinM1):
|
||||
VIS_CODE = 0x3c
|
||||
SYNC = 9
|
||||
SCAN = 138.24
|
||||
INTER_CH_GAP = 0
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Reference in a new issue