summaryrefslogtreecommitdiff
path: root/ssdv.h
diff options
context:
space:
mode:
authorPhilip Heron <phil@sanslogic.co.uk>2018-06-13 16:01:43 +0100
committerPhilip Heron <phil@sanslogic.co.uk>2018-06-13 16:01:43 +0100
commit82f383cd778e174d25d31c3ec804320d94d3274a (patch)
tree6a3678ae47bdb44faba4c948fda2c17170eaa308 /ssdv.h
parent6ff1a1073a403d9aa82965e7875f264714990e71 (diff)
Add support for single channel greyscale JPEGs
Diffstat (limited to 'ssdv.h')
-rw-r--r--ssdv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssdv.h b/ssdv.h
index c67e8da..0b9393c 100644
--- a/ssdv.h
+++ b/ssdv.h
@@ -99,6 +99,7 @@ typedef struct
uint16_t marker_len; /* Length of data following marker */
uint8_t *marker_data; /* Where to copy marker data too */
uint16_t marker_data_len; /* How much is there */
+ uint8_t greyscale; /* 0 = Normal (3 channels), 1 = Greyscale */
uint8_t component; /* 0 = Y, 1 = Cb, 2 = Cr */
uint8_t ycparts; /* Number of Y component parts per MCU */
uint8_t mcupart; /* 0-3 = Y, 4 = Cb, 5 = Cr */