summaryrefslogtreecommitdiff
path: root/core/fxcodec/lgif/cfx_lzwdecoder.h
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-26 16:59:12 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-27 16:10:58 +0000
commitcc3a3ee3ebcc1baabdfa7ffca5876dbbfa3980c1 (patch)
tree17dfe1c2d050542e883028ead986f017c240e038 /core/fxcodec/lgif/cfx_lzwdecoder.h
parentd6a1595e0bd8f2d0677e2e59e9e0ac6678aaa0d1 (diff)
downloadpdfium-cc3a3ee3ebcc1baabdfa7ffca5876dbbfa3980c1.tar.xz
Make names of GIF types less opaque
A lot of the structs in the GIF code use acronyms that are non-obvious unless you are familar with the GIF spec, and even then lead to lots of looking back. Making the naming more explicit. Also converted GifImage to be a struct, since it didn't have any methods defined for it. BUG=pdfium:903 Change-Id: I97ca2adfdc4ada8bcaef5f8f317c1dea7365d70d Reviewed-on: https://pdfium-review.googlesource.com/14836 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/lgif/cfx_lzwdecoder.h')
-rw-r--r--core/fxcodec/lgif/cfx_lzwdecoder.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcodec/lgif/cfx_lzwdecoder.h b/core/fxcodec/lgif/cfx_lzwdecoder.h
index 913df670c6..9dbf15d9b7 100644
--- a/core/fxcodec/lgif/cfx_lzwdecoder.h
+++ b/core/fxcodec/lgif/cfx_lzwdecoder.h
@@ -14,10 +14,10 @@
class CFX_LZWDecoder {
public:
- struct tag_Table {
+ typedef struct {
uint16_t prefix;
uint8_t suffix;
- };
+ } CodeEntry;
// Returns nullptr on error
static std::unique_ptr<CFX_LZWDecoder> Create(uint8_t color_exp,
@@ -44,7 +44,7 @@ class CFX_LZWDecoder {
uint8_t code_first_;
uint8_t stack_[GIF_MAX_LZW_CODE];
size_t stack_size_;
- tag_Table code_table_[GIF_MAX_LZW_CODE];
+ CodeEntry code_table_[GIF_MAX_LZW_CODE];
uint16_t code_old_;
uint8_t* next_in_;
uint32_t avail_in_;