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/fxcrt/include/fx_basic.h" | 12 #include "core/fxcrt/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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 uint8_t* src_buf, | 298 uint8_t* src_buf, |
299 uint32_t src_size); | 299 uint32_t src_size); |
300 uint32_t gif_get_avail_input(gif_decompress_struct_p gif_ptr, | 300 uint32_t gif_get_avail_input(gif_decompress_struct_p gif_ptr, |
301 uint8_t** avail_buf_ptr); | 301 uint8_t** avail_buf_ptr); |
302 void interlace_buf(const uint8_t* buf, uint32_t width, uint32_t height); | 302 void interlace_buf(const uint8_t* buf, uint32_t width, uint32_t height); |
303 FX_BOOL gif_encode(gif_compress_struct_p gif_ptr, | 303 FX_BOOL gif_encode(gif_compress_struct_p gif_ptr, |
304 uint8_t*& dst_buf, | 304 uint8_t*& dst_buf, |
305 uint32_t& dst_len); | 305 uint32_t& dst_len); |
306 | 306 |
307 #endif // CORE_FXCODEC_LGIF_FX_GIF_H_ | 307 #endif // CORE_FXCODEC_LGIF_FX_GIF_H_ |
OLD | NEW |