Lines Matching refs:cio
143 opj_stream_private_t *cio,
162 opj_stream_private_t *cio,
203 opj_stream_private_t *cio,
214 opj_stream_private_t *cio,
224 opj_stream_private_t *cio,
234 opj_stream_private_t *cio,
263 opj_stream_private_t *cio,
377 opj_stream_private_t *cio,
392 opj_stream_private_t *cio,
463 opj_stream_private_t *cio, in opj_jp2_read_boxhdr() argument
470 assert(cio != 00); in opj_jp2_read_boxhdr()
475 *p_number_bytes_read = (OPJ_UINT32)opj_stream_read_data(cio,l_data_header,8,p_manager); in opj_jp2_read_boxhdr()
486 const OPJ_OFF_T bleft = opj_stream_get_number_byte_left(cio); in opj_jp2_read_boxhdr()
497 OPJ_UINT32 l_nb_bytes_read = (OPJ_UINT32)opj_stream_read_data(cio,l_data_header,8,p_manager); in opj_jp2_read_boxhdr()
518 static void jp2_write_url(opj_cio_t *cio, char *Idx_file) {
522 box.init_pos = cio_tell(cio);
523 cio_skip(cio, 4);
524 cio_write(cio, JP2_URL, 4); /* DBTL */
525 cio_write(cio, 0, 1); /* VERS */
526 cio_write(cio, 0, 3); /* FLAG */
530 cio_write(cio, Idx_file[i], 1);
534 box.length = cio_tell(cio) - box.init_pos;
535 cio_seek(cio, box.init_pos);
536 cio_write(cio, box.length, 4); /* L */
537 cio_seek(cio, box.init_pos + box.length);
1638 opj_stream_private_t *cio, in opj_jp2_write_ftyp() argument
1647 assert(cio != 00); in opj_jp2_write_ftyp()
1676 l_result = (opj_stream_write_data(cio,l_ftyp_data,l_ftyp_size,p_manager) == l_ftyp_size); in opj_jp2_write_ftyp()
1688 opj_stream_private_t *cio, in opj_jp2_write_jp2c() argument
1696 assert(cio != 00); in opj_jp2_write_jp2c()
1698 assert(opj_stream_has_seek(cio)); in opj_jp2_write_jp2c()
1700 j2k_codestream_exit = opj_stream_tell(cio); in opj_jp2_write_jp2c()
1706 if (! opj_stream_seek(cio,jp2->j2k_codestream_offset,p_manager)) { in opj_jp2_write_jp2c()
1711 if (opj_stream_write_data(cio,l_data_header,8,p_manager) != 8) { in opj_jp2_write_jp2c()
1716 if (! opj_stream_seek(cio,j2k_codestream_exit,p_manager)) { in opj_jp2_write_jp2c()
1725 opj_stream_private_t *cio, in opj_jp2_write_jp() argument
1732 assert(cio != 00); in opj_jp2_write_jp()
1743 if (opj_stream_write_data(cio,l_signature_data,12,p_manager) != 12) { in opj_jp2_write_jp()
1945 opj_stream_private_t *cio, in opj_jp2_end_decompress() argument
1951 assert(cio != 00); in opj_jp2_end_decompress()
1960 if (! opj_jp2_exec (jp2,jp2->m_procedure_list,cio,p_manager)) { in opj_jp2_end_decompress()
1964 return opj_j2k_end_decompress(jp2->j2k, cio, p_manager); in opj_jp2_end_decompress()
1968 opj_stream_private_t *cio, in opj_jp2_end_compress() argument
1974 assert(cio != 00); in opj_jp2_end_compress()
1982 if (! opj_j2k_end_compress(jp2->j2k,cio,p_manager)) { in opj_jp2_end_compress()
1987 return opj_jp2_exec(jp2,jp2->m_procedure_list,cio,p_manager); in opj_jp2_end_compress()
2036 opj_stream_private_t *cio, in opj_jp2_default_validation() argument
2045 assert(cio != 00); in opj_jp2_default_validation()
2084 l_is_valid &= opj_stream_has_seek(cio); in opj_jp2_default_validation()
2987 opj_stream_private_t *cio, in opj_jpip_write_iptr() argument
2995 assert(cio != 00); in opj_jpip_write_iptr()
2997 assert(opj_stream_has_seek(cio)); in opj_jpip_write_iptr()
2999 j2k_codestream_exit = opj_stream_tell(cio); in opj_jpip_write_iptr()
3010 if (! opj_stream_seek(cio,jp2->jpip_iptr_offset,p_manager)) { in opj_jpip_write_iptr()
3015 if (opj_stream_write_data(cio,l_data_header,24,p_manager) != 24) { in opj_jpip_write_iptr()
3020 if (! opj_stream_seek(cio,j2k_codestream_exit,p_manager)) { in opj_jpip_write_iptr()
3029 opj_stream_private_t *cio, in opj_jpip_write_fidx() argument
3037 assert(cio != 00); in opj_jpip_write_fidx()
3039 assert(opj_stream_has_seek(cio)); in opj_jpip_write_fidx()
3046 if (opj_stream_write_data(cio,l_data_header,24,p_manager) != 24) { in opj_jpip_write_fidx()
3051 j2k_codestream_exit = opj_stream_tell(cio); in opj_jpip_write_fidx()
3052 if (! opj_stream_seek(cio,j2k_codestream_exit,p_manager)) { in opj_jpip_write_fidx()
3061 opj_stream_private_t *cio, in opj_jpip_write_cidx() argument
3069 assert(cio != 00); in opj_jpip_write_cidx()
3071 assert(opj_stream_has_seek(cio)); in opj_jpip_write_cidx()
3073 j2k_codestream_exit = opj_stream_tell(cio); in opj_jpip_write_cidx()
3084 if (! opj_stream_seek(cio,j2k_codestream_exit,p_manager)) { in opj_jpip_write_cidx()
3089 if (opj_stream_write_data(cio,l_data_header,24,p_manager) != 24) { in opj_jpip_write_cidx()
3094 j2k_codestream_exit = opj_stream_tell(cio); in opj_jpip_write_cidx()
3095 if (! opj_stream_seek(cio,j2k_codestream_exit,p_manager)) { in opj_jpip_write_cidx()
3104 …_prxy( int offset_jp2c, int length_jp2c, int offset_idx, int length_idx, opj_stream_private_t *cio,
3110 lenp = opj_stream_tell(cio);
3111 opj_stream_skip(cio, 4, p_manager); /* L [at the end] */
3113 opj_stream_write_data(cio,l_data_header,4,p_manager);
3116 opj_stream_write_data(cio,l_data_header,8,p_manager);
3119 opj_stream_write_data(cio,l_data_header,8,p_manager);
3122 opj_stream_write_data(cio,l_data_header,1,p_manager);
3125 opj_stream_write_data(cio,l_data_header,8,p_manager);
3128 opj_stream_write_data(cio,l_data_header,8,p_manager);
3130 len = opj_stream_tell(cio)-lenp;
3131 opj_stream_skip(cio, lenp, p_manager);
3133 opj_stream_write_data(cio,l_data_header,4,p_manager);
3134 opj_stream_seek(cio, lenp+len,p_manager);
3140 …_fidx( int offset_jp2c, int length_jp2c, int offset_idx, int length_idx, opj_stream_private_t *cio,
3146 lenp = opj_stream_tell(cio);
3147 opj_stream_skip(cio, 4, p_manager);
3149 opj_stream_write_data(cio,l_data_header,4,p_manager);
3151 write_prxy( offset_jp2c, length_jp2c, offset_idx, length_idx, cio,p_manager);
3153 len = opj_stream_tell(cio)-lenp;
3154 opj_stream_skip(cio, lenp, p_manager);
3156 opj_stream_write_data(cio,l_data_header,4,p_manager);
3157 opj_stream_seek(cio, lenp+len,p_manager);