25 lines
567 B
C
25 lines
567 B
C
#ifndef SCOTTIE_H
|
|
#define SCOTTIE_H
|
|
|
|
#include "wav.h"
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint8_t vis_code;
|
|
int width;
|
|
int height;
|
|
double separator_ms;
|
|
double sync_ms;
|
|
double sync_porch_ms;
|
|
double scan_ms;
|
|
} scottie_mode_t;
|
|
|
|
extern const scottie_mode_t SCOTTIE_S1;
|
|
extern const scottie_mode_t SCOTTIE_S2;
|
|
extern const scottie_mode_t SCOTTIE_DX;
|
|
|
|
void scottie_encode_image(wav_t *wav, uint8_t *rgb, const scottie_mode_t *mode);
|
|
int sstv_encode_scottie(const char *input_image, const char *output_wav, const scottie_mode_t *mode);
|
|
|
|
#endif // !SCOTTIE_H
|