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

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

Issue 758593002: Update to openjpeg r2944 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: tab Created 6 years 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 /** 116 /**
117 FIXME DOC 117 FIXME DOC
118 */ 118 */
119 typedef struct opj_tcd_precinct { 119 typedef struct opj_tcd_precinct {
120 OPJ_INT32 x0, y0, x1, y1; /* dimension of the precinct : l eft upper corner (x0, y0) right low corner (x1,y1) */ 120 OPJ_INT32 x0, y0, x1, y1; /* dimension of the precinct : l eft upper corner (x0, y0) right low corner (x1,y1) */
121 OPJ_UINT32 cw, ch; /* number of precinct in width and height */ 121 OPJ_UINT32 cw, ch; /* number of precinct in width and height */
122 union{ /* code-blocks i nformation */ 122 union{ /* code-blocks i nformation */
123 opj_tcd_cblk_enc_t* enc; 123 opj_tcd_cblk_enc_t* enc;
124 opj_tcd_cblk_dec_t* dec; 124 opj_tcd_cblk_dec_t* dec;
125 void* blocks;
125 } cblks; 126 } cblks;
126 OPJ_UINT32 block_size; /* size taken by cblks (in bytes ) */ 127 OPJ_UINT32 block_size; /* size taken by cblks (in bytes ) */
127 opj_tgt_tree_t *incltree; /* inclusion tree */ 128 opj_tgt_tree_t *incltree; /* inclusion tree */
128 opj_tgt_tree_t *imsbtree; /* IMSB tree */ 129 opj_tgt_tree_t *imsbtree; /* IMSB tree */
129 } opj_tcd_precinct_t; 130 } opj_tcd_precinct_t;
130 131
131 /** 132 /**
132 FIXME DOC 133 FIXME DOC
133 */ 134 */
134 typedef struct opj_tcd_band { 135 typedef struct opj_tcd_band {
(...skipping 13 matching lines...) Expand all
148 OPJ_UINT32 pw, ph; 149 OPJ_UINT32 pw, ph;
149 OPJ_UINT32 numbands; /* number sub-band for the resol ution level */ 150 OPJ_UINT32 numbands; /* number sub-band for the resol ution level */
150 opj_tcd_band_t bands[3]; /* subband information */ 151 opj_tcd_band_t bands[3]; /* subband information */
151 } opj_tcd_resolution_t; 152 } opj_tcd_resolution_t;
152 153
153 /** 154 /**
154 FIXME DOC 155 FIXME DOC
155 */ 156 */
156 typedef struct opj_tcd_tilecomp 157 typedef struct opj_tcd_tilecomp
157 { 158 {
158 » OPJ_INT32 x0, y0, x1, y1;» » » » /* dimension of component : left upper corner (x0, y0) right low corner (x1,y1) */ 159 » OPJ_INT32 x0, y0, x1, y1; /* dimension of component : left upp er corner (x0, y0) right low corner (x1,y1) */
159 » OPJ_UINT32 numresolutions;» » » » /* number of res olutions level */ 160 » OPJ_UINT32 numresolutions; /* number of resolutions level */
160 » OPJ_UINT32 minimum_num_resolutions;» » /* number of resolutions level to decode (at max)*/ 161 » OPJ_UINT32 minimum_num_resolutions; /* number of resolutions level to de code (at max)*/
161 » opj_tcd_resolution_t *resolutions;» /* resolutions information */ 162 » opj_tcd_resolution_t *resolutions; /* resolutions information */
162 » OPJ_UINT32 resolutions_size;» » » /* size of data for reso lutions (in bytes) */ 163 » OPJ_UINT32 resolutions_size; /* size of data for resolutions (in bytes) */
163 » OPJ_INT32 *data;» » » » » » /* data of the component */ 164 » OPJ_INT32 *data; /* data of the component */
164 » OPJ_UINT32 data_size;» » » » » /* size of the d ata of the component */ 165 » OPJ_BOOL ownsData; /* if true, then need to free after usage, otherwise do not free */
165 » OPJ_INT32 numpix;» » » » » » /* add f ixed_quality */ 166 » OPJ_UINT32 data_size_needed; /* we may either need to allocate th is amount of data, or re-use image data and ignore this value */
167 » OPJ_UINT32 data_size; /* size of the data of the component */
168 » OPJ_INT32 numpix; /* add fixed_quality */
166 } opj_tcd_tilecomp_t; 169 } opj_tcd_tilecomp_t;
167 170
168 171
169 /** 172 /**
170 FIXME DOC 173 FIXME DOC
171 */ 174 */
172 typedef struct opj_tcd_tile { 175 typedef struct opj_tcd_tile {
173 OPJ_INT32 x0, y0, x1, y1; /* dimension of the tile : left upper corner (x0, y0) right low corner (x1,y1) */ 176 OPJ_INT32 x0, y0, x1, y1; /* dimension of the tile : left upper corner (x0, y0) right low corner (x1,y1) */
174 OPJ_UINT32 numcomps; /* number of components in tile */ 177 OPJ_UINT32 numcomps; /* number of components in tile */
175 opj_tcd_tilecomp_t *comps; /* Components information */ 178 opj_tcd_tilecomp_t *comps; /* Components information */
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 OPJ_BOOL opj_tcd_init_encode_tile ( opj_tcd_t *p_tcd, 342 OPJ_BOOL opj_tcd_init_encode_tile ( opj_tcd_t *p_tcd,
340 OPJ_UINT32 p _tile_no ); 343 OPJ_UINT32 p _tile_no );
341 344
342 /** 345 /**
343 * Copies tile data from the given memory block onto the system. 346 * Copies tile data from the given memory block onto the system.
344 */ 347 */
345 OPJ_BOOL opj_tcd_copy_tile_data (opj_tcd_t *p_tcd, 348 OPJ_BOOL opj_tcd_copy_tile_data (opj_tcd_t *p_tcd,
346 OPJ_BYTE * p_src, 349 OPJ_BYTE * p_src,
347 OPJ_UINT32 p_src_length ); 350 OPJ_UINT32 p_src_length );
348 351
352 /**
353 * Allocates tile component data
354 *
355 *
356 */
357 OPJ_BOOL opj_alloc_tile_component_data(opj_tcd_tilecomp_t *l_tilec);
358
349 /* ----------------------------------------------------------------------- */ 359 /* ----------------------------------------------------------------------- */
350 /*@}*/ 360 /*@}*/
351 361
352 /*@}*/ 362 /*@}*/
353 363
354 #endif /* __TCD_H */ 364 #endif /* __TCD_H */
OLDNEW
« no previous file with comments | « core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t2.c ('k') | core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/tcd.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698