summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_Context.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-30 17:11:19 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-31 01:15:56 +0000
commitcc2b38d41141a939c7ef73c0066418b8d823c681 (patch)
treed35174ad9f3abea74c46a13dd76969cbd0f749dd /core/fxcodec/jbig2/JBig2_Context.h
parent0158106c1c77c6af4f7195d086cb0f2d129de838 (diff)
downloadpdfium-cc2b38d41141a939c7ef73c0066418b8d823c681.tar.xz
Split IFX_Pause out of fx_basic
This CL moves IFX_Pause out to its own class from fx_basic and updates includes as needed. Change-Id: Iebdd183d8c85aa17570f190f1a7d1602c0af3c8b Reviewed-on: https://pdfium-review.googlesource.com/12491 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Context.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_Context.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Context.h b/core/fxcodec/jbig2/JBig2_Context.h
index 9224d325b5..c88fc6f187 100644
--- a/core/fxcodec/jbig2/JBig2_Context.h
+++ b/core/fxcodec/jbig2/JBig2_Context.h
@@ -20,7 +20,7 @@
class CJBig2_ArithDecoder;
class CJBig2_GRDProc;
class CPDF_StreamAcc;
-class IFX_Pause;
+class IFX_PauseIndicator;
// Cache is keyed by the ObjNum of a stream and an index within the stream.
using CJBig2_CacheKey = std::pair<uint32_t, uint32_t>;
@@ -50,16 +50,16 @@ class CJBig2_Context {
int32_t width,
int32_t height,
int32_t stride,
- IFX_Pause* pPause);
+ IFX_PauseIndicator* pPause);
- int32_t Continue(IFX_Pause* pPause);
+ int32_t Continue(IFX_PauseIndicator* pPause);
FXCODEC_STATUS GetProcessingStatus() const { return m_ProcessingStatus; }
private:
- int32_t decode_SquentialOrgnazation(IFX_Pause* pPause);
- int32_t decode_EmbedOrgnazation(IFX_Pause* pPause);
- int32_t decode_RandomOrgnazation_FirstPage(IFX_Pause* pPause);
- int32_t decode_RandomOrgnazation(IFX_Pause* pPause);
+ int32_t decode_SquentialOrgnazation(IFX_PauseIndicator* pPause);
+ int32_t decode_EmbedOrgnazation(IFX_PauseIndicator* pPause);
+ int32_t decode_RandomOrgnazation_FirstPage(IFX_PauseIndicator* pPause);
+ int32_t decode_RandomOrgnazation(IFX_PauseIndicator* pPause);
CJBig2_Segment* findSegmentByNumber(uint32_t dwNumber);
CJBig2_Segment* findReferredSegmentByTypeAndIndex(CJBig2_Segment* pSegment,
@@ -67,14 +67,18 @@ class CJBig2_Context {
int32_t nIndex);
int32_t parseSegmentHeader(CJBig2_Segment* pSegment);
- int32_t parseSegmentData(CJBig2_Segment* pSegment, IFX_Pause* pPause);
+ int32_t parseSegmentData(CJBig2_Segment* pSegment,
+ IFX_PauseIndicator* pPause);
int32_t ProcessingParseSegmentData(CJBig2_Segment* pSegment,
- IFX_Pause* pPause);
+ IFX_PauseIndicator* pPause);
int32_t parseSymbolDict(CJBig2_Segment* pSegment);
int32_t parseTextRegion(CJBig2_Segment* pSegment);
- int32_t parsePatternDict(CJBig2_Segment* pSegment, IFX_Pause* pPause);
- int32_t parseHalftoneRegion(CJBig2_Segment* pSegment, IFX_Pause* pPause);
- int32_t parseGenericRegion(CJBig2_Segment* pSegment, IFX_Pause* pPause);
+ int32_t parsePatternDict(CJBig2_Segment* pSegment,
+ IFX_PauseIndicator* pPause);
+ int32_t parseHalftoneRegion(CJBig2_Segment* pSegment,
+ IFX_PauseIndicator* pPause);
+ int32_t parseGenericRegion(CJBig2_Segment* pSegment,
+ IFX_PauseIndicator* pPause);
int32_t parseGenericRefinementRegion(CJBig2_Segment* pSegment);
int32_t parseTable(CJBig2_Segment* pSegment);
int32_t parseRegionInfo(JBig2RegionInfo* pRI);