• Home
  • Raw
  • Download

Lines Matching refs:l_codec

48     opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec;  in opj_set_info_handler()  local
49 if (! l_codec) { in opj_set_info_handler()
53 l_codec->m_event_mgr.info_handler = p_callback; in opj_set_info_handler()
54 l_codec->m_event_mgr.m_info_data = p_user_data; in opj_set_info_handler()
63 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_set_warning_handler() local
64 if (! l_codec) { in opj_set_warning_handler()
68 l_codec->m_event_mgr.warning_handler = p_callback; in opj_set_warning_handler()
69 l_codec->m_event_mgr.m_warning_data = p_user_data; in opj_set_warning_handler()
78 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_set_error_handler() local
79 if (! l_codec) { in opj_set_error_handler()
83 l_codec->m_event_mgr.error_handler = p_callback; in opj_set_error_handler()
84 l_codec->m_event_mgr.m_error_data = p_user_data; in opj_set_error_handler()
170 opj_codec_private_t *l_codec = 00; in opj_create_decompress() local
172 l_codec = (opj_codec_private_t*) opj_calloc(1, sizeof(opj_codec_private_t)); in opj_create_decompress()
173 if (!l_codec) { in opj_create_decompress()
177 l_codec->is_decompressor = 1; in opj_create_decompress()
181 l_codec->opj_dump_codec = (void (*)(void*, OPJ_INT32, FILE*)) j2k_dump; in opj_create_decompress()
183 l_codec->opj_get_codec_info = (opj_codestream_info_v2_t* (*)( in opj_create_decompress()
186 l_codec->opj_get_codec_index = (opj_codestream_index_t* (*)( in opj_create_decompress()
189 l_codec->m_codec_data.m_decompression.opj_decode = in opj_create_decompress()
194 l_codec->m_codec_data.m_decompression.opj_end_decompress = in opj_create_decompress()
199 l_codec->m_codec_data.m_decompression.opj_read_header = in opj_create_decompress()
205 l_codec->m_codec_data.m_decompression.opj_destroy = in opj_create_decompress()
208 l_codec->m_codec_data.m_decompression.opj_setup_decoder = in opj_create_decompress()
211 l_codec->m_codec_data.m_decompression.opj_read_tile_header = in opj_create_decompress()
222 l_codec->m_codec_data.m_decompression.opj_decode_tile_data = in opj_create_decompress()
230 l_codec->m_codec_data.m_decompression.opj_set_decode_area = in opj_create_decompress()
236 l_codec->m_codec_data.m_decompression.opj_get_decoded_tile = in opj_create_decompress()
243 l_codec->m_codec_data.m_decompression.opj_set_decoded_resolution_factor = in opj_create_decompress()
248 l_codec->m_codec_data.m_decompression.opj_set_decoded_components = in opj_create_decompress()
254 l_codec->opj_set_threads = in opj_create_decompress()
257 l_codec->m_codec = opj_j2k_create_decompress(); in opj_create_decompress()
259 if (! l_codec->m_codec) { in opj_create_decompress()
260 opj_free(l_codec); in opj_create_decompress()
268 l_codec->opj_dump_codec = (void (*)(void*, OPJ_INT32, FILE*)) jp2_dump; in opj_create_decompress()
270 l_codec->opj_get_codec_info = (opj_codestream_info_v2_t* (*)( in opj_create_decompress()
273 l_codec->opj_get_codec_index = (opj_codestream_index_t* (*)( in opj_create_decompress()
276 l_codec->m_codec_data.m_decompression.opj_decode = in opj_create_decompress()
282 l_codec->m_codec_data.m_decompression.opj_end_decompress = in opj_create_decompress()
287 l_codec->m_codec_data.m_decompression.opj_read_header = in opj_create_decompress()
293 l_codec->m_codec_data.m_decompression.opj_read_tile_header = in opj_create_decompress()
306 l_codec->m_codec_data.m_decompression.opj_decode_tile_data = in opj_create_decompress()
312 l_codec->m_codec_data.m_decompression.opj_destroy = (void (*)( in opj_create_decompress()
315 l_codec->m_codec_data.m_decompression.opj_setup_decoder = in opj_create_decompress()
318 l_codec->m_codec_data.m_decompression.opj_set_decode_area = in opj_create_decompress()
324 l_codec->m_codec_data.m_decompression.opj_get_decoded_tile = in opj_create_decompress()
331 l_codec->m_codec_data.m_decompression.opj_set_decoded_resolution_factor = in opj_create_decompress()
336 l_codec->m_codec_data.m_decompression.opj_set_decoded_components = in opj_create_decompress()
342 l_codec->opj_set_threads = in opj_create_decompress()
345 l_codec->m_codec = opj_jp2_create(OPJ_TRUE); in opj_create_decompress()
347 if (! l_codec->m_codec) { in opj_create_decompress()
348 opj_free(l_codec); in opj_create_decompress()
356 opj_free(l_codec); in opj_create_decompress()
360 opj_set_default_event_handler(&(l_codec->m_event_mgr)); in opj_create_decompress()
361 return (opj_codec_t*) l_codec; in opj_create_decompress()
391 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_codec_set_threads() local
393 return l_codec->opj_set_threads(l_codec->m_codec, (OPJ_UINT32)num_threads); in opj_codec_set_threads()
403 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_setup_decoder() local
405 if (! l_codec->is_decompressor) { in opj_setup_decoder()
406 opj_event_msg(&(l_codec->m_event_mgr), EVT_ERROR, in opj_setup_decoder()
411 l_codec->m_codec_data.m_decompression.opj_setup_decoder(l_codec->m_codec, in opj_setup_decoder()
423 opj_codec_private_t* l_codec = (opj_codec_private_t*) p_codec; in opj_read_header() local
426 if (! l_codec->is_decompressor) { in opj_read_header()
427 opj_event_msg(&(l_codec->m_event_mgr), EVT_ERROR, in opj_read_header()
432 return l_codec->m_codec_data.m_decompression.opj_read_header(l_stream, in opj_read_header()
433 l_codec->m_codec, in opj_read_header()
435 &(l_codec->m_event_mgr)); in opj_read_header()
448 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_set_decoded_components() local
450 if (! l_codec->is_decompressor) { in opj_set_decoded_components()
451 opj_event_msg(&(l_codec->m_event_mgr), EVT_ERROR, in opj_set_decoded_components()
457 opj_event_msg(&(l_codec->m_event_mgr), EVT_ERROR, in opj_set_decoded_components()
462 return l_codec->m_codec_data.m_decompression.opj_set_decoded_components( in opj_set_decoded_components()
463 l_codec->m_codec, in opj_set_decoded_components()
466 &(l_codec->m_event_mgr)); in opj_set_decoded_components()
476 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_decode() local
479 if (! l_codec->is_decompressor) { in opj_decode()
483 return l_codec->m_codec_data.m_decompression.opj_decode(l_codec->m_codec, in opj_decode()
486 &(l_codec->m_event_mgr)); in opj_decode()
499 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_set_decode_area() local
501 if (! l_codec->is_decompressor) { in opj_set_decode_area()
505 return l_codec->m_codec_data.m_decompression.opj_set_decode_area( in opj_set_decode_area()
506 l_codec->m_codec, in opj_set_decode_area()
510 &(l_codec->m_event_mgr)); in opj_set_decode_area()
525 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_read_tile_header() local
528 if (! l_codec->is_decompressor) { in opj_read_tile_header()
532 return l_codec->m_codec_data.m_decompression.opj_read_tile_header( in opj_read_tile_header()
533 l_codec->m_codec, in opj_read_tile_header()
541 &(l_codec->m_event_mgr)); in opj_read_tile_header()
554 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_decode_tile_data() local
557 if (! l_codec->is_decompressor) { in opj_decode_tile_data()
561 return l_codec->m_codec_data.m_decompression.opj_decode_tile_data( in opj_decode_tile_data()
562 l_codec->m_codec, in opj_decode_tile_data()
567 &(l_codec->m_event_mgr)); in opj_decode_tile_data()
578 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_get_decoded_tile() local
581 if (! l_codec->is_decompressor) { in opj_get_decoded_tile()
585 return l_codec->m_codec_data.m_decompression.opj_get_decoded_tile( in opj_get_decoded_tile()
586 l_codec->m_codec, in opj_get_decoded_tile()
589 &(l_codec->m_event_mgr), in opj_get_decoded_tile()
599 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_set_decoded_resolution_factor() local
601 if (!l_codec) { in opj_set_decoded_resolution_factor()
605 return l_codec->m_codec_data.m_decompression.opj_set_decoded_resolution_factor( in opj_set_decoded_resolution_factor()
606 l_codec->m_codec, in opj_set_decoded_resolution_factor()
608 &(l_codec->m_event_mgr)); in opj_set_decoded_resolution_factor()
616 opj_codec_private_t *l_codec = 00; in opj_create_compress() local
618 l_codec = (opj_codec_private_t*)opj_calloc(1, sizeof(opj_codec_private_t)); in opj_create_compress()
619 if (!l_codec) { in opj_create_compress()
623 l_codec->is_decompressor = 0; in opj_create_compress()
627 l_codec->m_codec_data.m_compression.opj_encode = (OPJ_BOOL(*)(void *, in opj_create_compress()
631 l_codec->m_codec_data.m_compression.opj_end_compress = (OPJ_BOOL(*)(void *, in opj_create_compress()
635 l_codec->m_codec_data.m_compression.opj_start_compress = (OPJ_BOOL(*)(void *, in opj_create_compress()
640 l_codec->m_codec_data.m_compression.opj_write_tile = (OPJ_BOOL(*)(void *, in opj_create_compress()
647 l_codec->m_codec_data.m_compression.opj_destroy = (void (*)( in opj_create_compress()
650 l_codec->m_codec_data.m_compression.opj_setup_encoder = (OPJ_BOOL(*)(void *, in opj_create_compress()
655 l_codec->m_codec = opj_j2k_create_compress(); in opj_create_compress()
656 if (! l_codec->m_codec) { in opj_create_compress()
657 opj_free(l_codec); in opj_create_compress()
665 l_codec->m_codec_data.m_compression.opj_encode = (OPJ_BOOL(*)(void *, in opj_create_compress()
669 l_codec->m_codec_data.m_compression.opj_end_compress = (OPJ_BOOL(*)(void *, in opj_create_compress()
673 l_codec->m_codec_data.m_compression.opj_start_compress = (OPJ_BOOL(*)(void *, in opj_create_compress()
678 l_codec->m_codec_data.m_compression.opj_write_tile = (OPJ_BOOL(*)(void *, in opj_create_compress()
685 l_codec->m_codec_data.m_compression.opj_destroy = (void (*)( in opj_create_compress()
688 l_codec->m_codec_data.m_compression.opj_setup_encoder = (OPJ_BOOL(*)(void *, in opj_create_compress()
693 l_codec->m_codec = opj_jp2_create(OPJ_FALSE); in opj_create_compress()
694 if (! l_codec->m_codec) { in opj_create_compress()
695 opj_free(l_codec); in opj_create_compress()
704 opj_free(l_codec); in opj_create_compress()
708 opj_set_default_event_handler(&(l_codec->m_event_mgr)); in opj_create_compress()
709 return (opj_codec_t*) l_codec; in opj_create_compress()
778 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_setup_encoder() local
780 if (! l_codec->is_decompressor) { in opj_setup_encoder()
781 return l_codec->m_codec_data.m_compression.opj_setup_encoder(l_codec->m_codec, in opj_setup_encoder()
784 &(l_codec->m_event_mgr)); in opj_setup_encoder()
796 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_start_compress() local
799 if (! l_codec->is_decompressor) { in opj_start_compress()
800 return l_codec->m_codec_data.m_compression.opj_start_compress(l_codec->m_codec, in opj_start_compress()
803 &(l_codec->m_event_mgr)); in opj_start_compress()
813 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_info; in opj_encode() local
816 if (! l_codec->is_decompressor) { in opj_encode()
817 return l_codec->m_codec_data.m_compression.opj_encode(l_codec->m_codec, in opj_encode()
819 &(l_codec->m_event_mgr)); in opj_encode()
831 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_end_compress() local
834 if (! l_codec->is_decompressor) { in opj_end_compress()
835 return l_codec->m_codec_data.m_compression.opj_end_compress(l_codec->m_codec, in opj_end_compress()
837 &(l_codec->m_event_mgr)); in opj_end_compress()
848 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_end_decompress() local
851 if (! l_codec->is_decompressor) { in opj_end_decompress()
855 return l_codec->m_codec_data.m_decompression.opj_end_decompress( in opj_end_decompress()
856 l_codec->m_codec, in opj_end_decompress()
858 &(l_codec->m_event_mgr)); in opj_end_decompress()
901 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_write_tile() local
904 if (l_codec->is_decompressor) { in opj_write_tile()
908 return l_codec->m_codec_data.m_compression.opj_write_tile(l_codec->m_codec, in opj_write_tile()
913 &(l_codec->m_event_mgr)); in opj_write_tile()
924 opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec; in opj_destroy_codec() local
926 if (l_codec->is_decompressor) { in opj_destroy_codec()
927 l_codec->m_codec_data.m_decompression.opj_destroy(l_codec->m_codec); in opj_destroy_codec()
929 l_codec->m_codec_data.m_compression.opj_destroy(l_codec->m_codec); in opj_destroy_codec()
932 l_codec->m_codec = 00; in opj_destroy_codec()
933 opj_free(l_codec); in opj_destroy_codec()
944 opj_codec_private_t* l_codec = (opj_codec_private_t*) p_codec; in opj_dump_codec() local
946 l_codec->opj_dump_codec(l_codec->m_codec, info_flag, output_stream); in opj_dump_codec()
958 opj_codec_private_t* l_codec = (opj_codec_private_t*) p_codec; in opj_get_cstr_info() local
960 return l_codec->opj_get_codec_info(l_codec->m_codec); in opj_get_cstr_info()
986 opj_codec_private_t* l_codec = (opj_codec_private_t*) p_codec; in opj_get_cstr_index() local
988 return l_codec->opj_get_codec_index(l_codec->m_codec); in opj_get_cstr_index()