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 #include "../../../include/fxcodec/fx_codec.h" | 7 #include "../../../include/fxcodec/fx_codec.h" |
8 #include "../../../include/fxge/fx_dib.h" | 8 #include "../../../include/fxge/fx_dib.h" |
9 #include "codec_int.h" | 9 #include "codec_int.h" |
10 extern "C" { | 10 extern "C" { |
11 #include "../fx_tiff/include/fx_tiffiop.h" | 11 #include "../../../../third_party/tiff_v403/tiffiop.h" |
12 } | 12 } |
13 void* IccLib_CreateTransform_sRGB(const unsigned char* pProfileData, | 13 void* IccLib_CreateTransform_sRGB(const unsigned char* pProfileData, |
14 unsigned int dwProfileSize, | 14 unsigned int dwProfileSize, |
15 int nComponents, | 15 int nComponents, |
16 int intent, | 16 int intent, |
17 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT); | 17 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT); |
18 void IccLib_TranslateImage(void* pTransform, | 18 void IccLib_TranslateImage(void* pTransform, |
19 unsigned char* pDest, | 19 unsigned char* pDest, |
20 const unsigned char* pSrc, | 20 const unsigned char* pSrc, |
21 int pixels); | 21 int pixels); |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 return pDecoder->LoadFrameInfo(frame, width, height, comps, bpc, pAttribute); | 554 return pDecoder->LoadFrameInfo(frame, width, height, comps, bpc, pAttribute); |
555 } | 555 } |
556 FX_BOOL CCodec_TiffModule::Decode(void* ctx, class CFX_DIBitmap* pDIBitmap) { | 556 FX_BOOL CCodec_TiffModule::Decode(void* ctx, class CFX_DIBitmap* pDIBitmap) { |
557 CCodec_TiffContext* pDecoder = (CCodec_TiffContext*)ctx; | 557 CCodec_TiffContext* pDecoder = (CCodec_TiffContext*)ctx; |
558 return pDecoder->Decode(pDIBitmap); | 558 return pDecoder->Decode(pDIBitmap); |
559 } | 559 } |
560 void CCodec_TiffModule::DestroyDecoder(void* ctx) { | 560 void CCodec_TiffModule::DestroyDecoder(void* ctx) { |
561 CCodec_TiffContext* pDecoder = (CCodec_TiffContext*)ctx; | 561 CCodec_TiffContext* pDecoder = (CCodec_TiffContext*)ctx; |
562 delete pDecoder; | 562 delete pDecoder; |
563 } | 563 } |
OLD | NEW |