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

Side by Side Diff: third_party/libopenjpeg20/openjpeg.h

Issue 1338973005: upgrade openjpeg to commit# cf352af (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 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
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 # define OPJ_LOCAL 90 # define OPJ_LOCAL
91 # endif 91 # endif
92 # define OPJ_CALLCONV 92 # define OPJ_CALLCONV
93 #else 93 #else
94 # define OPJ_CALLCONV __stdcall 94 # define OPJ_CALLCONV __stdcall
95 /* 95 /*
96 The following ifdef block is the standard way of creating macros which make expo rting 96 The following ifdef block is the standard way of creating macros which make expo rting
97 from a DLL simpler. All files within this DLL are compiled with the OPJ_EXPORTS 97 from a DLL simpler. All files within this DLL are compiled with the OPJ_EXPORTS
98 symbol defined on the command line. this symbol should not be defined on any pro ject 98 symbol defined on the command line. this symbol should not be defined on any pro ject
99 that uses this DLL. This way any other project whose source files include this f ile see 99 that uses this DLL. This way any other project whose source files include this f ile see
100 OPJ_API functions as being imported from a DLL, wheras this DLL sees symbols 100 OPJ_API functions as being imported from a DLL, whereas this DLL sees symbols
101 defined with this macro as being exported. 101 defined with this macro as being exported.
102 */ 102 */
103 # if defined(OPJ_EXPORTS) || defined(DLL_EXPORT) 103 # if defined(OPJ_EXPORTS) || defined(DLL_EXPORT)
104 # define OPJ_API __declspec(dllexport) 104 # define OPJ_API __declspec(dllexport)
105 # else 105 # else
106 # define OPJ_API __declspec(dllimport) 106 # define OPJ_API __declspec(dllimport)
107 # endif /* OPJ_EXPORTS */ 107 # endif /* OPJ_EXPORTS */
108 #endif /* !OPJ_STATIC || !_WIN32 */ 108 #endif /* !OPJ_STATIC || !_WIN32 */
109 109
110 typedef int OPJ_BOOL; 110 typedef int OPJ_BOOL;
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 OPJ_UINT32 numcomps; 671 OPJ_UINT32 numcomps;
672 /** color space: sRGB, Greyscale or YUV */ 672 /** color space: sRGB, Greyscale or YUV */
673 OPJ_COLOR_SPACE color_space; 673 OPJ_COLOR_SPACE color_space;
674 /** image components */ 674 /** image components */
675 opj_image_comp_t *comps; 675 opj_image_comp_t *comps;
676 /** 'restricted' ICC profile */ 676 /** 'restricted' ICC profile */
677 OPJ_BYTE *icc_profile_buf; 677 OPJ_BYTE *icc_profile_buf;
678 /** size of ICC profile */ 678 /** size of ICC profile */
679 OPJ_UINT32 icc_profile_len; 679 OPJ_UINT32 icc_profile_len;
680 680
681 /** Whether to apply PCLR or not */ 681 » /** Whether to apply PCLR or not */
682 OPJ_BOOL pdfium_use_colorspace; 682 » OPJ_BOOL pdfium_use_colorspace;
683 } opj_image_t; 683 } opj_image_t;
684 684
685 685
686 /** 686 /**
687 * Component parameters structure used by the opj_image_create function 687 * Component parameters structure used by the opj_image_create function
688 * */ 688 * */
689 typedef struct opj_image_comptparm { 689 typedef struct opj_image_comptparm {
690 /** XRsiz: horizontal separation of a sample of ith component with respe ct to the reference grid */ 690 /** XRsiz: horizontal separation of a sample of ith component with respe ct to the reference grid */
691 OPJ_UINT32 dx; 691 OPJ_UINT32 dx;
692 /** YRsiz: vertical separation of a sample of ith component with respect to the reference grid */ 692 /** YRsiz: vertical separation of a sample of ith component with respect to the reference grid */
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 int main_head_start; 846 int main_head_start;
847 /** main header position */ 847 /** main header position */
848 int main_head_end; 848 int main_head_end;
849 /** codestream's size */ 849 /** codestream's size */
850 int codestream_size; 850 int codestream_size;
851 /** information regarding tiles inside image */ 851 /** information regarding tiles inside image */
852 opj_tile_info_t *tile; 852 opj_tile_info_t *tile;
853 } opj_codestream_info_t; 853 } opj_codestream_info_t;
854 854
855 /* <----------------------------------------------------------- */ 855 /* <----------------------------------------------------------- */
856 /* new output managment of the codestream information and index */ 856 /* new output management of the codestream information and index */
857 857
858 /** 858 /**
859 * Tile-component coding parameters information 859 * Tile-component coding parameters information
860 */ 860 */
861 typedef struct opj_tccp_info 861 typedef struct opj_tccp_info
862 { 862 {
863 /** component index */ 863 /** component index */
864 OPJ_UINT32 compno; 864 OPJ_UINT32 compno;
865 /** coding style */ 865 /** coding style */
866 OPJ_UINT32 csty; 866 OPJ_UINT32 csty;
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 * 1343 *
1344 * @return true if the data could be written. 1344 * @return true if the data could be written.
1345 */ 1345 */
1346 OPJ_API OPJ_BOOL OPJ_CALLCONV opj_write_tile ( opj_codec_t *p_codec, 1346 OPJ_API OPJ_BOOL OPJ_CALLCONV opj_write_tile ( opj_codec_t *p_codec,
1347 OPJ_UINT32 p_tile_index, 1347 OPJ_UINT32 p_tile_index,
1348 OPJ_BYTE * p_data, 1348 OPJ_BYTE * p_data,
1349 OPJ_UINT32 p_data_size, 1349 OPJ_UINT32 p_data_size,
1350 opj_stream_t *p_stream ); 1350 opj_stream_t *p_stream );
1351 1351
1352 /** 1352 /**
1353 * Reads a tile header. This function is compulsory and allows one to know the s ize of the tile thta will be decoded. 1353 * Reads a tile header. This function is compulsory and allows one to know the s ize of the tile that will be decoded.
1354 * The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile. 1354 * The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile.
1355 * 1355 *
1356 * @param p_codec the jpeg2000 codec. 1356 * @param p_codec the jpeg2000 codec.
1357 * @param p_tile_index pointer to a value that will hold the index of t he tile being decoded, in case of success. 1357 * @param p_tile_index pointer to a value that will hold the index of t he tile being decoded, in case of success.
1358 * @param p_data_size pointer to a value that will hold the ma ximum size of the decoded data, in case of success. In case 1358 * @param p_data_size pointer to a value that will hold the ma ximum size of the decoded data, in case of success. In case
1359 * of truncated codestreams , the actual number of bytes decoded may be lower. The computation of the size i s the same 1359 * of truncated codestreams , the actual number of bytes decoded may be lower. The computation of the size i s the same
1360 * as depicted in opj_write _tile. 1360 * as depicted in opj_write _tile.
1361 * @param p_tile_x0 pointer to a value that will hold the x0 pos of the tile (in the image). 1361 * @param p_tile_x0 pointer to a value that will hold the x0 pos of the tile (in the image).
1362 * @param p_tile_y0 pointer to a value that will hold the y0 pos of the tile (in the image). 1362 * @param p_tile_y0 pointer to a value that will hold the y0 pos of the tile (in the image).
1363 * @param p_tile_x1 pointer to a value that will hold the x1 pos of the tile (in the image). 1363 * @param p_tile_x1 pointer to a value that will hold the x1 pos of the tile (in the image).
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 OPJ_INT32 * p_dc_shift, 1557 OPJ_INT32 * p_dc_shift,
1558 OPJ_UINT32 pNbComp); 1558 OPJ_UINT32 pNbComp);
1559 1559
1560 1560
1561 1561
1562 #ifdef __cplusplus 1562 #ifdef __cplusplus
1563 } 1563 }
1564 #endif 1564 #endif
1565 1565
1566 #endif /* OPENJPEG_H */ 1566 #endif /* OPENJPEG_H */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698