summaryrefslogtreecommitdiff
path: root/ssdv.h
diff options
context:
space:
mode:
authorPhilip Heron <phil@sanslogic.co.uk>2012-01-29 18:56:17 +0000
committerPhilip Heron <phil@sanslogic.co.uk>2012-01-29 18:56:17 +0000
commitfe7ff490746e82ba1c1766872f6b3ee29f84724a (patch)
tree24169455363f0842b327df8e498b3b90c4e1183b /ssdv.h
parentca837206d582b6a06b4c18234ffdf1bcd8c487f7 (diff)
Only reset the MCU DC values for the first MCU on each packet
Diffstat (limited to 'ssdv.h')
-rw-r--r--ssdv.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ssdv.h b/ssdv.h
index 7216730..5d03a7a 100644
--- a/ssdv.h
+++ b/ssdv.h
@@ -89,17 +89,19 @@ typedef struct
uint8_t mcupart; /* 0-3 = Y, 4 = Cb, 5 = Cr */
uint8_t acpart; /* 0 - 64; 0 = DC, 1 - 64 = AC */
int dc[COMPONENTS]; /* DC value for each component */
+ int adc[COMPONENTS];/* DC adjusted value for each component */
uint8_t acrle; /* RLE value for current AC value */
uint8_t accrle; /* Accumulative RLE value */
- char dcmode; /* 0 = Absolute, 1 = Relative (parts 0, 4 & 5) */
+ enum {
+ S_ENCODING = 0,
+ S_DECODING,
+ } mode;
+ uint32_t reset_mcu; /* MCU block to do absolute encoding */
char needbits; /* Number of bits needed to decode integer */
/* Small buffer for reading SOF0 and SOS header data into */
uint8_t hbuff[HBUFF_LEN];
- /* SSDV2 experiment */
- int block[64];
-
} ssdv_t;
typedef struct {