Lines Matching refs:temp

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