Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: core/fxcodec/codec/ccodec_flatemodule.h

Issue 2477443002: Remove FX_BOOL from core (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fxcodec/codec/ccodec_bmpmodule.h ('k') | core/fxcodec/codec/ccodec_gifmodule.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_FXCODEC_CODEC_CCODEC_FLATEMODULE_H_ 7 #ifndef CORE_FXCODEC_CODEC_CCODEC_FLATEMODULE_H_
8 #define CORE_FXCODEC_CODEC_CCODEC_FLATEMODULE_H_ 8 #define CORE_FXCODEC_CODEC_CCODEC_FLATEMODULE_H_
9 9
10 #include "core/fxcrt/fx_system.h" 10 #include "core/fxcrt/fx_system.h"
11 11
12 class CCodec_ScanlineDecoder; 12 class CCodec_ScanlineDecoder;
13 13
14 class CCodec_FlateModule { 14 class CCodec_FlateModule {
15 public: 15 public:
16 CCodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf, 16 CCodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
17 uint32_t src_size, 17 uint32_t src_size,
18 int width, 18 int width,
19 int height, 19 int height,
20 int nComps, 20 int nComps,
21 int bpc, 21 int bpc,
22 int predictor, 22 int predictor,
23 int Colors, 23 int Colors,
24 int BitsPerComponent, 24 int BitsPerComponent,
25 int Columns); 25 int Columns);
26 uint32_t FlateOrLZWDecode(FX_BOOL bLZW, 26 uint32_t FlateOrLZWDecode(bool bLZW,
27 const uint8_t* src_buf, 27 const uint8_t* src_buf,
28 uint32_t src_size, 28 uint32_t src_size,
29 FX_BOOL bEarlyChange, 29 bool bEarlyChange,
30 int predictor, 30 int predictor,
31 int Colors, 31 int Colors,
32 int BitsPerComponent, 32 int BitsPerComponent,
33 int Columns, 33 int Columns,
34 uint32_t estimated_size, 34 uint32_t estimated_size,
35 uint8_t*& dest_buf, 35 uint8_t*& dest_buf,
36 uint32_t& dest_size); 36 uint32_t& dest_size);
37 bool Encode(const uint8_t* src_buf, 37 bool Encode(const uint8_t* src_buf,
38 uint32_t src_size, 38 uint32_t src_size,
39 uint8_t** dest_buf, 39 uint8_t** dest_buf,
40 uint32_t* dest_size); 40 uint32_t* dest_size);
41 bool PngEncode(const uint8_t* src_buf, 41 bool PngEncode(const uint8_t* src_buf,
42 uint32_t src_size, 42 uint32_t src_size,
43 uint8_t** dest_buf, 43 uint8_t** dest_buf,
44 uint32_t* dest_size); 44 uint32_t* dest_size);
45 }; 45 };
46 46
47 #endif // CORE_FXCODEC_CODEC_CCODEC_FLATEMODULE_H_ 47 #endif // CORE_FXCODEC_CODEC_CCODEC_FLATEMODULE_H_
OLDNEW
« no previous file with comments | « core/fxcodec/codec/ccodec_bmpmodule.h ('k') | core/fxcodec/codec/ccodec_gifmodule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698