diff --git a/csdr/chain/sstv.py b/csdr/chain/sstv.py new file mode 100644 index 00000000..b559bf79 --- /dev/null +++ b/csdr/chain/sstv.py @@ -0,0 +1,16 @@ +from owrx.sstv import SstvParser +from csdr.chain.demodulator import SecondaryDemodulator, FixedAudioRateChain +from pycsdr.modules import FmDemod +from csdrsstv.modules import SstvDecoder + + +class Sstv(SecondaryDemodulator, FixedAudioRateChain): + def __init__(self): + super().__init__([ + FmDemod(), + SstvDecoder(), + SstvParser(), + ]) + + def getFixedAudioRate(self) -> int: + return 12000 diff --git a/htdocs/css/openwebrx.css b/htdocs/css/openwebrx.css index fae76378..6ad30442 100644 --- a/htdocs/css/openwebrx.css +++ b/htdocs/css/openwebrx.css @@ -1440,3 +1440,16 @@ img.openwebrx-mirror-img .under-construction:hover .under-construction-description { max-height: 500px; } + +.openwebrx-message-panel#openwebrx-panel-sstv-message { + min-height: initial; +} + +.sstv-canvas-container { + width: 320px; + height: 256px; +} + +.sstv-canvas-container canvas { + width: 100%; +} diff --git a/htdocs/index.html b/htdocs/index.html index 1e1c4c43..35c48904 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -81,6 +81,7 @@ +