Lines Matching defs:pnmctx
40 PNMContext pnmctx;
63 pnmctx.bytestream_start =
64 pnmctx.bytestream = pc->buffer;
65 pnmctx.bytestream_end = pc->buffer + pc->index;
67 pnmctx.bytestream_start =
68 pnmctx.bytestream = (uint8_t *) buf + skip; /* casts avoid warnings */
69 pnmctx.bytestream_end = (uint8_t *) buf + buf_size - skip;
71 if (ff_pnm_decode_header(avctx, &pnmctx) < 0) {
72 if (pnmctx.bytestream < pnmctx.bytestream_end) {
77 unsigned step = FFMAX(1, pnmctx.bytestream - pnmctx.bytestream_start);
83 } else if (pnmctx.type < 4) {
84 uint8_t *bs = pnmctx.bytestream;
85 const uint8_t *end = pnmctx.bytestream_end;
104 next = bs - pnmctx.bytestream_start + skip - 1;
110 pnmpc->ascii_scan = sync - pnmctx.bytestream + skip;
113 next = pnmctx.bytestream - pnmctx.bytestream_start + skip;
114 if (ret > 0 && pnmctx.half)
119 if (next != END_NOT_FOUND && pnmctx.bytestream_start != buf + skip)