Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: core/src/fxcodec/codec/fx_codec_progress.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fxcodec/codec/fx_codec_png.cpp ('k') | core/src/fxcodec/codec/fx_codec_progress.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef _FX_CODEC_PROGRESS_H_ 7 #ifndef _FX_CODEC_PROGRESS_H_
8 #define _FX_CODEC_PROGRESS_H_ 8 #define _FX_CODEC_PROGRESS_H_
9 #define FXCODEC_BLOCK_SIZE 4096 9 #define FXCODEC_BLOCK_SIZE 4096
10 #define FXCODEC_PNG_GAMMA 2.2 10 #define FXCODEC_PNG_GAMMA 2.2
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 CCodec_ProgressiveDecoder(CCodec_ModuleMgr* pCodecMgr); 101 CCodec_ProgressiveDecoder(CCodec_ModuleMgr* pCodecMgr);
102 virtual ~CCodec_ProgressiveDecoder(); 102 virtual ~CCodec_ProgressiveDecoder();
103 103
104 public: 104 public:
105 virtual FXCODEC_STATUS LoadImageInfo(IFX_FileRead* pFile, FXCOD EC_IMAGE_TYPE imageType, CFX_DIBAttribute* pAttribute); 105 virtual FXCODEC_STATUS LoadImageInfo(IFX_FileRead* pFile, FXCOD EC_IMAGE_TYPE imageType, CFX_DIBAttribute* pAttribute);
106 106
107 virtual FXCODEC_IMAGE_TYPE GetType() 107 virtual FXCODEC_IMAGE_TYPE GetType()
108 { 108 {
109 return m_imagType; 109 return m_imagType;
110 } 110 }
111 virtual FX_INT32» » » GetWidth() 111 virtual int32_t» » » GetWidth()
112 { 112 {
113 return m_SrcWidth; 113 return m_SrcWidth;
114 } 114 }
115 virtual FX_INT32» » » GetHeight() 115 virtual int32_t» » » GetHeight()
116 { 116 {
117 return m_SrcHeight; 117 return m_SrcHeight;
118 } 118 }
119 virtual FX_INT32» » » GetNumComponents() 119 virtual int32_t» » » GetNumComponents()
120 { 120 {
121 return m_SrcComponents; 121 return m_SrcComponents;
122 } 122 }
123 virtual FX_INT32» » » GetBPC() 123 virtual int32_t» » » GetBPC()
124 { 124 {
125 return m_SrcBPC; 125 return m_SrcBPC;
126 } 126 }
127 virtual void SetClipBox(FX_RECT* clip); 127 virtual void SetClipBox(FX_RECT* clip);
128 virtual FXCODEC_STATUS» » GetFrames(FX_INT32& frames, IFX_Pause* p Pause); 128 virtual FXCODEC_STATUS» » GetFrames(int32_t& frames, IFX_Pause* pP ause);
129 129
130 virtual FXCODEC_STATUS StartDecode(CFX_DIBitmap* pDIBitmap, 130 virtual FXCODEC_STATUS StartDecode(CFX_DIBitmap* pDIBitmap,
131 int start_x, int start_y, int size_x , int size_y, 131 int start_x, int start_y, int size_x , int size_y,
132 FX_INT32 frames, FX_BOOL bInterpol); 132 int32_t frames, FX_BOOL bInterpol);
133 133
134 virtual FXCODEC_STATUS ContinueDecode(IFX_Pause* pPause); 134 virtual FXCODEC_STATUS ContinueDecode(IFX_Pause* pPause);
135 135
136 protected: 136 protected:
137 FX_BOOL DetectImageType(FXCODEC_ IMAGE_TYPE imageType, CFX_DIBAttribute* pAttribute = NULL); 137 FX_BOOL DetectImageType(FXCODEC_ IMAGE_TYPE imageType, CFX_DIBAttribute* pAttribute = NULL);
138 void GetDownScale(int& down_s cale); 138 void GetDownScale(int& down_s cale);
139 void GetTransMethod(FXDIB_For mat des_format, FXCodec_Format src_format); 139 void GetTransMethod(FXDIB_For mat des_format, FXCodec_Format src_format);
140 void» » » » » » ReSampleScanline(CFX_DIB itmap* pDeviceBitmap, FX_INT32 des_line, FX_LPBYTE src_scan, FXCodec_Format src_ format); 140 void» » » » » » ReSampleScanline(CFX_DIB itmap* pDeviceBitmap, int32_t des_line, FX_LPBYTE src_scan, FXCodec_Format src_f ormat);
141 void» » » » » » Resample(CFX_DIBitmap* p DeviceBitmap, FX_INT32 src_line, FX_LPBYTE src_scan, FXCodec_Format src_format); 141 void» » » » » » Resample(CFX_DIBitmap* p DeviceBitmap, int32_t src_line, FX_LPBYTE src_scan, FXCodec_Format src_format);
142 void ResampleVert(CFX_DIBitma p* pDeviceBitmap, double scale_y, int des_row); 142 void ResampleVert(CFX_DIBitma p* pDeviceBitmap, double scale_y, int des_row);
143 FX_BOOL JpegReadMoreData(ICodec_ JpegModule* pJpegModule, FXCODEC_STATUS& err_status); 143 FX_BOOL JpegReadMoreData(ICodec_ JpegModule* pJpegModule, FXCODEC_STATUS& err_status);
144 static FX_BOOL PngReadHeaderFunc(void* pModule, int width, int height, int bpc, int pass, int* color_type, double* gamma); 144 static FX_BOOL PngReadHeaderFunc(void* pModule, int width, int height, int bpc, int pass, int* color_type, double* gamma);
145 static FX_BOOL PngAskScanlineBufFunc(void* pMod ule, int line, FX_LPBYTE& src_buf); 145 static FX_BOOL PngAskScanlineBufFunc(void* pMod ule, int line, FX_LPBYTE& src_buf);
146 static void PngFillScanlineBufCompletedFunc( void* pModule, int pass, int line); 146 static void PngFillScanlineBufCompletedFunc( void* pModule, int pass, int line);
147 void» » » » » » PngOneOneMapResampleHorz (CFX_DIBitmap* pDeviceBitmap, FX_INT32 des_line, FX_LPBYTE src_scan, FXCodec_For mat src_format); 147 void» » » » » » PngOneOneMapResampleHorz (CFX_DIBitmap* pDeviceBitmap, int32_t des_line, FX_LPBYTE src_scan, FXCodec_Form at src_format);
148 148
149 FX_BOOL GifReadMoreData(ICodec_G ifModule* pGifModule, FXCODEC_STATUS& err_status); 149 FX_BOOL GifReadMoreData(ICodec_G ifModule* pGifModule, FXCODEC_STATUS& err_status);
150 static void GifRecordCurrentPositionCallback (void* pModule, FX_DWORD& cur_pos); 150 static void GifRecordCurrentPositionCallback (void* pModule, FX_DWORD& cur_pos);
151 static FX_LPBYTE» » » GifAskLocalPaletteBufCallback(void* pMod ule, FX_INT32 frame_num, FX_INT32 pal_size); 151 static FX_LPBYTE» » » GifAskLocalPaletteBufCallback(void* pMod ule, int32_t frame_num, int32_t pal_size);
152 static FX_BOOL GifInputRecordPositionBufCallbac k(void* pModule, FX_DWORD rcd_pos, const FX_RECT& img_rc, 152 static FX_BOOL GifInputRecordPositionBufCallbac k(void* pModule, FX_DWORD rcd_pos, const FX_RECT& img_rc,
153 FX_INT32 pal_num, void* pal_ptr, 153 int32_t pal_num, void* pal_ptr,
154 FX_INT32 delay_time, FX_BOOL user_input, 154 int32_t delay_time, FX_BOOL user_input,
155 FX_INT32 trans_index, FX_INT32 disposal_method, FX_BOOL interlace); 155 int32_t trans_index, int32_t disposal_method, FX_BOOL interlace);
156 static void»» » » » GifReadScanlineCallback(void* pM odule, FX_INT32 row_num, FX_LPBYTE row_buf); 156 static void»» » » » GifReadScanlineCallback(void* pM odule, int32_t row_num, FX_LPBYTE row_buf);
157 void GifDoubleLineResampleVer t(CFX_DIBitmap* pDeviceBitmap, double scale_y, int des_row); 157 void GifDoubleLineResampleVer t(CFX_DIBitmap* pDeviceBitmap, double scale_y, int des_row);
158 FX_BOOL BmpReadMoreData(ICodec_B mpModule* pBmpModule, FXCODEC_STATUS& err_status); 158 FX_BOOL BmpReadMoreData(ICodec_B mpModule* pBmpModule, FXCODEC_STATUS& err_status);
159 static FX_BOOL BmpInputImagePositionBufCallback (void* pModule, FX_DWORD rcd_pos); 159 static FX_BOOL BmpInputImagePositionBufCallback (void* pModule, FX_DWORD rcd_pos);
160 static void»» » » » BmpReadScanlineCallback(void* pM odule, FX_INT32 row_num, FX_LPBYTE row_buf); 160 static void»» » » » BmpReadScanlineCallback(void* pM odule, int32_t row_num, FX_LPBYTE row_buf);
161 void ResampleVertBT(CFX_DIBit map* pDeviceBitmap, double scale_y, int des_row); 161 void ResampleVertBT(CFX_DIBit map* pDeviceBitmap, double scale_y, int des_row);
162 public: 162 public:
163 IFX_FileRead* m_pFile; 163 IFX_FileRead* m_pFile;
164 CCodec_ModuleMgr* m_pCodecMgr; 164 CCodec_ModuleMgr* m_pCodecMgr;
165 FX_LPVOID m_pJpegContext; 165 FX_LPVOID m_pJpegContext;
166 FX_LPVOID m_pPngContext; 166 FX_LPVOID m_pPngContext;
167 FX_LPVOID m_pGifContext; 167 FX_LPVOID m_pGifContext;
168 FX_LPVOID m_pBmpContext; 168 FX_LPVOID m_pBmpContext;
169 FX_LPVOID m_pTiffContext; 169 FX_LPVOID m_pTiffContext;
170 FXCODEC_IMAGE_TYPE m_imagType; 170 FXCODEC_IMAGE_TYPE m_imagType;
(...skipping 19 matching lines...) Expand all
190 int m_TransMethod; 190 int m_TransMethod;
191 FX_ARGB* m_pSrcPalette; 191 FX_ARGB* m_pSrcPalette;
192 int m_SrcPaletteNumber; 192 int m_SrcPaletteNumber;
193 int m_SrcRow; 193 int m_SrcRow;
194 FXCodec_Format m_SrcFormat; 194 FXCodec_Format m_SrcFormat;
195 int m_SrcPassNumber; 195 int m_SrcPassNumber;
196 int m_FrameNumber; 196 int m_FrameNumber;
197 int m_FrameCur; 197 int m_FrameCur;
198 int m_GifBgIndex; 198 int m_GifBgIndex;
199 FX_LPBYTE m_pGifPalette; 199 FX_LPBYTE m_pGifPalette;
200 FX_INT32» » m_GifPltNumber; 200 int32_t» » m_GifPltNumber;
201 int m_GifTransIndex; 201 int m_GifTransIndex;
202 FX_RECT m_GifFrameRect; 202 FX_RECT m_GifFrameRect;
203 FX_BOOL m_BmpIsTopBottom; 203 FX_BOOL m_BmpIsTopBottom;
204 FXCODEC_STATUS m_status; 204 FXCODEC_STATUS m_status;
205 }; 205 };
206 #endif 206 #endif
OLDNEW
« no previous file with comments | « core/src/fxcodec/codec/fx_codec_png.cpp ('k') | core/src/fxcodec/codec/fx_codec_progress.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698