From 0c847e515d2137caa5237c5739c4d8f96e35afc0 Mon Sep 17 00:00:00 2001 From: Philip Heron Date: Tue, 20 Oct 2015 00:15:15 +0100 Subject: 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. --- ssdv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ssdv.h') 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; -- cgit v1.2.3