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 _FX_CODEC_PROVIDER_H_ | 7 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_PROVIDER_H_ |
8 #define _FX_CODEC_PROVIDER_H_ | 8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_PROVIDER_H_ |
| 9 |
9 class IFX_JpegProvider | 10 class IFX_JpegProvider |
10 { | 11 { |
11 public: | 12 public: |
12 virtual void Release() = 0; | 13 virtual void Release() = 0; |
13 | 14 |
14 virtual void* CreateDecoder(FX_LPCBYTE src_buf, FX_DWORD src_s
ize, int width, int height, int nComps, FX_BOOL ColorTransform) = 0; | 15 virtual void* CreateDecoder(FX_LPCBYTE src_buf, FX_DWORD src_s
ize, int width, int height, int nComps, FX_BOOL ColorTransform) = 0; |
15 | 16 |
16 | 17 |
17 virtual void DestroyDecoder(void* pDecoder) = 0; | 18 virtual void DestroyDecoder(void* pDecoder) = 0; |
18 | 19 |
(...skipping 26 matching lines...) Expand all Loading... |
45 | 46 |
46 | 47 |
47 virtual FX_BOOL ReadScanline(void* pContext, FX_LPBYTE dest_buf)
= 0; | 48 virtual FX_BOOL ReadScanline(void* pContext, FX_LPBYTE dest_buf)
= 0; |
48 | 49 |
49 | 50 |
50 virtual FX_DWORD GetAvailInput(void* pContext, FX_LPBYTE* avail_buf_ptr =
NULL) = 0; | 51 virtual FX_DWORD GetAvailInput(void* pContext, FX_LPBYTE* avail_buf_ptr =
NULL) = 0; |
51 | 52 |
52 protected: | 53 protected: |
53 ~IFX_JpegProvider() { } | 54 ~IFX_JpegProvider() { } |
54 }; | 55 }; |
55 #endif | 56 |
| 57 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_PROVIDER_H_ |
OLD | NEW |