Lines Matching refs:cio
146 opj_stream_private_t *cio,
206 opj_stream_private_t *cio,
217 opj_stream_private_t *cio,
227 opj_stream_private_t *cio,
237 opj_stream_private_t *cio,
266 opj_stream_private_t *cio,
386 opj_stream_private_t *cio,
403 opj_stream_private_t *cio,
475 opj_stream_private_t *cio, in opj_jp2_read_boxhdr() argument
482 assert(cio != 00); in opj_jp2_read_boxhdr()
487 *p_number_bytes_read = (OPJ_UINT32)opj_stream_read_data(cio, l_data_header, 8, in opj_jp2_read_boxhdr()
498 const OPJ_OFF_T bleft = opj_stream_get_number_byte_left(cio); in opj_jp2_read_boxhdr()
514 OPJ_UINT32 l_nb_bytes_read = (OPJ_UINT32)opj_stream_read_data(cio, in opj_jp2_read_boxhdr()
537 static void jp2_write_url(opj_cio_t *cio, char *Idx_file)
542 box.init_pos = cio_tell(cio);
543 cio_skip(cio, 4);
544 cio_write(cio, JP2_URL, 4); /* DBTL */
545 cio_write(cio, 0, 1); /* VERS */
546 cio_write(cio, 0, 3); /* FLAG */
550 cio_write(cio, Idx_file[i], 1);
554 box.length = cio_tell(cio) - box.init_pos;
555 cio_seek(cio, box.init_pos);
556 cio_write(cio, box.length, 4); /* L */
557 cio_seek(cio, box.init_pos + box.length);
1784 opj_stream_private_t *cio, in opj_jp2_write_ftyp() argument
1793 assert(cio != 00); in opj_jp2_write_ftyp()
1823 l_result = (opj_stream_write_data(cio, l_ftyp_data, l_ftyp_size, in opj_jp2_write_ftyp()
1836 opj_stream_private_t *cio, in opj_jp2_write_jp2c() argument
1844 assert(cio != 00); in opj_jp2_write_jp2c()
1846 assert(opj_stream_has_seek(cio)); in opj_jp2_write_jp2c()
1848 j2k_codestream_exit = opj_stream_tell(cio); in opj_jp2_write_jp2c()
1855 if (! opj_stream_seek(cio, jp2->j2k_codestream_offset, p_manager)) { in opj_jp2_write_jp2c()
1860 if (opj_stream_write_data(cio, l_data_header, 8, p_manager) != 8) { in opj_jp2_write_jp2c()
1865 if (! opj_stream_seek(cio, j2k_codestream_exit, p_manager)) { in opj_jp2_write_jp2c()
1874 opj_stream_private_t *cio, in opj_jp2_write_jp() argument
1881 assert(cio != 00); in opj_jp2_write_jp()
1894 if (opj_stream_write_data(cio, l_signature_data, 12, p_manager) != 12) { in opj_jp2_write_jp()
2121 opj_stream_private_t *cio, in opj_jp2_end_decompress() argument
2127 assert(cio != 00); in opj_jp2_end_decompress()
2136 if (! opj_jp2_exec(jp2, jp2->m_procedure_list, cio, p_manager)) { in opj_jp2_end_decompress()
2140 return opj_j2k_end_decompress(jp2->j2k, cio, p_manager); in opj_jp2_end_decompress()
2144 opj_stream_private_t *cio, in opj_jp2_end_compress() argument
2150 assert(cio != 00); in opj_jp2_end_compress()
2158 if (! opj_j2k_end_compress(jp2->j2k, cio, p_manager)) { in opj_jp2_end_compress()
2163 return opj_jp2_exec(jp2, jp2->m_procedure_list, cio, p_manager); in opj_jp2_end_compress()
2218 opj_stream_private_t *cio, in opj_jp2_default_validation() argument
2227 assert(cio != 00); in opj_jp2_default_validation()
2269 l_is_valid &= opj_stream_has_seek(cio); in opj_jp2_default_validation()
3260 opj_stream_private_t *cio, in opj_jpip_write_iptr() argument
3268 assert(cio != 00); in opj_jpip_write_iptr()
3270 assert(opj_stream_has_seek(cio)); in opj_jpip_write_iptr()
3272 j2k_codestream_exit = opj_stream_tell(cio); in opj_jpip_write_iptr()
3284 if (! opj_stream_seek(cio, jp2->jpip_iptr_offset, p_manager)) { in opj_jpip_write_iptr()
3289 if (opj_stream_write_data(cio, l_data_header, 24, p_manager) != 24) { in opj_jpip_write_iptr()
3294 if (! opj_stream_seek(cio, j2k_codestream_exit, p_manager)) { in opj_jpip_write_iptr()
3303 opj_stream_private_t *cio, in opj_jpip_write_fidx() argument
3313 assert(cio != 00); in opj_jpip_write_fidx()
3315 assert(opj_stream_has_seek(cio)); in opj_jpip_write_fidx()
3323 if (opj_stream_write_data(cio, l_data_header, 24, p_manager) != 24) { in opj_jpip_write_fidx()
3328 j2k_codestream_exit = opj_stream_tell(cio); in opj_jpip_write_fidx()
3329 if (! opj_stream_seek(cio, j2k_codestream_exit, p_manager)) { in opj_jpip_write_fidx()
3338 opj_stream_private_t *cio, in opj_jpip_write_cidx() argument
3348 assert(cio != 00); in opj_jpip_write_cidx()
3350 assert(opj_stream_has_seek(cio)); in opj_jpip_write_cidx()
3352 j2k_codestream_exit = opj_stream_tell(cio); in opj_jpip_write_cidx()
3364 if (! opj_stream_seek(cio, j2k_codestream_exit, p_manager)) { in opj_jpip_write_cidx()
3369 if (opj_stream_write_data(cio, l_data_header, 24, p_manager) != 24) { in opj_jpip_write_cidx()
3374 j2k_codestream_exit = opj_stream_tell(cio); in opj_jpip_write_cidx()
3375 if (! opj_stream_seek(cio, j2k_codestream_exit, p_manager)) { in opj_jpip_write_cidx()
3385 int length_idx, opj_stream_private_t *cio,
3391 lenp = opj_stream_tell(cio);
3392 opj_stream_skip(cio, 4, p_manager); /* L [at the end] */
3394 opj_stream_write_data(cio, l_data_header, 4, p_manager);
3397 opj_stream_write_data(cio, l_data_header, 8, p_manager);
3400 opj_stream_write_data(cio, l_data_header, 8, p_manager);
3403 opj_stream_write_data(cio, l_data_header, 1, p_manager);
3406 opj_stream_write_data(cio, l_data_header, 8, p_manager);
3409 opj_stream_write_data(cio, l_data_header, 8, p_manager);
3411 len = opj_stream_tell(cio) - lenp;
3412 opj_stream_skip(cio, lenp, p_manager);
3414 opj_stream_write_data(cio, l_data_header, 4, p_manager);
3415 opj_stream_seek(cio, lenp + len, p_manager);
3422 int length_idx, opj_stream_private_t *cio,
3428 lenp = opj_stream_tell(cio);
3429 opj_stream_skip(cio, 4, p_manager);
3431 opj_stream_write_data(cio, l_data_header, 4, p_manager);
3433 write_prxy(offset_jp2c, length_jp2c, offset_idx, length_idx, cio, p_manager);
3435 len = opj_stream_tell(cio) - lenp;
3436 opj_stream_skip(cio, lenp, p_manager);
3438 opj_stream_write_data(cio, l_data_header, 4, p_manager);
3439 opj_stream_seek(cio, lenp + len, p_manager);