Chromium Code Reviews| 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 <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "../../../third_party/base/nonstd_unique_ptr.h" | 12 #include "../../../third_party/base/nonstd_unique_ptr.h" |
| 13 #include "../fxcrt/fx_basic.h" | 13 #include "../fxcrt/fx_basic.h" |
| 14 #include "fx_codec_def.h" | 14 #include "fx_codec_def.h" |
| 15 #include "fx_codec_provider.h" | |
| 16 | 15 |
| 17 class CFX_DIBSource; | 16 class CFX_DIBSource; |
| 18 class CJPX_Decoder; | 17 class CJPX_Decoder; |
| 19 class CPDF_PrivateData; | 18 class CPDF_PrivateData; |
| 20 class CPDF_StreamAcc; | 19 class CPDF_StreamAcc; |
| 21 class ICodec_ScanlineDecoder; | 20 class ICodec_ScanlineDecoder; |
| 22 class ICodec_BasicModule; | 21 class ICodec_BasicModule; |
| 23 class ICodec_FaxModule; | 22 class ICodec_FaxModule; |
| 24 class ICodec_JpegModule; | 23 class ICodec_JpegModule; |
| 25 class ICodec_JpxModule; | 24 class ICodec_JpxModule; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 int width, | 149 int width, |
| 151 int height, | 150 int height, |
| 152 int pitch, | 151 int pitch, |
| 153 uint8_t*& dest_buf, | 152 uint8_t*& dest_buf, |
| 154 FX_DWORD& dest_size) = 0; | 153 FX_DWORD& dest_size) = 0; |
| 155 }; | 154 }; |
| 156 class ICodec_JpegModule { | 155 class ICodec_JpegModule { |
| 157 public: | 156 public: |
| 158 virtual ~ICodec_JpegModule() {} | 157 virtual ~ICodec_JpegModule() {} |
| 159 | 158 |
| 160 virtual void SetPovider(IFX_JpegProvider* pJP) = 0; | |
|
Tom Sepez
2015/10/29 21:55:14
That this misspelling was never noticed should hav
| |
| 161 | |
| 162 virtual ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf, | 159 virtual ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf, |
| 163 FX_DWORD src_size, | 160 FX_DWORD src_size, |
| 164 int width, | 161 int width, |
| 165 int height, | 162 int height, |
| 166 int nComps, | 163 int nComps, |
| 167 FX_BOOL ColorTransform) = 0; | 164 FX_BOOL ColorTransform) = 0; |
| 168 | 165 |
| 169 virtual FX_BOOL LoadInfo(const uint8_t* src_buf, | 166 virtual FX_BOOL LoadInfo(const uint8_t* src_buf, |
| 170 FX_DWORD src_size, | 167 FX_DWORD src_size, |
| 171 int& width, | 168 int& width, |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 338 | 335 |
| 339 void FaxG4Decode(const uint8_t* src_buf, | 336 void FaxG4Decode(const uint8_t* src_buf, |
| 340 FX_DWORD src_size, | 337 FX_DWORD src_size, |
| 341 int* pbitpos, | 338 int* pbitpos, |
| 342 uint8_t* dest_buf, | 339 uint8_t* dest_buf, |
| 343 int width, | 340 int width, |
| 344 int height, | 341 int height, |
| 345 int pitch); | 342 int pitch); |
| 346 | 343 |
| 347 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ | 344 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ |
| OLD | NEW |