Merge to XFA: Fix ALL the include guards.
[pdfium.git] / core / include / fxcodec / fx_codec_def.h
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4  
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_DEF_H_
8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_DEF_H_
9
10 enum FXCODEC_IMAGE_TYPE {
11     FXCODEC_IMAGE_UNKNOWN = 0,
12     FXCODEC_IMAGE_BMP,
13     FXCODEC_IMAGE_JPG,
14     FXCODEC_IMAGE_PNG,
15     FXCODEC_IMAGE_GIF,
16     FXCODEC_IMAGE_TIF,
17     FXCODEC_IMAGE_MAX
18 };
19 enum FXCODEC_STATUS {
20     FXCODEC_STATUS_ERROR = -1,
21     FXCODEC_STATUS_FRAME_READY,
22     FXCODEC_STATUS_FRAME_TOBECONTINUE,
23     FXCODEC_STATUS_DECODE_READY,
24     FXCODEC_STATUS_DECODE_TOBECONTINUE,
25     FXCODEC_STATUS_DECODE_FINISH,
26     FXCODEC_STATUS_ERR_MEMORY,
27     FXCODEC_STATUS_ERR_READ,
28     FXCODEC_STATUS_ERR_FLUSH,
29     FXCODEC_STATUS_ERR_FORMAT,
30     FXCODEC_STATUS_ERR_PARAMS
31 };
32 #define JP2_SPACE_INVALID       -1
33 #define JPX_SPACE_INVALID       -1
34 #define JP2_SPACE_bilevel1      0
35 #define JP2_SPACE_YCbCr1        1
36 #define JP2_SPACE_YCbCr2        3
37 #define JP2_SPACE_YCbCr3        4
38 #define JP2_SPACE_PhotoYCC      9
39 #define JP2_SPACE_CMY           11
40 #define JP2_SPACE_CMYK          12
41 #define JP2_SPACE_YCCK          13
42 #define JP2_SPACE_CIELab        14
43 #define JP2_SPACE_bilevel2      15
44 #define JP2_SPACE_sRGB          16
45 #define JP2_SPACE_sLUM          17
46 #define JP2_SPACE_sYCC          18
47 #define JP2_SPACE_CIEJab        19
48 #define JP2_SPACE_esRGB         20
49 #define JP2_SPACE_ROMMRGB       21
50 #define JP2_SPACE_YPbPr60       22
51 #define JP2_SPACE_YPbPr50       23
52 #define JP2_SPACE_esYCC         24
53 #define JP2_SPACE_iccLUM        100
54 #define JP2_SPACE_iccRGB        101
55 #define Icc_INTENT_PERCEPTUAL                           0
56 #define Icc_INTENT_RELATIVE_COLORIMETRIC        1
57 #define Icc_INTENT_SATURATION                           2
58 #define Icc_INTENT_ABSOLUTE_COLORIMETRIC        3
59 #define Icc_FORMAT_DEFAULT                                      0
60 #define Icc_FORMAT_SWAP                                         (1<<10)
61 #define Icc_FLAGS_DEFAULT                                       0x0000
62 #define Icc_FLAGS_BLACKPOINTCOMPENSATION        0x2000
63 #define Icc_FLAGS_NOWHITEONWHITEFIXUP           0x0004
64 #define Icc_FLAGS_HIGHRESPRECALC                        0x0400
65 #define Icc_FLAGS_LOWRESPRECALC                         0x0800
66 #define Icc_FLAGS_GAMUTCHECK                            0x1000
67 #define Icc_FLAGS_SOFTPROOFING                          0x4000
68 #define Icc_PARAMTYPE_NONE                                      0
69 #define Icc_PARAMTYPE_BUFFER                            1
70 #define Icc_PARAMTYPE_PARAM                                     2
71 enum FXCODEC_RESUNIT {
72     FXCODEC_RESUNIT_NONE = 0,
73     FXCODEC_RESUNIT_INCH,
74     FXCODEC_RESUNIT_CENTIMETER,
75     FXCODEC_RESUNIT_METER
76 };
77 #define EXIFTAG_USHORT_RESUNIT                          296
78 #define EXIFTAG_FLOAT_DPIX                                      282
79 #define EXIFTAG_FLOAT_DPIY                                      283
80 #define EXIFTAG_USHORT_ORIENTATION                      274
81 #define EXIFTAG_STRING_MANUFACTURER                     271
82 #define EXIFTAG_STRING_MODULE                           272
83 #define EXIFTAG_STRING_SOFTWARE                         305
84 #define EXIFTAG_STRING_IAMGEDESCRIPTION         270
85 #define EXIFTAG_STRING_DATETIME                         306
86 #define EXIFTAG_STRING_COPYRIGHT                        33432
87
88 #endif  // CORE_INCLUDE_FXCODEC_FX_CODEC_DEF_H_