Lines Matching refs:stream
563 opj_stream_t *stream = NULL;
688 stream = opj_stream_default_create(OPJ_STREAM_WRITE);
690 if (!stream) {
691 av_log(avctx, AV_LOG_ERROR, "Error creating the cio stream\n");
697 opj_stream_set_write_function(stream, stream_write);
698 opj_stream_set_skip_function(stream, stream_skip);
699 opj_stream_set_seek_function(stream, stream_seek);
700 opj_stream_set_user_data(stream, &writer, NULL);
702 if (!opj_start_compress(compress, image, stream) ||
703 !opj_encode(compress, stream) ||
704 !opj_end_compress(compress, stream)) {
716 opj_stream_destroy(stream);