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_FXCODEC_LGIF_FX_GIF_H_ | 7 #ifndef CORE_FXCODEC_LGIF_FX_GIF_H_ |
8 #define CORE_FXCODEC_LGIF_FX_GIF_H_ | 8 #define CORE_FXCODEC_LGIF_FX_GIF_H_ |
9 | 9 |
10 #include <setjmp.h> | 10 #include <setjmp.h> |
11 | 11 |
12 #include "core/include/fxcrt/fx_basic.h" | 12 #include "core/fxcrt/include/fx_basic.h" |
13 | 13 |
14 #define GIF_SIGNATURE "GIF" | 14 #define GIF_SIGNATURE "GIF" |
15 #define GIF_SIG_EXTENSION 0x21 | 15 #define GIF_SIG_EXTENSION 0x21 |
16 #define GIF_SIG_IMAGE 0x2C | 16 #define GIF_SIG_IMAGE 0x2C |
17 #define GIF_SIG_TRAILER 0x3B | 17 #define GIF_SIG_TRAILER 0x3B |
18 #define GIF_BLOCK_GCE 0xF9 | 18 #define GIF_BLOCK_GCE 0xF9 |
19 #define GIF_BLOCK_PTE 0x01 | 19 #define GIF_BLOCK_PTE 0x01 |
20 #define GIF_BLOCK_CE 0xFE | 20 #define GIF_BLOCK_CE 0xFE |
21 #define GIF_BLOCK_AE 0xFF | 21 #define GIF_BLOCK_AE 0xFF |
22 #define GIF_BLOCK_TERMINAL 0x00 | 22 #define GIF_BLOCK_TERMINAL 0x00 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 uint8_t* src_buf, | 287 uint8_t* src_buf, |
288 FX_DWORD src_size); | 288 FX_DWORD src_size); |
289 FX_DWORD gif_get_avail_input(gif_decompress_struct_p gif_ptr, | 289 FX_DWORD gif_get_avail_input(gif_decompress_struct_p gif_ptr, |
290 uint8_t** avial_buf_ptr); | 290 uint8_t** avial_buf_ptr); |
291 void interlace_buf(const uint8_t* buf, FX_DWORD width, FX_DWORD height); | 291 void interlace_buf(const uint8_t* buf, FX_DWORD width, FX_DWORD height); |
292 FX_BOOL gif_encode(gif_compress_struct_p gif_ptr, | 292 FX_BOOL gif_encode(gif_compress_struct_p gif_ptr, |
293 uint8_t*& dst_buf, | 293 uint8_t*& dst_buf, |
294 FX_DWORD& dst_len); | 294 FX_DWORD& dst_len); |
295 | 295 |
296 #endif // CORE_FXCODEC_LGIF_FX_GIF_H_ | 296 #endif // CORE_FXCODEC_LGIF_FX_GIF_H_ |
OLD | NEW |