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

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

Issue 1416783002: Merge to M46: upgrade openjpeg to commit# cf352af (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@2490
Patch Set: Fix pdfium:168 since we are already half way there 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
« no previous file with comments | « third_party/libopenjpeg20/t2.c ('k') | third_party/libopenjpeg20/tcd.c » ('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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 OPJ_BOOL opj_tcd_init( opj_tcd_t *p_tcd, 255 OPJ_BOOL opj_tcd_init( opj_tcd_t *p_tcd,
256 opj_image_t * p_image, 256 opj_image_t * p_image,
257 opj_cp_t * p_cp ); 257 opj_cp_t * p_cp );
258 258
259 /** 259 /**
260 * Allocates memory for decoding a specific tile. 260 * Allocates memory for decoding a specific tile.
261 * 261 *
262 * @param p_tcd the tile decoder. 262 * @param p_tcd the tile decoder.
263 * @param p_tile_no the index of the tile received in sequence. This not necessarily lead to the 263 * @param p_tile_no the index of the tile received in sequence. This not necessarily lead to the
264 * tile at index p_tile_no. 264 * tile at index p_tile_no.
265 * @param p_manager the event manager.
265 * 266 *
266 * @return true if the remaining data is sufficient. 267 * @return true if the remaining data is sufficient.
267 */ 268 */
268 OPJ_BOOL opj_tcd_init_decode_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no); 269 OPJ_BOOL opj_tcd_init_decode_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, opj_ev ent_mgr_t* p_manager);
269 270
270 void opj_tcd_makelayer_fixed(opj_tcd_t *tcd, OPJ_UINT32 layno, OPJ_UINT32 final) ; 271 void opj_tcd_makelayer_fixed(opj_tcd_t *tcd, OPJ_UINT32 layno, OPJ_UINT32 final) ;
271 272
272 void opj_tcd_rateallocate_fixed(opj_tcd_t *tcd); 273 void opj_tcd_rateallocate_fixed(opj_tcd_t *tcd);
273 274
274 void opj_tcd_makelayer( opj_tcd_t *tcd, 275 void opj_tcd_makelayer( opj_tcd_t *tcd,
275 OPJ_UINT32 layno, 276 OPJ_UINT32 layno,
276 OPJ_FLOAT64 thresh, 277 OPJ_FLOAT64 thresh,
277 OPJ_UINT32 final); 278 OPJ_UINT32 final);
278 279
279 OPJ_BOOL opj_tcd_rateallocate( opj_tcd_t *tcd, 280 OPJ_BOOL opj_tcd_rateallocate( opj_tcd_t *tcd,
280 OPJ_BYTE *dest, 281 OPJ_BYTE *dest,
281 OPJ_UINT32 * p_d ata_written, 282 OPJ_UINT32 * p_d ata_written,
282 OPJ_UINT32 len, 283 OPJ_UINT32 len,
283 opj_codestream_i nfo_t *cstr_info); 284 opj_codestream_i nfo_t *cstr_info);
284 285
285 /** 286 /**
286 * Gets the maximum tile size that will be taken by the tile once decoded. 287 * Gets the maximum tile size that will be taken by the tile once decoded.
287 */ 288 */
288 OPJ_UINT32 opj_tcd_get_decoded_tile_size (opj_tcd_t *p_tcd ); 289 OPJ_UINT32 opj_tcd_get_decoded_tile_size (opj_tcd_t *p_tcd );
289 290
290 /** 291 /**
291 * Encodes a tile from the raw image into the given buffer. 292 * Encodes a tile from the raw image into the given buffer.
292 * @param p_tcd Tile Coder handle 293 * @param p_tcd Tile Coder handle
293 * @param p_tile_no Index of the tile to encode. 294 * @param p_tile_no Index of the tile to encode.
294 * @param p_dest Destination buffer 295 * @param p_dest Destination buffer
295 * @param p_data_written pointer to an int that is incremented by the num ber of bytes really written on p_dest 296 * @param p_data_written pointer to an int that is incremented by the num ber of bytes really written on p_dest
296 * @param p_len Maximum length of the destination buffer 297 * @param p_len Maximum length of the destination buffer
297 * @param p_cstr_info Codestream information structure 298 * @param p_cstr_info Codestream information structure
298 * @return true if the coding is successfull. 299 * @return true if the coding is successful.
299 */ 300 */
300 OPJ_BOOL opj_tcd_encode_tile( opj_tcd_t *p_tcd, 301 OPJ_BOOL opj_tcd_encode_tile( opj_tcd_t *p_tcd,
301 OPJ_UINT32 p_tile_no , 302 OPJ_UINT32 p_tile_no ,
302 OPJ_BYTE *p_dest, 303 OPJ_BYTE *p_dest,
303 OPJ_UINT32 * p_data_ written, 304 OPJ_UINT32 * p_data_ written,
304 OPJ_UINT32 p_len, 305 OPJ_UINT32 p_len,
305 struct opj_codestrea m_info *p_cstr_info); 306 struct opj_codestrea m_info *p_cstr_info);
306 307
307 308
308 /** 309 /**
309 Decode a tile from a buffer into a raw image 310 Decode a tile from a buffer into a raw image
310 @param tcd TCD handle 311 @param tcd TCD handle
311 @param src Source buffer 312 @param src Source buffer
312 @param len Length of source buffer 313 @param len Length of source buffer
313 @param tileno Number that identifies one of the tiles to be decoded 314 @param tileno Number that identifies one of the tiles to be decoded
314 @param cstr_info FIXME DOC 315 @param cstr_info FIXME DOC
316 @param manager the event manager.
315 */ 317 */
316 OPJ_BOOL opj_tcd_decode_tile( opj_tcd_t *tcd, 318 OPJ_BOOL opj_tcd_decode_tile( opj_tcd_t *tcd,
317 OPJ_BYTE *src, 319 OPJ_BYTE *src,
318 OPJ_UINT32 len, 320 OPJ_UINT32 len,
319 OPJ_UINT32 tileno, 321 OPJ_UINT32 tileno,
320 » » » » » » » opj_codestream_index _t *cstr_info); 322 » » » » » » » opj_codestream_index _t *cstr_info,
323 » » » » » » » opj_event_mgr_t *man ager);
321 324
322 325
323 /** 326 /**
324 * Copies tile data from the system onto the given memory block. 327 * Copies tile data from the system onto the given memory block.
325 */ 328 */
326 OPJ_BOOL opj_tcd_update_tile_data ( opj_tcd_t *p_tcd, 329 OPJ_BOOL opj_tcd_update_tile_data ( opj_tcd_t *p_tcd,
327 OPJ_BYTE * p _dest, 330 OPJ_BYTE * p _dest,
328 OPJ_UINT32 p _dest_length ); 331 OPJ_UINT32 p _dest_length );
329 332
330 /** 333 /**
331 * 334 *
332 */ 335 */
333 OPJ_UINT32 opj_tcd_get_encoded_tile_size ( opj_tcd_t *p_tcd ); 336 OPJ_UINT32 opj_tcd_get_encoded_tile_size ( opj_tcd_t *p_tcd );
334 337
335 /** 338 /**
336 * Initialize the tile coder and may reuse some meory. 339 * Initialize the tile coder and may reuse some meory.
337 * 340 *
338 * @param p_tcd TCD handle. 341 * @param p_tcd TCD handle.
339 * @param p_tile_no current tile index to encode. 342 * @param p_tile_no current tile index to encode.
343 * @param p_manager the event manager.
340 * 344 *
341 * @return true if the encoding values could be set (false otherwise). 345 * @return true if the encoding values could be set (false otherwise).
342 */ 346 */
343 OPJ_BOOL opj_tcd_init_encode_tile ( opj_tcd_t *p_tcd, 347 OPJ_BOOL opj_tcd_init_encode_tile ( opj_tcd_t *p_tcd,
344 » » » » » » » » OPJ_UINT32 p _tile_no ); 348 » » » » » » » » OPJ_UINT32 p _tile_no, opj_event_mgr_t* p_manager );
345 349
346 /** 350 /**
347 * Copies tile data from the given memory block onto the system. 351 * Copies tile data from the given memory block onto the system.
348 */ 352 */
349 OPJ_BOOL opj_tcd_copy_tile_data (opj_tcd_t *p_tcd, 353 OPJ_BOOL opj_tcd_copy_tile_data (opj_tcd_t *p_tcd,
350 OPJ_BYTE * p_src, 354 OPJ_BYTE * p_src,
351 OPJ_UINT32 p_src_length ); 355 OPJ_UINT32 p_src_length );
352 356
353 /** 357 /**
354 * Allocates tile component data 358 * Allocates tile component data
355 * 359 *
356 * 360 *
357 */ 361 */
358 OPJ_BOOL opj_alloc_tile_component_data(opj_tcd_tilecomp_t *l_tilec); 362 OPJ_BOOL opj_alloc_tile_component_data(opj_tcd_tilecomp_t *l_tilec);
359 363
360 /* ----------------------------------------------------------------------- */ 364 /* ----------------------------------------------------------------------- */
361 /*@}*/ 365 /*@}*/
362 366
363 /*@}*/ 367 /*@}*/
364 368
365 #endif /* __TCD_H */ 369 #endif /* __TCD_H */
OLDNEW
« no previous file with comments | « third_party/libopenjpeg20/t2.c ('k') | third_party/libopenjpeg20/tcd.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698