Lines Matching full:temp
75 } temp; member
395 * Flush pending filtered data from temp to the output buffer.
397 * data to the beginning of temp.
403 copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); in bcj_flush()
404 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush()
407 s->temp.filtered -= copy_size; in bcj_flush()
408 s->temp.size -= copy_size; in bcj_flush()
409 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush()
428 if (s->temp.filtered > 0) { in xz_dec_bcj_run()
430 if (s->temp.filtered > 0) in xz_dec_bcj_run()
439 * temp, copy the unfiltered data from temp to the output buffer in xz_dec_bcj_run()
443 * to temp and rewind the output buffer position accordingly. in xz_dec_bcj_run()
445 * This needs to be always run when temp.size == 0 to handle a special in xz_dec_bcj_run()
449 if (s->temp.size < b->out_size - b->out_pos || s->temp.size == 0) { in xz_dec_bcj_run()
451 memcpy(b->out + b->out_pos, s->temp.buf, s->temp.size); in xz_dec_bcj_run()
452 b->out_pos += s->temp.size; in xz_dec_bcj_run()
469 s->temp.size = b->out_pos - out_start; in xz_dec_bcj_run()
470 b->out_pos -= s->temp.size; in xz_dec_bcj_run()
471 memcpy(s->temp.buf, b->out + b->out_pos, s->temp.size); in xz_dec_bcj_run()
476 * to try decoding more data to temp. in xz_dec_bcj_run()
478 if (b->out_pos + s->temp.size < b->out_size) in xz_dec_bcj_run()
483 * We have unfiltered data in temp. If the output buffer isn't full in xz_dec_bcj_run()
484 * yet, try to fill the temp buffer by decoding more data from the in xz_dec_bcj_run()
485 * next filter. Apply the BCJ filter on temp. Then we hopefully can in xz_dec_bcj_run()
486 * fill the actual output buffer by copying filtered data from temp. in xz_dec_bcj_run()
487 * A mix of filtered and unfiltered data may be left in temp; it will in xz_dec_bcj_run()
491 /* Make b->out{,_pos,_size} temporarily point to s->temp. */ in xz_dec_bcj_run()
495 b->out = s->temp.buf; in xz_dec_bcj_run()
496 b->out_pos = s->temp.size; in xz_dec_bcj_run()
497 b->out_size = sizeof(s->temp.buf); in xz_dec_bcj_run()
501 s->temp.size = b->out_pos; in xz_dec_bcj_run()
509 bcj_apply(s, s->temp.buf, &s->temp.filtered, s->temp.size); in xz_dec_bcj_run()
517 s->temp.filtered = s->temp.size; in xz_dec_bcj_run()
520 if (s->temp.filtered > 0) in xz_dec_bcj_run()
568 s->temp.filtered = 0; in xz_dec_bcj_reset()
569 s->temp.size = 0; in xz_dec_bcj_reset()