Lines Matching defs:buf
91 uint8_t *buf;
139 buf = pkt->data;
147 bytestream_put_byte(&buf, 10); // manufacturer
148 bytestream_put_byte(&buf, 5); // version
149 bytestream_put_byte(&buf, 1); // encoding
150 bytestream_put_byte(&buf, bpp); // bits per pixel per plane
151 bytestream_put_le16(&buf, 0); // x min
152 bytestream_put_le16(&buf, 0); // y min
153 bytestream_put_le16(&buf, avctx->width - 1); // x max
154 bytestream_put_le16(&buf, avctx->height - 1); // y max
155 bytestream_put_le16(&buf, sw); // horizontal DPI
156 bytestream_put_le16(&buf, sh); // vertical DPI
158 bytestream_put_be24(&buf, pal ? pal[i] : 0);// palette (<= 16 color only)
159 bytestream_put_byte(&buf, 0); // reserved
160 bytestream_put_byte(&buf, nplanes); // number of planes
161 bytestream_put_le16(&buf, line_bytes); // scanline plane size in bytes
163 while (buf - pkt->data < 128)
164 *buf++= 0;
169 if ((written = pcx_rle_encode(buf, buf_end - buf,
174 buf += written;
179 if (buf_end - buf < 257) {
183 bytestream_put_byte(&buf, 12);
185 bytestream_put_be24(&buf, pal[i]);
189 pkt->size = buf - pkt->data;