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

Side by Side Diff: core/fxcodec/codec/ccodec_gifmodule.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
« no previous file with comments | « core/fxcodec/codec/ccodec_flatemodule.h ('k') | core/fxcodec/codec/ccodec_iccmodule.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_GIFMODULE_H_
8 #define CORE_FXCODEC_CODEC_CCODEC_GIFMODULE_H_
9
10 #include "core/fxcrt/include/fx_system.h"
11
12 struct FXGIF_Context;
13
14 class CCodec_GifModule {
15 public:
16 CCodec_GifModule() { FXSYS_memset(m_szLastError, 0, sizeof(m_szLastError)); }
17
18 FXGIF_Context* Start(void* pModule);
19 void Finish(FXGIF_Context* pContext);
20
21 uint32_t GetAvailInput(FXGIF_Context* pContext,
22 uint8_t** avail_buf_ptr = nullptr);
23 void Input(FXGIF_Context* pContext,
24 const uint8_t* src_buf,
25 uint32_t src_size);
26
27 int32_t ReadHeader(FXGIF_Context* pContext,
28 int* width,
29 int* height,
30 int* pal_num,
31 void** pal_pp,
32 int* bg_index,
33 CFX_DIBAttribute* pAttribute);
34
35 int32_t LoadFrameInfo(FXGIF_Context* pContext, int* frame_num);
36
37 int32_t LoadFrame(FXGIF_Context* pContext,
38 int frame_num,
39 CFX_DIBAttribute* pAttribute);
40
41 void (*RecordCurrentPositionCallback)(void* pModule, uint32_t& cur_pos);
42 uint8_t* (*AskLocalPaletteBufCallback)(void* pModule,
43 int32_t frame_num,
44 int32_t pal_size);
45 FX_BOOL (*InputRecordPositionBufCallback)(void* pModule,
46 uint32_t rcd_pos,
47 const FX_RECT& img_rc,
48 int32_t pal_num,
49 void* pal_ptr,
50 int32_t delay_time,
51 FX_BOOL user_input,
52 int32_t trans_index,
53 int32_t disposal_method,
54 FX_BOOL interlace);
55 void (*ReadScanlineCallback)(void* pModule,
56 int32_t row_num,
57 uint8_t* row_buf);
58
59 protected:
60 FX_CHAR m_szLastError[256];
61 };
62
63 #endif // CORE_FXCODEC_CODEC_CCODEC_GIFMODULE_H_
OLDNEW
« no previous file with comments | « core/fxcodec/codec/ccodec_flatemodule.h ('k') | core/fxcodec/codec/ccodec_iccmodule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698