summaryrefslogtreecommitdiff
path: root/ssdv.h
diff options
context:
space:
mode:
authorPhilip Heron <phil@sanslogic.co.uk>2015-10-20 00:15:15 +0100
committerPhilip Heron <phil@sanslogic.co.uk>2015-10-20 00:15:15 +0100
commit0c847e515d2137caa5237c5739c4d8f96e35afc0 (patch)
tree7b019241592b26a910930169cfefaca6edbea3d9 /ssdv.h
parent84ccbf972d05a1a3621d34edc4121e95ef3ec0ac (diff)
Add an EOI (End of Image / Last Packet) flag to the encoder.
Trim callsign correctly if longer than 6 characters. Add a verbose mode for the decoder.
Diffstat (limited to 'ssdv.h')
-rw-r--r--ssdv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ssdv.h b/ssdv.h
index 956c113..eadc28b 100644
--- a/ssdv.h
+++ b/ssdv.h
@@ -39,7 +39,8 @@ extern "C" {
#define TBL_LEN (546) /* Maximum size of the DQT and DHT tables */
#define HBUFF_LEN (16) /* Extra space for reading marker data */
-//#define COMPONENTS (3)
+
+#define SSDV_MAX_CALLSIGN (6) /* Maximum number of characters in a callsign */
#define SSDV_TYPE_NORMAL (0)
#define SSDV_TYPE_NOFEC (1)
@@ -126,10 +127,12 @@ typedef struct
typedef struct {
uint32_t callsign;
+ char callsign_s[SSDV_MAX_CALLSIGN + 1];
uint8_t image_id;
uint16_t packet_id;
uint16_t width;
uint16_t height;
+ uint8_t eoi;
uint16_t mcu_mode;
uint8_t mcu_offset;
uint16_t mcu_id;