Lines Matching refs:outbuf
385 unsigned char outbuf[5 * CALIB_LINE + 1];
465 out = outbuf;
474 if (out < &outbuf[ar->linesize])
491 (*pax->errorf)(NiL, pax, 1, "part c=%d n=%d k=%d \"%-.*s\"", c, out - outbuf, ar->count & 0x7f, out - outbuf, outbuf);
497 (*pax->errorf)(NiL, pax, 1, "part c=%d:%d:%d r=%d:%d bits=%d n=%d x=%u \"%-.*s\"", c, &outbuf[ar->linesize] - out, c ^ 64, ar->next - ar->buffer, ar->line, bits, out - outbuf, *ar->next, out - outbuf, outbuf);
498 if (c > (&outbuf[ar->linesize] - out))
501 if (bits == 8 && ar->count <= (&outbuf[ar->linesize] - out))
517 if (out < &outbuf[ar->linesize])
534 for (b = outbuf; b < out && *b == ' '; b++);
552 if (m == outbuf)
559 else if ((out - outbuf) > 2 && m[0] == 'C' && (m[1] == ' ' || m[1] == '*'))
590 if ((b - outbuf) > 6)
592 if (outbuf[6] == ' ')
594 for (b = outbuf + 7; b < out && *b == ' '; b++);
616 else if (outbuf[6] == '*')
625 if ((b = outbuf + ar->position) >= out || *b == ' ' || isdigit(*b) || (out - outbuf) == ar->linesize && (b = out - ar->digits))
627 if ((c = ar->position - (out - outbuf)) > 0)
638 for (; out > outbuf && *(out - 1) == ' '; out--);
640 if ((out - outbuf) > 10 && outbuf[6] == '*' && outbuf[7] == '/')
642 if ((out - outbuf) == 11 && outbuf[8] == '/' && (outbuf[9] == '*' || outbuf[9] == ' ' || !outbuf[9]))
647 for (b = outbuf + 8; b < out; b++)
656 c = m - outbuf - 8;
657 memcpy(from, outbuf + 8, c);
668 else if (!pax->strict && !(pax->test & 0x01000) && outbuf[0] == '-' && outbuf[1] == 'I' && outbuf[2] == 'N' && outbuf[3] == 'C' && outbuf[4] == ' ')
670 for (b = outbuf + 5; *b == ' '; b++);
673 c = sfsprintf((char*)outbuf, sizeof(outbuf), " COPY %-.*s REPLACING ==%s== BY ==%s==.\n", m - b, b, from, to);
675 c = sfsprintf((char*)outbuf, sizeof(outbuf), " COPY %-.*s.\n", m - b, b);
676 out = outbuf + c;
678 z = out - outbuf;
679 if (sfwrite(wfp, outbuf, z) != z || ar->camap && camap_write(ar->cam, outbuf, z) < 0)
690 for (b = outbuf; b < out && *b == ' '; b++);
691 for (; out > outbuf && *(out - 1) == ' '; out--);