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

Side by Side Diff: core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/openjpeg.h

Issue 900433002: Merge the following changes to XFA branch: (Closed) Base URL: https://pdfium.googlesource.com/pdfium@xfa
Patch Set: Created 5 years, 10 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/include/fxge/fx_freetype.h ('k') | core/src/fxge/ge/fx_ge_text.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 /* 1 /*
2 * The copyright in this software is being made available under the 2-clauses 2 * The copyright in this software is being made available under the 2-clauses
3 * BSD License, included below. This software may be subject to other third 3 * BSD License, included below. This software may be subject to other third
4 * party and contributor rights, including patent rights, and no such rights 4 * party and contributor rights, including patent rights, and no such rights
5 * are granted under this license. 5 * are granted under this license.
6 * 6 *
7 * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium 7 * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
8 * Copyright (c) 2002-2014, Professor Benoit Macq 8 * Copyright (c) 2002-2014, Professor Benoit Macq
9 * Copyright (c) 2001-2003, David Janssens 9 * Copyright (c) 2001-2003, David Janssens
10 * Copyright (c) 2002-2003, Yannick Verschueren 10 * Copyright (c) 2002-2003, Yannick Verschueren
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 /* deprecated attribute */ 69 /* deprecated attribute */
70 #ifdef __GNUC__ 70 #ifdef __GNUC__
71 #define OPJ_DEPRECATED(func) func __attribute__ ((deprecated)) 71 #define OPJ_DEPRECATED(func) func __attribute__ ((deprecated))
72 #elif defined(_MSC_VER) 72 #elif defined(_MSC_VER)
73 #define OPJ_DEPRECATED(func) __declspec(deprecated) func 73 #define OPJ_DEPRECATED(func) __declspec(deprecated) func
74 #else 74 #else
75 #pragma message("WARNING: You need to implement DEPRECATED for this comp iler") 75 #pragma message("WARNING: You need to implement DEPRECATED for this comp iler")
76 #define OPJ_DEPRECATED(func) func 76 #define OPJ_DEPRECATED(func) func
77 #endif 77 #endif
78 78
79 #if defined(OPJ_STATIC) || !defined(_WIN32) 79 // PDFium doesn't need to export any of these methods.
80 /* http://gcc.gnu.org/wiki/Visibility */
81 #if __GNUC__ >= 4
82 #define OPJ_API __attribute__ ((visibility ("default")))
83 #define OPJ_LOCAL __attribute__ ((visibility ("hidden")))
84 #else
85 #define OPJ_API 80 #define OPJ_API
86 #define OPJ_LOCAL 81 #define OPJ_LOCAL
87 #endif
88 #define OPJ_CALLCONV 82 #define OPJ_CALLCONV
89 #else
90 #define OPJ_CALLCONV __stdcall
91 /*
92 The following ifdef block is the standard way of creating macros which make expo rting
93 from a DLL simpler. All files within this DLL are compiled with the OPJ_EXPORTS
94 symbol defined on the command line. this symbol should not be defined on any pro ject
95 that uses this DLL. This way any other project whose source files include this f ile see
96 OPJ_API functions as being imported from a DLL, wheras this DLL sees symbols
97 defined with this macro as being exported.
98 */
99 #if defined(OPJ_EXPORTS) || defined(DLL_EXPORT)
100 #define OPJ_API __declspec(dllexport)
101 #else
102 #define OPJ_API __declspec(dllimport)
103 #endif /* OPJ_EXPORTS */
104 #endif /* !OPJ_STATIC || !_WIN32 */
105 83
106 typedef int OPJ_BOOL; 84 typedef int OPJ_BOOL;
107 #define OPJ_TRUE 1 85 #define OPJ_TRUE 1
108 #define OPJ_FALSE 0 86 #define OPJ_FALSE 0
109 87
110 typedef char OPJ_CHAR; 88 typedef char OPJ_CHAR;
111 typedef float OPJ_FLOAT32; 89 typedef float OPJ_FLOAT32;
112 typedef double OPJ_FLOAT64; 90 typedef double OPJ_FLOAT64;
113 typedef unsigned char OPJ_BYTE; 91 typedef unsigned char OPJ_BYTE;
114 92
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 OPJ_INT32 * p_dc_shift, 1528 OPJ_INT32 * p_dc_shift,
1551 OPJ_UINT32 pNbComp); 1529 OPJ_UINT32 pNbComp);
1552 1530
1553 1531
1554 1532
1555 #ifdef __cplusplus 1533 #ifdef __cplusplus
1556 } 1534 }
1557 #endif 1535 #endif
1558 1536
1559 #endif /* OPENJPEG_H */ 1537 #endif /* OPENJPEG_H */
OLDNEW
« no previous file with comments | « core/include/fxge/fx_freetype.h ('k') | core/src/fxge/ge/fx_ge_text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698