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

Side by Side Diff: core/src/fxcodec/lgif/fx_gif.h

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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/src/fxcodec/codec/fx_codec_tiff.cpp ('k') | core/src/fxcrt/extension.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 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 _FX_BASIC_H_ 7 #ifndef _FX_BASIC_H_
8 #include "../../../include/fxcrt/fx_basic.h" 8 #include "../../../include/fxcrt/fx_basic.h"
9 #endif 9 #endif
10 extern FX_WORD _GetWord_LSBFirst(FX_LPBYTE p); 10 extern FX_WORD _GetWord_LSBFirst(FX_LPBYTE p);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 FX_BYTE image_code_size; 110 FX_BYTE image_code_size;
111 FX_DWORD image_data_pos; 111 FX_DWORD image_data_pos;
112 FX_LPBYTE image_row_buf; 112 FX_LPBYTE image_row_buf;
113 FX_INT32 image_row_num; 113 FX_INT32 image_row_num;
114 } GifImage; 114 } GifImage;
115 typedef struct tagGifPlainText { 115 typedef struct tagGifPlainText {
116 GifGCE* gce_ptr; 116 GifGCE* gce_ptr;
117 GifPTE* pte_ptr; 117 GifPTE* pte_ptr;
118 CFX_ByteString* string_ptr; 118 CFX_ByteString* string_ptr;
119 } GifPlainText; 119 } GifPlainText;
120 class CGifLZWDecoder : public CFX_Object 120 class CGifLZWDecoder
121 { 121 {
122 public: 122 public:
123 struct tag_Table { 123 struct tag_Table {
124 FX_WORD prefix; 124 FX_WORD prefix;
125 FX_BYTE suffix; 125 FX_BYTE suffix;
126 }; 126 };
127 CGifLZWDecoder(FX_LPSTR error_ptr = NULL) 127 CGifLZWDecoder(FX_LPSTR error_ptr = NULL)
128 { 128 {
129 err_msg_ptr = error_ptr; 129 err_msg_ptr = error_ptr;
130 } 130 }
(...skipping 20 matching lines...) Expand all
151 FX_WORD code_old; 151 FX_WORD code_old;
152 152
153 FX_LPBYTE next_in; 153 FX_LPBYTE next_in;
154 FX_DWORD avail_in; 154 FX_DWORD avail_in;
155 155
156 FX_BYTE bits_left; 156 FX_BYTE bits_left;
157 FX_DWORD code_store; 157 FX_DWORD code_store;
158 158
159 FX_LPSTR err_msg_ptr; 159 FX_LPSTR err_msg_ptr;
160 }; 160 };
161 class CGifLZWEncoder : public CFX_Object 161 class CGifLZWEncoder
162 { 162 {
163 public: 163 public:
164 struct tag_Table { 164 struct tag_Table {
165 FX_WORD prefix; 165 FX_WORD prefix;
166 FX_BYTE suffix; 166 FX_BYTE suffix;
167 }; 167 };
168 CGifLZWEncoder(); 168 CGifLZWEncoder();
169 ~CGifLZWEncoder(); 169 ~CGifLZWEncoder();
170 void Start(FX_BYTE code_len, FX_LPCBYTE src_buf, FX_LPBYTE& d st_buf, FX_DWORD& offset); 170 void Start(FX_BYTE code_len, FX_LPCBYTE src_buf, FX_LPBYTE& d st_buf, FX_DWORD& offset);
171 FX_BOOL Encode(FX_LPCBYTE src_buf, FX_DWORD src_len, FX_LPBYTE& dst_buf, FX_DWORD& dst_len, FX_DWORD& offset); 171 FX_BOOL Encode(FX_LPCBYTE src_buf, FX_DWORD src_len, FX_LPBYTE& dst_buf, FX_DWORD& dst_len, FX_DWORD& offset);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 FX_LPBYTE _gif_read_data(gif_decompress_struct_p gif_ptr, FX_LPBYTE* des_buf_pp, FX_DWORD data_size); 298 FX_LPBYTE _gif_read_data(gif_decompress_struct_p gif_ptr, FX_LPBYTE* des_buf_pp, FX_DWORD data_size);
299 void _gif_save_decoding_status(gif_decompress_struct_p gif_ptr, FX_INT32 status) ; 299 void _gif_save_decoding_status(gif_decompress_struct_p gif_ptr, FX_INT32 status) ;
300 void _gif_input_buffer(gif_decompress_struct_p gif_ptr, FX_LPBYTE src_buf, FX_DW ORD src_size); 300 void _gif_input_buffer(gif_decompress_struct_p gif_ptr, FX_LPBYTE src_buf, FX_DW ORD src_size);
301 FX_DWORD _gif_get_avail_input(gif_decompress_struct_p gif_ptr, FX_LPBYTE* avial_ buf_ptr); 301 FX_DWORD _gif_get_avail_input(gif_decompress_struct_p gif_ptr, FX_LPBYTE* avial_ buf_ptr);
302 void interlace_buf(FX_LPCBYTE buf, FX_DWORD width, FX_DWORD height); 302 void interlace_buf(FX_LPCBYTE buf, FX_DWORD width, FX_DWORD height);
303 FX_BOOL _gif_encode( gif_compress_struct_p gif_ptr, FX_LPBYTE& dst_buf, FX_DWORD & dst_len ); 303 FX_BOOL _gif_encode( gif_compress_struct_p gif_ptr, FX_LPBYTE& dst_buf, FX_DWORD & dst_len );
304 #define GIF_PTR_NOT_NULL(ptr,gif_ptr) if(ptr == NULL){ \ 304 #define GIF_PTR_NOT_NULL(ptr,gif_ptr) if(ptr == NULL){ \
305 _gif_error(gif_ptr,"Out Of Memory");\ 305 _gif_error(gif_ptr,"Out Of Memory");\
306 return 0; \ 306 return 0; \
307 } 307 }
OLDNEW
« no previous file with comments | « core/src/fxcodec/codec/fx_codec_tiff.cpp ('k') | core/src/fxcrt/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698