| 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 |
| 10 extern "C" { | 11 extern "C" { |
| 11 #include "../../../../third_party/tiff_v403/tiffiop.h" | 12 #include "third_party/tiff_v403/tiffiop.h" |
| 12 } | 13 } |
| 14 |
| 13 void* IccLib_CreateTransform_sRGB(const unsigned char* pProfileData, | 15 void* IccLib_CreateTransform_sRGB(const unsigned char* pProfileData, |
| 14 unsigned int dwProfileSize, | 16 unsigned int dwProfileSize, |
| 15 int nComponents, | 17 int nComponents, |
| 16 int intent, | 18 int intent, |
| 17 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT); | 19 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT); |
| 18 void IccLib_TranslateImage(void* pTransform, | 20 void IccLib_TranslateImage(void* pTransform, |
| 19 unsigned char* pDest, | 21 unsigned char* pDest, |
| 20 const unsigned char* pSrc, | 22 const unsigned char* pSrc, |
| 21 int pixels); | 23 int pixels); |
| 22 void IccLib_DestroyTransform(void* pTransform); | 24 void IccLib_DestroyTransform(void* pTransform); |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 return pDecoder->LoadFrameInfo(frame, width, height, comps, bpc, pAttribute); | 547 return pDecoder->LoadFrameInfo(frame, width, height, comps, bpc, pAttribute); |
| 546 } | 548 } |
| 547 FX_BOOL CCodec_TiffModule::Decode(void* ctx, class CFX_DIBitmap* pDIBitmap) { | 549 FX_BOOL CCodec_TiffModule::Decode(void* ctx, class CFX_DIBitmap* pDIBitmap) { |
| 548 CCodec_TiffContext* pDecoder = (CCodec_TiffContext*)ctx; | 550 CCodec_TiffContext* pDecoder = (CCodec_TiffContext*)ctx; |
| 549 return pDecoder->Decode(pDIBitmap); | 551 return pDecoder->Decode(pDIBitmap); |
| 550 } | 552 } |
| 551 void CCodec_TiffModule::DestroyDecoder(void* ctx) { | 553 void CCodec_TiffModule::DestroyDecoder(void* ctx) { |
| 552 CCodec_TiffContext* pDecoder = (CCodec_TiffContext*)ctx; | 554 CCodec_TiffContext* pDecoder = (CCodec_TiffContext*)ctx; |
| 553 delete pDecoder; | 555 delete pDecoder; |
| 554 } | 556 } |
| OLD | NEW |