Lines Matching refs:jp2_stream
278 *jp2_stream; in ReadJP2Image() local
336 jp2_stream=opj_stream_create(OPJ_J2K_STREAM_CHUNK_SIZE,1); in ReadJP2Image()
337 opj_stream_set_read_function(jp2_stream,JP2ReadHandler); in ReadJP2Image()
338 opj_stream_set_write_function(jp2_stream,JP2WriteHandler); in ReadJP2Image()
339 opj_stream_set_seek_function(jp2_stream,JP2SeekHandler); in ReadJP2Image()
340 opj_stream_set_skip_function(jp2_stream,JP2SkipHandler); in ReadJP2Image()
341 opj_stream_set_user_data(jp2_stream,image,NULL); in ReadJP2Image()
342 opj_stream_set_user_data_length(jp2_stream,GetBlobSize(image)); in ReadJP2Image()
343 if (opj_read_header(jp2_stream,jp2_codec,&jp2_image) == 0) in ReadJP2Image()
345 opj_stream_destroy(jp2_stream); in ReadJP2Image()
365 opj_stream_destroy(jp2_stream); in ReadJP2Image()
374 opj_stream_destroy(jp2_stream); in ReadJP2Image()
380 jp2_status=opj_get_decoded_tile(jp2_codec,jp2_stream,jp2_image, in ReadJP2Image()
385 jp2_status=opj_decode(jp2_codec,jp2_stream,jp2_image); in ReadJP2Image()
387 jp2_status=opj_end_decompress(jp2_codec,jp2_stream); in ReadJP2Image()
391 opj_stream_destroy(jp2_stream); in ReadJP2Image()
396 opj_stream_destroy(jp2_stream); in ReadJP2Image()
835 *jp2_stream; in WriteJP2Image() local
1114 jp2_stream=opj_stream_create(OPJ_J2K_STREAM_CHUNK_SIZE,OPJ_FALSE); in WriteJP2Image()
1115 if (jp2_stream == (opj_stream_t *) NULL) in WriteJP2Image()
1122 opj_stream_set_read_function(jp2_stream,JP2ReadHandler); in WriteJP2Image()
1123 opj_stream_set_write_function(jp2_stream,JP2WriteHandler); in WriteJP2Image()
1124 opj_stream_set_seek_function(jp2_stream,JP2SeekHandler); in WriteJP2Image()
1125 opj_stream_set_skip_function(jp2_stream,JP2SkipHandler); in WriteJP2Image()
1126 opj_stream_set_user_data(jp2_stream,image,NULL); in WriteJP2Image()
1127 jp2_status=opj_start_compress(jp2_codec,jp2_image,jp2_stream); in WriteJP2Image()
1128 if ((jp2_status == 0) || (opj_encode(jp2_codec,jp2_stream) == 0) || in WriteJP2Image()
1129 (opj_end_compress(jp2_codec,jp2_stream) == 0)) in WriteJP2Image()
1131 opj_stream_destroy(jp2_stream); in WriteJP2Image()
1140 opj_stream_destroy(jp2_stream); in WriteJP2Image()