Lines Matching full:temp
76 } temp; member
553 * Flush pending filtered data from temp to the output buffer.
555 * data to the beginning of temp.
561 copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); in bcj_flush()
562 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush()
565 s->temp.filtered -= copy_size; in bcj_flush()
566 s->temp.size -= copy_size; in bcj_flush()
567 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush()
585 if (s->temp.filtered > 0) { in xz_dec_bcj_run()
587 if (s->temp.filtered > 0) in xz_dec_bcj_run()
596 * temp, copy the unfiltered data from temp to the output buffer in xz_dec_bcj_run()
600 * to temp and rewind the output buffer position accordingly. in xz_dec_bcj_run()
602 * This needs to be always run when temp.size == 0 to handle a special in xz_dec_bcj_run()
606 if (s->temp.size < b->out_size - b->out_pos || s->temp.size == 0) { in xz_dec_bcj_run()
608 memcpy(b->out + b->out_pos, s->temp.buf, s->temp.size); in xz_dec_bcj_run()
609 b->out_pos += s->temp.size; in xz_dec_bcj_run()
626 s->temp.size = b->out_pos - out_start; in xz_dec_bcj_run()
627 b->out_pos -= s->temp.size; in xz_dec_bcj_run()
628 memcpy(s->temp.buf, b->out + b->out_pos, s->temp.size); in xz_dec_bcj_run()
633 * to try decoding more data to temp. in xz_dec_bcj_run()
635 if (b->out_pos + s->temp.size < b->out_size) in xz_dec_bcj_run()
640 * We have unfiltered data in temp. If the output buffer isn't full in xz_dec_bcj_run()
641 * yet, try to fill the temp buffer by decoding more data from the in xz_dec_bcj_run()
642 * next filter. Apply the BCJ filter on temp. Then we hopefully can in xz_dec_bcj_run()
643 * fill the actual output buffer by copying filtered data from temp. in xz_dec_bcj_run()
644 * A mix of filtered and unfiltered data may be left in temp; it will in xz_dec_bcj_run()
648 /* Make b->out{,_pos,_size} temporarily point to s->temp. */ in xz_dec_bcj_run()
652 b->out = s->temp.buf; in xz_dec_bcj_run()
653 b->out_pos = s->temp.size; in xz_dec_bcj_run()
654 b->out_size = sizeof(s->temp.buf); in xz_dec_bcj_run()
658 s->temp.size = b->out_pos; in xz_dec_bcj_run()
666 bcj_apply(s, s->temp.buf, &s->temp.filtered, s->temp.size); in xz_dec_bcj_run()
674 s->temp.filtered = s->temp.size; in xz_dec_bcj_run()
677 if (s->temp.filtered > 0) in xz_dec_bcj_run()
731 s->temp.filtered = 0; in xz_dec_bcj_reset()
732 s->temp.size = 0; in xz_dec_bcj_reset()