| OLD | NEW |
| 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) 2002-2003, Yannick Verschueren | 9 * Copyright (c) 2002-2003, Yannick Verschueren |
| 10 * Copyright (c) 2005, Herve Drolon, FreeImage Team | 10 * Copyright (c) 2005, Herve Drolon, FreeImage Team |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 JP2_STATE; | 83 JP2_STATE; |
| 84 | 84 |
| 85 typedef enum | 85 typedef enum |
| 86 { | 86 { |
| 87 JP2_IMG_STATE_NONE = 0x0, | 87 JP2_IMG_STATE_NONE = 0x0, |
| 88 JP2_IMG_STATE_UNKNOWN = 0x7fffffff | 88 JP2_IMG_STATE_UNKNOWN = 0x7fffffff |
| 89 } | 89 } |
| 90 JP2_IMG_STATE; | 90 JP2_IMG_STATE; |
| 91 | 91 |
| 92 /** | 92 /** |
| 93 Channel description: channel index, type, assocation | 93 Channel description: channel index, type, association |
| 94 */ | 94 */ |
| 95 typedef struct opj_jp2_cdef_info | 95 typedef struct opj_jp2_cdef_info |
| 96 { | 96 { |
| 97 OPJ_UINT16 cn, typ, asoc; | 97 OPJ_UINT16 cn, typ, asoc; |
| 98 } opj_jp2_cdef_info_t; | 98 } opj_jp2_cdef_info_t; |
| 99 | 99 |
| 100 /** | 100 /** |
| 101 Channel descriptions and number of descriptions | 101 Channel descriptions and number of descriptions |
| 102 */ | 102 */ |
| 103 typedef struct opj_jp2_cdef | 103 typedef struct opj_jp2_cdef |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 /* size of data */ | 229 /* size of data */ |
| 230 OPJ_UINT32 m_size; | 230 OPJ_UINT32 m_size; |
| 231 } | 231 } |
| 232 opj_jp2_img_header_writer_handler_t; | 232 opj_jp2_img_header_writer_handler_t; |
| 233 | 233 |
| 234 /** @name Exported functions */ | 234 /** @name Exported functions */ |
| 235 /*@{*/ | 235 /*@{*/ |
| 236 /* ----------------------------------------------------------------------- */ | 236 /* ----------------------------------------------------------------------- */ |
| 237 | 237 |
| 238 /** | 238 /** |
| 239 * Writes the Jpeg2000 file Header box - JP2 Header box (warning, this is a supe
r box). | |
| 240 * | |
| 241 * @param jp2 the jpeg2000 file codec. | |
| 242 * @param stream the stream to write data to. | |
| 243 * @param p_manager user event manager. | |
| 244 * | |
| 245 * @return true if writing was successful. | |
| 246 */ | |
| 247 OPJ_BOOL opj_jp2_write_jp2h(opj_jp2_t *jp2, | |
| 248 opj_stream_private_t *stream, | |
| 249 opj_event_mgr_t * p_manager ); | |
| 250 | |
| 251 /** | |
| 252 Setup the decoder decoding parameters using user parameters. | 239 Setup the decoder decoding parameters using user parameters. |
| 253 Decoding parameters are returned in jp2->j2k->cp. | 240 Decoding parameters are returned in jp2->j2k->cp. |
| 254 @param jp2 JP2 decompressor handle | 241 @param jp2 JP2 decompressor handle |
| 255 @param parameters decompression parameters | 242 @param parameters decompression parameters |
| 256 */ | 243 */ |
| 257 void opj_jp2_setup_decoder(opj_jp2_t *jp2, opj_dparameters_t *parameters); | 244 void opj_jp2_setup_decoder(opj_jp2_t *jp2, opj_dparameters_t *parameters); |
| 258 | 245 |
| 259 /** | 246 /** |
| 260 * Decode an image from a JPEG-2000 file stream | 247 * Decode an image from a JPEG-2000 file stream |
| 261 * @param jp2 JP2 decompressor handle | 248 * @param jp2 JP2 decompressor handle |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 */ | 474 */ |
| 488 opj_codestream_index_t* jp2_get_cstr_index(opj_jp2_t* p_jp2); | 475 opj_codestream_index_t* jp2_get_cstr_index(opj_jp2_t* p_jp2); |
| 489 | 476 |
| 490 | 477 |
| 491 /*@}*/ | 478 /*@}*/ |
| 492 | 479 |
| 493 /*@}*/ | 480 /*@}*/ |
| 494 | 481 |
| 495 #endif /* __JP2_H */ | 482 #endif /* __JP2_H */ |
| 496 | 483 |
| OLD | NEW |