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

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

Issue 1572523002: XFA: Remove relative includes outside of xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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
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 #include <setjmp.h> 7 #include <setjmp.h>
8 8
9 #include "../../../include/fxcrt/fx_basic.h" 9 #include "core/include/fxcrt/fx_basic.h"
10 10
11 #define BMP_SUPPORT_BITFIELD 11 #define BMP_SUPPORT_BITFIELD
12 #define BMP_WIDTHBYTES(width, bitCount) ((width * bitCount) + 31) / 32 * 4 12 #define BMP_WIDTHBYTES(width, bitCount) ((width * bitCount) + 31) / 32 * 4
13 #define BMP_PAL_ENCODE(a, r, g, b) \ 13 #define BMP_PAL_ENCODE(a, r, g, b) \
14 (((FX_DWORD)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) 14 (((FX_DWORD)(a) << 24) | ((r) << 16) | ((g) << 8) | (b))
15 #define BMP_D_STATUS_HEADER 0x01 15 #define BMP_D_STATUS_HEADER 0x01
16 #define BMP_D_STATUS_PAL 0x02 16 #define BMP_D_STATUS_PAL 0x02
17 #define BMP_D_STATUS_DATA_PRE 0x03 17 #define BMP_D_STATUS_DATA_PRE 0x03
18 #define BMP_D_STATUS_DATA 0x04 18 #define BMP_D_STATUS_DATA 0x04
19 #define BMP_D_STATUS_TAIL 0x00 19 #define BMP_D_STATUS_TAIL 0x00
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 FX_WORD pal_num; 146 FX_WORD pal_num;
147 #ifdef BMP_SUPPORT_BITFIELD 147 #ifdef BMP_SUPPORT_BITFIELD
148 uint8_t bit_type; 148 uint8_t bit_type;
149 #endif 149 #endif
150 }; 150 };
151 bmp_compress_struct_p _bmp_create_compress(); 151 bmp_compress_struct_p _bmp_create_compress();
152 void _bmp_destroy_compress(bmp_compress_struct_p bmp_ptr); 152 void _bmp_destroy_compress(bmp_compress_struct_p bmp_ptr);
153 FX_BOOL _bmp_encode_image(bmp_compress_struct_p bmp_ptr, 153 FX_BOOL _bmp_encode_image(bmp_compress_struct_p bmp_ptr,
154 uint8_t*& dst_buf, 154 uint8_t*& dst_buf,
155 FX_DWORD& dst_size); 155 FX_DWORD& dst_size);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698