| 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_INCLUDE_FXCODEC_FX_CODEC_H_ | 7 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_H_ |
| 8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_ | 8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_ |
| 9 | 9 |
| 10 #include "../../../third_party/base/nonstd_unique_ptr.h" | 10 #include "../../../third_party/base/nonstd_unique_ptr.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 virtual FX_DWORD GetAvailInput(void* pContext, | 196 virtual FX_DWORD GetAvailInput(void* pContext, |
| 197 uint8_t** avail_buf_ptr = NULL) = 0; | 197 uint8_t** avail_buf_ptr = NULL) = 0; |
| 198 }; | 198 }; |
| 199 class ICodec_JpxModule { | 199 class ICodec_JpxModule { |
| 200 public: | 200 public: |
| 201 virtual ~ICodec_JpxModule() {} | 201 virtual ~ICodec_JpxModule() {} |
| 202 | 202 |
| 203 virtual void* CreateDecoder(const uint8_t* src_buf, | 203 virtual void* CreateDecoder(const uint8_t* src_buf, |
| 204 FX_DWORD src_size, | 204 FX_DWORD src_size, |
| 205 FX_BOOL useColorSpace = FALSE) = 0; | 205 FX_BOOL useColorSpace) = 0; |
| 206 | 206 |
| 207 virtual void GetImageInfo(void* ctx, | 207 virtual void GetImageInfo(void* ctx, |
| 208 FX_DWORD& width, | 208 FX_DWORD* width, |
| 209 FX_DWORD& height, | 209 FX_DWORD* height, |
| 210 FX_DWORD& codestream_nComps, | 210 FX_DWORD* codestream_nComps, |
| 211 FX_DWORD& output_nComps) = 0; | 211 FX_DWORD* output_nComps) = 0; |
| 212 | 212 |
| 213 virtual FX_BOOL Decode(void* ctx, | 213 virtual FX_BOOL Decode(void* ctx, |
| 214 uint8_t* dest_data, | 214 uint8_t* dest_data, |
| 215 int pitch, | 215 int pitch, |
| 216 FX_BOOL bTranslateColor, | |
| 217 uint8_t* offsets) = 0; | 216 uint8_t* offsets) = 0; |
| 218 | 217 |
| 219 virtual void DestroyDecoder(void* ctx) = 0; | 218 virtual void DestroyDecoder(void* ctx) = 0; |
| 220 }; | 219 }; |
| 221 class ICodec_Jbig2Module { | 220 class ICodec_Jbig2Module { |
| 222 public: | 221 public: |
| 223 virtual ~ICodec_Jbig2Module() {} | 222 virtual ~ICodec_Jbig2Module() {} |
| 224 | 223 |
| 225 virtual FX_BOOL Decode(FX_DWORD width, | 224 virtual FX_BOOL Decode(FX_DWORD width, |
| 226 FX_DWORD height, | 225 FX_DWORD height, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 void AdobeCMYK_to_sRGB1(uint8_t c, | 344 void AdobeCMYK_to_sRGB1(uint8_t c, |
| 346 uint8_t m, | 345 uint8_t m, |
| 347 uint8_t y, | 346 uint8_t y, |
| 348 uint8_t k, | 347 uint8_t k, |
| 349 uint8_t& R, | 348 uint8_t& R, |
| 350 uint8_t& G, | 349 uint8_t& G, |
| 351 uint8_t& B); | 350 uint8_t& B); |
| 352 FX_BOOL MD5ComputeID(const void* buf, FX_DWORD dwSize, uint8_t ID[16]); | 351 FX_BOOL MD5ComputeID(const void* buf, FX_DWORD dwSize, uint8_t ID[16]); |
| 353 | 352 |
| 354 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ | 353 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ |
| OLD | NEW |