aboutsummaryrefslogtreecommitdiff
path: root/jpeglib.h
diff options
context:
space:
mode:
authorWei-Ta Chen <weita@google.com>2011-01-09 23:13:03 -0800
committerWei-Ta Chen <weita@google.com>2011-01-10 22:54:22 -0800
commit27c2e1a63730561332f4d3c406c7e9b7c36963d2 (patch)
treee366f62f3f33e52ae8a4bcc728b510dd64cbc5c1 /jpeglib.h
parent6ead6aed9ef9420c6d4c5efd170d5ab502e337e5 (diff)
downloadjpeg-27c2e1a63730561332f4d3c406c7e9b7c36963d2.tar.gz
Fix the JPEG tile decode issue in the case of JPEGs having restart
markers. The fix stores the restart information on each index point and restores the restart information when we do the tile decode. Bug: 3312406 Change-Id: I5cd8717d4b60ffb5d2e7c97189ee044d67472fe2
Diffstat (limited to 'jpeglib.h')
-rw-r--r--jpeglib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/jpeglib.h b/jpeglib.h
index 83bed4a..07e6872 100644
--- a/jpeglib.h
+++ b/jpeglib.h
@@ -649,6 +649,10 @@ typedef struct {
// save the decoder current bit buffer, entropy->bitstate.get_buffer.
INT32 get_buffer;
+
+ // save the restart info.
+ unsigned short restarts_to_go;
+ unsigned char next_restart_num;
} huffman_offset_data;
typedef struct {