nice refactors, now way cleaner to work with!
This commit is contained in:
23
include/encoder/modes/martin.h
Normal file
23
include/encoder/modes/martin.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef MARTIN_H
|
||||
#define MARTIN_H
|
||||
|
||||
#include "sound/wav.h"
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint8_t vis_code; // in hexadecimal not normal decimal (ex 0x08)
|
||||
int width;
|
||||
int height;
|
||||
double sync_ms;
|
||||
double sync_porch_ms;
|
||||
double separator_ms;
|
||||
double scan_ms;
|
||||
} martin_mode_t;
|
||||
|
||||
extern const martin_mode_t MARTIN_M1;
|
||||
extern const martin_mode_t MARTIN_M2;
|
||||
|
||||
void martin_encode_image(wav_t *wav, uint8_t *rgb, const martin_mode_t *mode);
|
||||
int sstv_encode_martin(const char *input_image, const char *output_wav, const martin_mode_t *mode);
|
||||
|
||||
#endif // !MARTIN_H
|
||||
Reference in New Issue
Block a user