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

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

Issue 1876023003: Remove ICodec_* Interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months 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
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef CORE_FXCODEC_CODEC_CCODEC_BMPMODULE_H_
8 #define CORE_FXCODEC_CODEC_CCODEC_BMPMODULE_H_
9
10 #include "core/fxcrt/include/fx_system.h"
11
12 class CFX_DIBAttribute;
13
14 class CCodec_BmpModule {
15 public:
16 CCodec_BmpModule() { FXSYS_memset(m_szLastError, 0, sizeof(m_szLastError)); }
17
18 void* Start(void* pModule);
19 void Finish(void* pContext);
20
21 uint32_t GetAvailInput(void* pContext, uint8_t** avail_buf_ptr);
22 void Input(void* pContext, const uint8_t* src_buf, uint32_t src_size);
23
24 int32_t ReadHeader(void* pContext,
25 int32_t* width,
26 int32_t* height,
27 FX_BOOL* tb_flag,
28 int32_t* components,
29 int32_t* pal_num,
30 uint32_t** pal_pp,
31 CFX_DIBAttribute* pAttribute);
32 int32_t LoadImage(void* pContext);
33
34 FX_BOOL (*InputImagePositionBufCallback)(void* pModule, uint32_t rcd_pos);
35 void (*ReadScanlineCallback)(void* pModule,
36 int32_t row_num,
37 uint8_t* row_buf);
38
39 protected:
40 FX_CHAR m_szLastError[256];
41 };
42
43 #endif // CORE_FXCODEC_CODEC_CCODEC_BMPMODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698