summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_Context.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-27 19:39:27 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-27 19:39:27 +0000
commita8b4400e27c1d7be05b06f71d8bd1d6314fa4adf (patch)
treeae6859a40e24200fd9ff3871aad8b144e1ae8ab7 /core/fxcodec/jbig2/JBig2_Context.h
parent862cbe46b7d7040e35733f5ed63839ee34223387 (diff)
downloadpdfium-a8b4400e27c1d7be05b06f71d8bd1d6314fa4adf.tar.xz
Simplify CJBig2_Context::FindReferredSegmentByTypeAndIndex().
It only looks for a single segment type. Change-Id: I83457c6f74c210299caec79a563e7876f4d1d9ea Reviewed-on: https://pdfium-review.googlesource.com/31534 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Context.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_Context.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Context.h b/core/fxcodec/jbig2/JBig2_Context.h
index 117999eb00..d5dbbd22a6 100644
--- a/core/fxcodec/jbig2/JBig2_Context.h
+++ b/core/fxcodec/jbig2/JBig2_Context.h
@@ -60,9 +60,8 @@ class CJBig2_Context {
int32_t DecodeRandom(PauseIndicatorIface* pPause);
CJBig2_Segment* FindSegmentByNumber(uint32_t dwNumber);
- CJBig2_Segment* FindReferredSegmentByTypeAndIndex(CJBig2_Segment* pSegment,
- uint8_t cType,
- int32_t nIndex);
+ CJBig2_Segment* FindReferredTableSegmentByIndex(CJBig2_Segment* pSegment,
+ int32_t nIndex);
int32_t ParseSegmentHeader(CJBig2_Segment* pSegment);
int32_t ParseSegmentData(CJBig2_Segment* pSegment,