András Veres-Szentkirályi
89254d73ec
removed trailing whitespace
2021-05-19 08:59:31 +02:00
clemibunge
39abaf1a17
Add mode PD290
2021-05-15 21:21:35 +02:00
András Veres-Szentkirályi
2bf26ed432
use enum for colors
2021-04-19 16:28:05 +02:00
András Veres-Szentkirályi
2f7a11abc1
use yield from instead of explicit version
2021-04-19 16:26:34 +02:00
András Veres-Szentkirályi
30294ee096
removed six
2021-04-19 16:23:40 +02:00
András Veres-Szentkirályi
0c09c84360
fixed Python 2 compatibility
...
Python 2 returns the string representation with just calling
writeframes(data) instead of writeframes(data.tostring())
/tmp/post.wav
0000 0000: 52 49 46 46 C4 AA 00 00 57 41 56 45 66 6D 74 20 RIFF.... WAVEfmt
0000 0010: 10 00 00 00 01 00 01 00 80 BB 00 00 00 77 01 00 ........ .....w..
0000 0020: 02 00 10 00 64 61 74 61 A0 AA 00 00 61 72 72 61 ....data ....arra
0000 0030: 79 28 27 68 27 2C 20 5B 30 2C 20 38 30 36 35 2C y('h', [ 0, 8065,
0000 0040: 20 31 35 36 33 35 2C 20 32 32 32 34 32 2C 20 32 15635, 22242, 2
This change adds an escape hatch that could work for both major Python
versions, except Python 3.0 and 3.1 but those should be rare and
unsupported anyway.
2021-03-02 11:18:58 +01:00
Edmond Belliveau
71ddabcb1d
Removed tostring() in write_wav. Python 3.9+ has removed the tostring() methods from array.array and other primitives.
2021-03-01 18:07:38 -04:00
András Veres-Szentkirályi
1b6884ee63
fixed RGB modes silently depending on RGB images
...
Thanks to @Chris_J_Baird on Twitter reporting the issue:
> ColorSSTV.encode_line assuming its gets a tuple from __getpixel__
> had to make the Image.open() do a convert('RGB')
https://twitter.com/i/web/status/1149331458189737988
2019-07-12 21:53:45 +02:00
András Veres-Szentkirályi
4b95f8b5c3
added image resizing to the CLI
...
fixes gh-18
2019-01-22 14:41:44 +01:00
András Veres-Szentkirályi
99d8709053
gimp-plugin: documented pyaudio dependency
2018-04-30 16:25:09 +02:00
András Veres-Szentkirályi
509d162a0d
gimp-plugin: removed dead code
2018-04-30 16:24:46 +02:00
András Veres-Szentkirályi
b731112007
added PD modes ( #16 )
2018-02-25 13:20:37 +01:00
András Veres-Szentkirályi
6d3d2143b7
build_module_map: use OrderedDict if available
...
this results in a much nicer "usage" screen by argparse
2018-02-24 21:28:46 +01:00
Blaine Murphy
da0c102090
Robot 36 color correction ( #12 )
...
The color sequence for Robot 36 is listed as YCrCb in the SSTV Handbook: http://www.sstv-handbook.com/download/sstv_04.pdf (Table 4.3) and the Dayton Paper: https://web.archive.org/web/20120104184535/http://www.barberdsp.com/files/Dayton%20Paper.pdf
* Corrected inter-channel frequency order for Robot 36 mode.
* Switched Robot 36 channel order to CrCb.
2017-10-24 14:42:17 +02:00
András Veres-Szentkirályi
5eb8a468e4
extracted method load_pickled_asset
2017-01-12 12:54:07 +01:00
András Veres-Szentkirályi
81b45e7e4e
Python 3 uses builtins.open instead of io.open
2017-01-12 12:48:50 +01:00
András Veres-Szentkirályi
9cbb0c50ff
use BytesIO on Python 3
2017-01-12 12:37:58 +01:00
András Veres-Szentkirályi
0d52546d81
test_sstv: select open namespace depending on Python major version
2017-01-12 12:26:01 +01:00
András Veres-Szentkirályi
ac0f89bfdf
test_sstv: open further files in explicit 'rb' mode
2017-01-12 12:25:34 +01:00
András Veres-Szentkirályi
bf2efdabea
test_sstv: handle iterables in a more portable way
2017-01-12 12:25:03 +01:00
András Veres-Szentkirályi
d574ab1d49
use absolute imports in test_sstv as well
2017-01-12 12:16:33 +01:00
András Veres-Szentkirályi
8f8f431050
StringIO was also moved in Python 3
2017-01-12 11:14:54 +01:00
András Veres-Szentkirályi
a43f64fd79
modified tests for Python 2 + 3 compatibility
2017-01-12 11:06:21 +01:00
KM4YRI
5d3b11a144
added Python six compatibility layer ( #10 )
...
added dependency to `six` for better Python 2/3 compatibility
2017-01-12 10:49:13 +01:00
KM4YRI
56743c7afb
Python 3 compatibility: imap->map, izip->zip, xrange->range ( #9 )
2017-01-03 15:04:11 +01:00
András Veres-Szentkirályi
810f604a5a
codegen: added Pasokon modes to test harness
2016-04-20 19:49:43 +02:00
András Veres-Szentkirályi
23a2e2bd00
codegen: check for non-RGB images
2016-04-20 19:36:24 +02:00
András Veres-Szentkirályi
ff15c3a63a
codegen: removed hardcoded test image file name
2016-04-20 14:07:35 +02:00
András Veres-Szentkirályi
5d38b3b52d
codegen: avoid defining test image in multiple places
2016-04-20 14:04:57 +02:00
András Veres-Szentkirályi
c7fecff3e6
codegen: save outputs and C code in case of failed tests
2016-04-19 11:36:08 +02:00
András Veres-Szentkirályi
40768cb57a
codegen: added MartinM2 to the test harness
2016-04-19 11:21:31 +02:00
András Veres-Szentkirályi
d540abd852
codegen: pass real image width as parameter
2016-04-19 11:20:14 +02:00
András Veres-Szentkirályi
dee321d59e
codegen: replaced BMP with RGB array and STBI
2016-04-19 11:13:57 +02:00
András Veres-Szentkirályi
ec6ff85d06
codegen: avoid masking exceptions if exe doesn't exist yet
2016-04-19 11:01:17 +02:00
András Veres-Szentkirályi
43d1c53514
codegen: added timing stats
2016-02-23 16:36:32 +01:00
András Veres-Szentkirályi
ff2fc58aa7
codegen: optimized gen_matches invocation
2016-02-23 16:21:39 +01:00
András Veres-Szentkirályi
c185ea571b
codegen: use NotImplementedError
2016-02-23 16:21:30 +01:00
András Veres-Szentkirályi
f295a07c83
codegen: removed unused variable
2016-02-23 16:17:53 +01:00
András Veres-Szentkirályi
3c3bb34b1b
codegen: added simple test suite
2016-02-22 17:35:25 +01:00
András Veres-Szentkirályi
d7a05fc1d5
codegen: return 0 in stub main()
2016-02-22 17:35:09 +01:00
András Veres-Szentkirályi
6418a9febc
codegen: provide generator instead of printing
2016-02-22 17:34:44 +01:00
András Veres-Szentkirályi
2f6c7ca871
codegen: use configurable SSTV subclass
2016-02-22 17:34:21 +01:00
András Veres-Szentkirályi
f02f43e4b5
added experimental C code generator
2016-02-22 15:02:00 +01:00
András Veres-Szentkirályi
09df062547
use absolute imports for Python 3 compatibility
2014-06-07 11:48:04 +02:00
András Veres-Szentkirályi
9ef2a5a8ca
added serial port PTT support to GIMP plugin
2014-05-14 23:26:54 +02:00
Dominik Auras
e0a4563a56
Add "high"-resolution modes Pasokon P3, P5 and P7
...
Tested against MMSSTV and HamRadio software
2014-04-22 23:11:40 +02:00
Ricky Elrod
e8f07e5bcb
RED isn't a member of ColorSSTV (anymore?)
2014-01-13 21:12:24 -05:00
András Veres-Szentkirályi
7e9436adeb
grayscale: adjusted Robot24BW sync timing
2013-11-22 18:40:25 +01:00
András Veres-Szentkirályi
b74feb49ab
GrayscaleSSTV: use PIL for grayscale conversion
2013-11-22 18:36:58 +01:00
András Veres-Szentkirályi
bd3b84cfb6
ColorSSTV: load raster data only once
2013-11-22 18:33:39 +01:00