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

Side by Side Diff: core/fxcodec/lbmp/fx_bmp.h

Issue 2032613003: Get rid of NULLs in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Fix a bad merge Created 4 years, 6 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/jbig2/JBig2_Segment.cpp ('k') | core/fxcodec/lbmp/fx_bmp.cpp » ('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 CORE_FXCODEC_LBMP_FX_BMP_H_ 7 #ifndef CORE_FXCODEC_LBMP_FX_BMP_H_
8 #define CORE_FXCODEC_LBMP_FX_BMP_H_ 8 #define CORE_FXCODEC_LBMP_FX_BMP_H_
9 9
10 #include <setjmp.h> 10 #include <setjmp.h>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 int32_t bmp_decode_rle8(bmp_decompress_struct_p bmp_ptr); 118 int32_t bmp_decode_rle8(bmp_decompress_struct_p bmp_ptr);
119 int32_t bmp_decode_rle4(bmp_decompress_struct_p bmp_ptr); 119 int32_t bmp_decode_rle4(bmp_decompress_struct_p bmp_ptr);
120 uint8_t* bmp_read_data(bmp_decompress_struct_p bmp_ptr, 120 uint8_t* bmp_read_data(bmp_decompress_struct_p bmp_ptr,
121 uint8_t** des_buf_pp, 121 uint8_t** des_buf_pp,
122 uint32_t data_size); 122 uint32_t data_size);
123 void bmp_save_decoding_status(bmp_decompress_struct_p bmp_ptr, int32_t status); 123 void bmp_save_decoding_status(bmp_decompress_struct_p bmp_ptr, int32_t status);
124 void bmp_input_buffer(bmp_decompress_struct_p bmp_ptr, 124 void bmp_input_buffer(bmp_decompress_struct_p bmp_ptr,
125 uint8_t* src_buf, 125 uint8_t* src_buf,
126 uint32_t src_size); 126 uint32_t src_size);
127 uint32_t bmp_get_avail_input(bmp_decompress_struct_p bmp_ptr, 127 uint32_t bmp_get_avail_input(bmp_decompress_struct_p bmp_ptr,
128 uint8_t** avial_buf_ptr); 128 uint8_t** avail_buf_ptr);
129 typedef struct tag_bmp_compress_struct bmp_compress_struct; 129 typedef struct tag_bmp_compress_struct bmp_compress_struct;
130 typedef bmp_compress_struct* bmp_compress_struct_p; 130 typedef bmp_compress_struct* bmp_compress_struct_p;
131 typedef bmp_compress_struct_p* bmp_compress_struct_pp; 131 typedef bmp_compress_struct_p* bmp_compress_struct_pp;
132 struct tag_bmp_compress_struct { 132 struct tag_bmp_compress_struct {
133 BmpFileHeader file_header; 133 BmpFileHeader file_header;
134 BmpInfoHeader info_header; 134 BmpInfoHeader info_header;
135 uint8_t* src_buf; 135 uint8_t* src_buf;
136 uint32_t src_pitch; 136 uint32_t src_pitch;
137 uint32_t src_row; 137 uint32_t src_row;
138 uint8_t src_bpp; 138 uint8_t src_bpp;
139 uint32_t src_width; 139 uint32_t src_width;
140 FX_BOOL src_free; 140 FX_BOOL src_free;
141 uint32_t* pal_ptr; 141 uint32_t* pal_ptr;
142 uint16_t pal_num; 142 uint16_t pal_num;
143 uint8_t bit_type; 143 uint8_t bit_type;
144 }; 144 };
145 145
146 bmp_compress_struct_p bmp_create_compress(); 146 bmp_compress_struct_p bmp_create_compress();
147 void bmp_destroy_compress(bmp_compress_struct_p bmp_ptr); 147 void bmp_destroy_compress(bmp_compress_struct_p bmp_ptr);
148 FX_BOOL bmp_encode_image(bmp_compress_struct_p bmp_ptr, 148 FX_BOOL bmp_encode_image(bmp_compress_struct_p bmp_ptr,
149 uint8_t*& dst_buf, 149 uint8_t*& dst_buf,
150 uint32_t& dst_size); 150 uint32_t& dst_size);
151 151
152 uint16_t GetWord_LSBFirst(uint8_t* p); 152 uint16_t GetWord_LSBFirst(uint8_t* p);
153 void SetWord_LSBFirst(uint8_t* p, uint16_t v); 153 void SetWord_LSBFirst(uint8_t* p, uint16_t v);
154 154
155 #endif // CORE_FXCODEC_LBMP_FX_BMP_H_ 155 #endif // CORE_FXCODEC_LBMP_FX_BMP_H_
OLDNEW
« no previous file with comments | « core/fxcodec/jbig2/JBig2_Segment.cpp ('k') | core/fxcodec/lbmp/fx_bmp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698