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_INCLUDE_FXCODEC_FX_CODEC_DEF_H_ | 7 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_DEF_H_ |
8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_DEF_H_ | 8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_DEF_H_ |
9 | 9 |
| 10 #ifdef PDF_ENABLE_XFA |
| 11 enum FXCODEC_IMAGE_TYPE { |
| 12 FXCODEC_IMAGE_UNKNOWN = 0, |
| 13 FXCODEC_IMAGE_BMP, |
| 14 FXCODEC_IMAGE_JPG, |
| 15 FXCODEC_IMAGE_PNG, |
| 16 FXCODEC_IMAGE_GIF, |
| 17 FXCODEC_IMAGE_TIF, |
| 18 FXCODEC_IMAGE_MAX |
| 19 }; |
| 20 #endif |
10 enum FXCODEC_STATUS { | 21 enum FXCODEC_STATUS { |
11 FXCODEC_STATUS_ERROR = -1, | 22 FXCODEC_STATUS_ERROR = -1, |
12 FXCODEC_STATUS_FRAME_READY, | 23 FXCODEC_STATUS_FRAME_READY, |
13 FXCODEC_STATUS_FRAME_TOBECONTINUE, | 24 FXCODEC_STATUS_FRAME_TOBECONTINUE, |
14 FXCODEC_STATUS_DECODE_READY, | 25 FXCODEC_STATUS_DECODE_READY, |
15 FXCODEC_STATUS_DECODE_TOBECONTINUE, | 26 FXCODEC_STATUS_DECODE_TOBECONTINUE, |
16 FXCODEC_STATUS_DECODE_FINISH, | 27 FXCODEC_STATUS_DECODE_FINISH, |
| 28 #ifdef PDF_ENABLE_XFA |
| 29 FXCODEC_STATUS_ERR_MEMORY, |
| 30 #endif |
17 FXCODEC_STATUS_ERR_READ, | 31 FXCODEC_STATUS_ERR_READ, |
18 FXCODEC_STATUS_ERR_FLUSH, | 32 FXCODEC_STATUS_ERR_FLUSH, |
19 FXCODEC_STATUS_ERR_FORMAT, | 33 FXCODEC_STATUS_ERR_FORMAT, |
20 FXCODEC_STATUS_ERR_PARAMS | 34 FXCODEC_STATUS_ERR_PARAMS |
21 }; | 35 }; |
22 #define JP2_SPACE_INVALID -1 | 36 #define JP2_SPACE_INVALID -1 |
23 #define JPX_SPACE_INVALID -1 | 37 #define JPX_SPACE_INVALID -1 |
24 #define JP2_SPACE_bilevel1 0 | 38 #define JP2_SPACE_bilevel1 0 |
25 #define JP2_SPACE_YCbCr1 1 | 39 #define JP2_SPACE_YCbCr1 1 |
26 #define JP2_SPACE_YCbCr2 3 | 40 #define JP2_SPACE_YCbCr2 3 |
(...skipping 24 matching lines...) Expand all Loading... |
51 #define Icc_FLAGS_DEFAULT 0x0000 | 65 #define Icc_FLAGS_DEFAULT 0x0000 |
52 #define Icc_FLAGS_BLACKPOINTCOMPENSATION 0x2000 | 66 #define Icc_FLAGS_BLACKPOINTCOMPENSATION 0x2000 |
53 #define Icc_FLAGS_NOWHITEONWHITEFIXUP 0x0004 | 67 #define Icc_FLAGS_NOWHITEONWHITEFIXUP 0x0004 |
54 #define Icc_FLAGS_HIGHRESPRECALC 0x0400 | 68 #define Icc_FLAGS_HIGHRESPRECALC 0x0400 |
55 #define Icc_FLAGS_LOWRESPRECALC 0x0800 | 69 #define Icc_FLAGS_LOWRESPRECALC 0x0800 |
56 #define Icc_FLAGS_GAMUTCHECK 0x1000 | 70 #define Icc_FLAGS_GAMUTCHECK 0x1000 |
57 #define Icc_FLAGS_SOFTPROOFING 0x4000 | 71 #define Icc_FLAGS_SOFTPROOFING 0x4000 |
58 #define Icc_PARAMTYPE_NONE 0 | 72 #define Icc_PARAMTYPE_NONE 0 |
59 #define Icc_PARAMTYPE_BUFFER 1 | 73 #define Icc_PARAMTYPE_BUFFER 1 |
60 #define Icc_PARAMTYPE_PARAM 2 | 74 #define Icc_PARAMTYPE_PARAM 2 |
| 75 #ifdef PDF_ENABLE_XFA |
| 76 enum FXCODEC_RESUNIT { |
| 77 FXCODEC_RESUNIT_NONE = 0, |
| 78 FXCODEC_RESUNIT_INCH, |
| 79 FXCODEC_RESUNIT_CENTIMETER, |
| 80 FXCODEC_RESUNIT_METER |
| 81 }; |
| 82 #endif |
61 #define EXIFTAG_USHORT_RESUNIT 296 | 83 #define EXIFTAG_USHORT_RESUNIT 296 |
62 #define EXIFTAG_FLOAT_DPIX 282 | 84 #define EXIFTAG_FLOAT_DPIX 282 |
63 #define EXIFTAG_FLOAT_DPIY 283 | 85 #define EXIFTAG_FLOAT_DPIY 283 |
64 #define EXIFTAG_USHORT_ORIENTATION 274 | 86 #define EXIFTAG_USHORT_ORIENTATION 274 |
65 #define EXIFTAG_STRING_MANUFACTURER 271 | 87 #define EXIFTAG_STRING_MANUFACTURER 271 |
66 #define EXIFTAG_STRING_MODULE 272 | 88 #define EXIFTAG_STRING_MODULE 272 |
67 #define EXIFTAG_STRING_SOFTWARE 305 | 89 #define EXIFTAG_STRING_SOFTWARE 305 |
68 #define EXIFTAG_STRING_IAMGEDESCRIPTION 270 | 90 #define EXIFTAG_STRING_IAMGEDESCRIPTION 270 |
69 #define EXIFTAG_STRING_DATETIME 306 | 91 #define EXIFTAG_STRING_DATETIME 306 |
70 #define EXIFTAG_STRING_COPYRIGHT 33432 | 92 #define EXIFTAG_STRING_COPYRIGHT 33432 |
71 | 93 |
72 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_DEF_H_ | 94 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_DEF_H_ |
OLD | NEW |