summaryrefslogtreecommitdiff
path: root/ssdv.h
diff options
context:
space:
mode:
authorPhilip Heron <phil@sanslogic.co.uk>2015-10-20 09:59:48 +0100
committerPhilip Heron <phil@sanslogic.co.uk>2015-10-20 09:59:48 +0100
commit421a9be721262fdada526a2da718b90be7ead187 (patch)
tree20a46f9f2801ae375a2b920b1bfa2db7323c84dd /ssdv.h
parent062537a7e9b4fdeb65bbe93b71a4786ecabb10f9 (diff)
The decoder now auto detects packets without FEC.
Add a verbose option to print data about each packet.
Diffstat (limited to 'ssdv.h')
-rw-r--r--ssdv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssdv.h b/ssdv.h
index eadc28b..abaea38 100644
--- a/ssdv.h
+++ b/ssdv.h
@@ -126,6 +126,7 @@ typedef struct
} ssdv_t;
typedef struct {
+ uint8_t type;
uint32_t callsign;
char callsign_s[SSDV_MAX_CALLSIGN + 1];
uint8_t image_id;
@@ -146,12 +147,12 @@ extern char ssdv_enc_get_packet(ssdv_t *s);
extern char ssdv_enc_feed(ssdv_t *s, uint8_t *buffer, size_t length);
/* Decoding */
-extern char ssdv_dec_init(ssdv_t *s, uint8_t type);
+extern char ssdv_dec_init(ssdv_t *s);
extern char ssdv_dec_set_buffer(ssdv_t *s, uint8_t *buffer, size_t length);
extern char ssdv_dec_feed(ssdv_t *s, uint8_t *packet);
extern char ssdv_dec_get_jpeg(ssdv_t *s, uint8_t **jpeg, size_t *length);
-extern char ssdv_dec_is_packet(uint8_t *packet, int *errors, uint8_t fec);
+extern char ssdv_dec_is_packet(uint8_t *packet, int *errors);
extern void ssdv_dec_header(ssdv_packet_info_t *info, uint8_t *packet);
#ifdef __cplusplus