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

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

Issue 1248153004: Merge to XFA: FX_BOOL combo patch. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: CTTFontDesc::ReleaseFace() mismatch Created 5 years, 4 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/fpdftext/fpdf_text.cpp ('k') | core/src/fxcodec/codec/fx_codec_flate.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 CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ 7 #ifndef CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_
8 #define CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ 8 #define CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_
9 9
10 #include <limits.h> 10 #include <limits.h>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf, FX_DWORD s rc_size, 145 ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf, FX_DWORD s rc_size,
146 int width, int height, int nComps, FX_ BOOL ColorTransform); 146 int width, int height, int nComps, FX_ BOOL ColorTransform);
147 FX_BOOL LoadInfo(const uint8_t* src_buf, FX_DWORD src_size, int& width, int& height, 147 FX_BOOL LoadInfo(const uint8_t* src_buf, FX_DWORD src_size, int& width, int& height,
148 int& num_components, int& bits_per_components, FX_BOOL& color_transform, 148 int& num_components, int& bits_per_components, FX_BOOL& color_transform,
149 uint8_t** icc_buf_ptr, FX_DWORD* icc_length); 149 uint8_t** icc_buf_ptr, FX_DWORD* icc_length);
150 FX_BOOL Encode(const CFX_DIBSource* pSource, uint8_t*& dest_buf, FX_STRSIZE& dest_size, int quality, const uint8_t* icc_buf, FX_DWORD icc_length ); 150 FX_BOOL Encode(const CFX_DIBSource* pSource, uint8_t*& dest_buf, FX_STRSIZE& dest_size, int quality, const uint8_t* icc_buf, FX_DWORD icc_length );
151 virtual void* Start(); 151 virtual void* Start();
152 virtual void Finish(void* pContext); 152 virtual void Finish(void* pContext);
153 virtual void Input(void* pContext, const uint8_t* src_buf, FX _DWORD src_size); 153 virtual void Input(void* pContext, const uint8_t* src_buf, FX _DWORD src_size);
154 virtual int ReadHeader(void* pContext, int* width, int* heig ht, int* nComps, CFX_DIBAttribute* pAttribute = NULL); 154 virtual int ReadHeader(void* pContext, int* width, int* heig ht, int* nComps, CFX_DIBAttribute* pAttribute = NULL);
155 virtual FX_BOOL» » StartScanline(void* pContext, int down_scale); 155 virtual int»» » StartScanline(void* pContext, int down_scale);
156 virtual FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf); 156 virtual FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf);
157 virtual FX_DWORD GetAvailInput(void* pContext, uint8_t** avail_buf_ptr); 157 virtual FX_DWORD GetAvailInput(void* pContext, uint8_t** avail_buf_ptr);
158 protected: 158 protected:
159 IFX_JpegProvider* m_pExtProvider; 159 IFX_JpegProvider* m_pExtProvider;
160 }; 160 };
161 #define PNG_ERROR_SIZE 256 161 #define PNG_ERROR_SIZE 256
162 class CCodec_PngModule : public ICodec_PngModule 162 class CCodec_PngModule : public ICodec_PngModule
163 { 163 {
164 public: 164 public:
165 CCodec_PngModule() 165 CCodec_PngModule()
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 OPJ_SIZE_T offset; 377 OPJ_SIZE_T offset;
378 }; 378 };
379 379
380 /* Wrappers for C-style callbacks. */ 380 /* Wrappers for C-style callbacks. */
381 OPJ_SIZE_T opj_read_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data); 381 OPJ_SIZE_T opj_read_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data);
382 OPJ_SIZE_T opj_write_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data); 382 OPJ_SIZE_T opj_write_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data);
383 OPJ_OFF_T opj_skip_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data); 383 OPJ_OFF_T opj_skip_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data);
384 OPJ_BOOL opj_seek_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data); 384 OPJ_BOOL opj_seek_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data);
385 385
386 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ 386 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_
OLDNEW
« no previous file with comments | « core/src/fpdftext/fpdf_text.cpp ('k') | core/src/fxcodec/codec/fx_codec_flate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698