OLD | NEW |
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 CORE_FXCODEC_CODEC_FX_CODEC_PROGRESS_H_ | 7 #ifndef CORE_FXCODEC_CODEC_FX_CODEC_PROGRESS_H_ |
8 #define CORE_FXCODEC_CODEC_FX_CODEC_PROGRESS_H_ | 8 #define CORE_FXCODEC_CODEC_FX_CODEC_PROGRESS_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_memory.h" | 10 #include "core/fxcrt/include/fx_memory.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 int pass, | 115 int pass, |
116 int* color_type, | 116 int* color_type, |
117 double* gamma); | 117 double* gamma); |
118 static FX_BOOL PngAskScanlineBufFunc(void* pModule, | 118 static FX_BOOL PngAskScanlineBufFunc(void* pModule, |
119 int line, | 119 int line, |
120 uint8_t*& src_buf); | 120 uint8_t*& src_buf); |
121 static void PngFillScanlineBufCompletedFunc(void* pModule, | 121 static void PngFillScanlineBufCompletedFunc(void* pModule, |
122 int pass, | 122 int pass, |
123 int line); | 123 int line); |
124 static void GifRecordCurrentPositionCallback(void* pModule, | 124 static void GifRecordCurrentPositionCallback(void* pModule, |
125 FX_DWORD& cur_pos); | 125 uint32_t& cur_pos); |
126 static uint8_t* GifAskLocalPaletteBufCallback(void* pModule, | 126 static uint8_t* GifAskLocalPaletteBufCallback(void* pModule, |
127 int32_t frame_num, | 127 int32_t frame_num, |
128 int32_t pal_size); | 128 int32_t pal_size); |
129 static FX_BOOL GifInputRecordPositionBufCallback(void* pModule, | 129 static FX_BOOL GifInputRecordPositionBufCallback(void* pModule, |
130 FX_DWORD rcd_pos, | 130 uint32_t rcd_pos, |
131 const FX_RECT& img_rc, | 131 const FX_RECT& img_rc, |
132 int32_t pal_num, | 132 int32_t pal_num, |
133 void* pal_ptr, | 133 void* pal_ptr, |
134 int32_t delay_time, | 134 int32_t delay_time, |
135 FX_BOOL user_input, | 135 FX_BOOL user_input, |
136 int32_t trans_index, | 136 int32_t trans_index, |
137 int32_t disposal_method, | 137 int32_t disposal_method, |
138 FX_BOOL interlace); | 138 FX_BOOL interlace); |
139 static void GifReadScanlineCallback(void* pModule, | 139 static void GifReadScanlineCallback(void* pModule, |
140 int32_t row_num, | 140 int32_t row_num, |
141 uint8_t* row_buf); | 141 uint8_t* row_buf); |
142 static FX_BOOL BmpInputImagePositionBufCallback(void* pModule, | 142 static FX_BOOL BmpInputImagePositionBufCallback(void* pModule, |
143 FX_DWORD rcd_pos); | 143 uint32_t rcd_pos); |
144 static void BmpReadScanlineCallback(void* pModule, | 144 static void BmpReadScanlineCallback(void* pModule, |
145 int32_t row_num, | 145 int32_t row_num, |
146 uint8_t* row_buf); | 146 uint8_t* row_buf); |
147 | 147 |
148 FX_BOOL DetectImageType(FXCODEC_IMAGE_TYPE imageType, | 148 FX_BOOL DetectImageType(FXCODEC_IMAGE_TYPE imageType, |
149 CFX_DIBAttribute* pAttribute); | 149 CFX_DIBAttribute* pAttribute); |
150 void GetDownScale(int& down_scale); | 150 void GetDownScale(int& down_scale); |
151 void GetTransMethod(FXDIB_Format des_format, FXCodec_Format src_format); | 151 void GetTransMethod(FXDIB_Format des_format, FXCodec_Format src_format); |
152 void ReSampleScanline(CFX_DIBitmap* pDeviceBitmap, | 152 void ReSampleScanline(CFX_DIBitmap* pDeviceBitmap, |
153 int32_t des_line, | 153 int32_t des_line, |
(...skipping 21 matching lines...) Expand all Loading... |
175 | 175 |
176 public: | 176 public: |
177 IFX_FileRead* m_pFile; | 177 IFX_FileRead* m_pFile; |
178 CCodec_ModuleMgr* m_pCodecMgr; | 178 CCodec_ModuleMgr* m_pCodecMgr; |
179 void* m_pJpegContext; | 179 void* m_pJpegContext; |
180 void* m_pPngContext; | 180 void* m_pPngContext; |
181 void* m_pGifContext; | 181 void* m_pGifContext; |
182 void* m_pBmpContext; | 182 void* m_pBmpContext; |
183 void* m_pTiffContext; | 183 void* m_pTiffContext; |
184 FXCODEC_IMAGE_TYPE m_imagType; | 184 FXCODEC_IMAGE_TYPE m_imagType; |
185 FX_DWORD m_offSet; | 185 uint32_t m_offSet; |
186 uint8_t* m_pSrcBuf; | 186 uint8_t* m_pSrcBuf; |
187 FX_DWORD m_SrcSize; | 187 uint32_t m_SrcSize; |
188 uint8_t* m_pDecodeBuf; | 188 uint8_t* m_pDecodeBuf; |
189 int m_ScanlineSize; | 189 int m_ScanlineSize; |
190 CFX_DIBitmap* m_pDeviceBitmap; | 190 CFX_DIBitmap* m_pDeviceBitmap; |
191 FX_BOOL m_bInterpol; | 191 FX_BOOL m_bInterpol; |
192 CFXCODEC_WeightTable m_WeightHorz; | 192 CFXCODEC_WeightTable m_WeightHorz; |
193 CFXCODEC_VertTable m_WeightVert; | 193 CFXCODEC_VertTable m_WeightVert; |
194 CFXCODEC_HorzTable m_WeightHorzOO; | 194 CFXCODEC_HorzTable m_WeightHorzOO; |
195 int m_SrcWidth; | 195 int m_SrcWidth; |
196 int m_SrcHeight; | 196 int m_SrcHeight; |
197 int m_SrcComponents; | 197 int m_SrcComponents; |
(...skipping 14 matching lines...) Expand all Loading... |
212 int m_GifBgIndex; | 212 int m_GifBgIndex; |
213 uint8_t* m_pGifPalette; | 213 uint8_t* m_pGifPalette; |
214 int32_t m_GifPltNumber; | 214 int32_t m_GifPltNumber; |
215 int m_GifTransIndex; | 215 int m_GifTransIndex; |
216 FX_RECT m_GifFrameRect; | 216 FX_RECT m_GifFrameRect; |
217 FX_BOOL m_BmpIsTopBottom; | 217 FX_BOOL m_BmpIsTopBottom; |
218 FXCODEC_STATUS m_status; | 218 FXCODEC_STATUS m_status; |
219 }; | 219 }; |
220 | 220 |
221 #endif // CORE_FXCODEC_CODEC_FX_CODEC_PROGRESS_H_ | 221 #endif // CORE_FXCODEC_CODEC_FX_CODEC_PROGRESS_H_ |
OLD | NEW |