Lines Matching full:tmpstream
236 jas_stream_t *tmpstream;
268 if (!(tmpstream = jas_stream_memopen(0, 0))) {
272 if (jas_stream_copy(tmpstream, in, ms->len) ||
273 jas_stream_seek(tmpstream, 0, SEEK_SET) < 0) {
274 jas_stream_close(tmpstream);
279 if ((*ms->ops->getparms)(ms, cstate, tmpstream)) {
282 jas_stream_close(tmpstream);
290 if (JAS_CAST(ulong, jas_stream_tell(tmpstream)) != ms->len) {
292 ms->len - jas_stream_tell(tmpstream));
296 jas_stream_close(tmpstream);
321 jas_stream_t *tmpstream;
333 if (!(tmpstream = jas_stream_memopen(0, 0))) {
336 if ((*ms->ops->putparms)(ms, cstate, tmpstream)) {
337 jas_stream_close(tmpstream);
341 if ((len = jas_stream_tell(tmpstream)) < 0) {
342 jas_stream_close(tmpstream);
348 if (jas_stream_seek(tmpstream, 0, SEEK_SET) < 0 ||
350 jas_stream_copy(out, tmpstream, ms->len) < 0) {
351 jas_stream_close(tmpstream);
355 jas_stream_close(tmpstream);