Lines Matching defs:buf
49 if (p->buf_size < 22 || AV_RL16(p->buf) || AV_RL16(p->buf + 2) != 1)
51 frames = AV_RL16(p->buf + 4);
56 if (AV_RL16(p->buf + 10 + i * 16) & ~1)
58 if (p->buf[13 + i * 16])
60 if (AV_RL32(p->buf + 14 + i * 16) < 40)
62 offset = AV_RL32(p->buf + 18 + i * 16);
67 if (p->buf[offset] != 40 && AV_RB64(p->buf + offset) != PNGSIG)
172 uint8_t *buf;
175 buf = pkt->data;
178 bytestream_put_byte(&buf, 'B');
179 bytestream_put_byte(&buf, 'M');
180 bytestream_put_le32(&buf, pkt->size);
181 bytestream_put_le16(&buf, 0);
182 bytestream_put_le16(&buf, 0);
183 bytestream_put_le32(&buf, 0);
185 if ((ret = avio_read(pb, buf, image->size)) != image->size) {
189 st->codecpar->bits_per_coded_sample = AV_RL16(buf + 14);
191 if (AV_RL32(buf + 32))
192 image->nb_pal = AV_RL32(buf + 32);
196 AV_WL32(buf + 32, image->nb_pal);
202 AV_WL32(buf - 4, 14 + 40 + image->nb_pal * 4);
203 AV_WL32(buf + 8, AV_RL32(buf + 8) / 2);