robot36 - encode and decode images using SSTV in Robot 36 mode
 
 
Go to file
Ahmet İnan a513ee6849 remade this image from:
http://en.wikipedia.org/wiki/File:SMPTE_Color_Bars.svg
2011-10-03 18:43:45 +02:00
.gitignore added 16000hz test, changed downsampling to at least 2 * pixel freq 2011-09-26 15:26:48 +02:00
COPYING changed license to CC0 2011-09-08 16:16:27 +02:00
Makefile did some code reuse, added write support in img, used it in decode and 2011-10-03 18:28:43 +02:00
README cleaned up interface 2011-09-09 11:18:29 +02:00
alsa.c cleaned up 2011-09-10 19:17:12 +02:00
alsa.h now alsa playback is also limited by seconds 2011-09-09 11:32:36 +02:00
ddc.c rearanged downsampling to reduce code size 2011-09-22 16:22:46 +02:00
ddc.h changed license to CC0 2011-09-08 16:16:27 +02:00
debug.c did some code reuse, added write support in img, used it in decode and 2011-10-03 18:28:43 +02:00
decode.c did some code reuse, added write support in img, used it in decode and 2011-10-03 18:28:43 +02:00
delay.c changed license to CC0 2011-09-08 16:16:27 +02:00
delay.h changed license to CC0 2011-09-08 16:16:27 +02:00
encode.c put ppm code into own file with img interface 2011-10-03 17:48:50 +02:00
img.c did some code reuse, added write support in img, used it in decode and 2011-10-03 18:28:43 +02:00
img.h did some code reuse, added write support in img, used it in decode and 2011-10-03 18:28:43 +02:00
mmap_file.c changed license to CC0 2011-09-08 16:16:27 +02:00
mmap_file.h changed license to CC0 2011-09-08 16:16:27 +02:00
pcm.c now alsa playback is also limited by seconds 2011-09-09 11:32:36 +02:00
pcm.h changed frames to seconds 2011-09-09 11:03:34 +02:00
ppm.c did some code reuse, added write support in img, used it in decode and 2011-10-03 18:28:43 +02:00
ppm.h did some code reuse, added write support in img, used it in decode and 2011-10-03 18:28:43 +02:00
smpte.ppm remade this image from: 2011-10-03 18:43:45 +02:00
utils.h changed license to CC0 2011-09-08 16:16:27 +02:00
wav.c cleaned up 2011-09-10 19:17:12 +02:00
wav.h changed frames to seconds 2011-09-09 11:03:34 +02:00
window.c changed license to CC0 2011-09-08 16:16:27 +02:00
window.h changed license to CC0 2011-09-08 16:16:27 +02:00
yuv.c changed license to CC0 2011-09-08 16:16:27 +02:00
yuv.h changed license to CC0 2011-09-08 16:16:27 +02:00

README

robot36 - encode and decode images using SSTV in Robot 36 mode
Written in 2011 by <Ahmet Inan> <xdsopl@googlemail.com>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.

smpte.ppm is converted from http://en.wikipedia.org/wiki/File:SMPTE_Color_Bars.svg 

compile everything:
# make

test encode and decode using smpte.ppm and various rates:
# make test

remove generated files:
# make clean

listen to default alsa device and write out ppm images with %F-%T.ppm as filename:
# ./decode

listen to alsa device hw:0,0 and write out ppm images with %F-%T.ppm as filename:
# ./decode hw:0,0

read from wav file input.wav and write out to ppm image output.ppm:
# ./decode input.wav output.ppm

encode ppm image input.ppm to output.wav using rate of 40000Hz
# ./encode input.ppm output.wav 40000

encode ppm image input.ppm and write out to default alsa device
# ./encode input.ppm