diff options
| author | Philip Heron <phil@sanslogic.co.uk> | 2012-01-29 18:56:17 +0000 |
|---|---|---|
| committer | Philip Heron <phil@sanslogic.co.uk> | 2012-01-29 18:56:17 +0000 |
| commit | fe7ff490746e82ba1c1766872f6b3ee29f84724a (patch) | |
| tree | 24169455363f0842b327df8e498b3b90c4e1183b /ssdv.h | |
| parent | ca837206d582b6a06b4c18234ffdf1bcd8c487f7 (diff) | |
Only reset the MCU DC values for the first MCU on each packet
Diffstat (limited to 'ssdv.h')
| -rw-r--r-- | ssdv.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 { |
