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

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

Issue 2382723003: Move core/fxcrt/include to core/fxcrt (Closed)
Patch Set: Rebase to master Created 4 years, 2 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_TrdProc.h ('k') | core/fxcodec/lgif/fx_gif.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 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>
11 11
12 #include "core/fxcrt/include/fx_basic.h" 12 #include "core/fxcrt/fx_basic.h"
13 13
14 #define BMP_WIDTHBYTES(width, bitCount) ((width * bitCount) + 31) / 32 * 4 14 #define BMP_WIDTHBYTES(width, bitCount) ((width * bitCount) + 31) / 32 * 4
15 #define BMP_PAL_ENCODE(a, r, g, b) \ 15 #define BMP_PAL_ENCODE(a, r, g, b) \
16 (((uint32_t)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) 16 (((uint32_t)(a) << 24) | ((r) << 16) | ((g) << 8) | (b))
17 #define BMP_D_STATUS_HEADER 0x01 17 #define BMP_D_STATUS_HEADER 0x01
18 #define BMP_D_STATUS_PAL 0x02 18 #define BMP_D_STATUS_PAL 0x02
19 #define BMP_D_STATUS_DATA_PRE 0x03 19 #define BMP_D_STATUS_DATA_PRE 0x03
20 #define BMP_D_STATUS_DATA 0x04 20 #define BMP_D_STATUS_DATA 0x04
21 #define BMP_D_STATUS_TAIL 0x00 21 #define BMP_D_STATUS_TAIL 0x00
22 #define BMP_SIGNATURE 0x4D42 22 #define BMP_SIGNATURE 0x4D42
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_TrdProc.h ('k') | core/fxcodec/lgif/fx_gif.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698