Lines Matching defs:buf
36 AVIOContext *buf;
45 ffio_free_dyn_buf(&data->buf);
50 const uint8_t *buf, int len, uint16_t seq,
58 return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf, len,
61 if (data->buf && data->timestamp != *timestamp) {
63 ffio_free_dyn_buf(&data->buf);
72 f = buf[0] & 0x80;
73 p = buf[0] & 0x40;
77 i = buf[1] & 0x10;
78 r = ((buf[1] & 0x01) << 3) | ((buf[2] & 0xe0) >> 5);
88 r = buf[3] & 0x03;
89 i = buf[4] & 0x80;
99 r = buf[3] & 0x03;
100 i = buf[4] & 0x80;
102 sbit = (buf[0] >> 3) & 0x7;
103 ebit = buf[0] & 0x7;
104 src = (buf[1] & 0xe0) >> 5;
105 if (!(buf[0] & 0xf8)) { /* Reserved bits in RFC 2429/4629 are zero */
113 return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf,
118 buf += header_size;
121 if (!data->buf) {
124 if (len > 4 && AV_RB32(buf) >> 10 == 0x20) {
125 ret = avio_open_dyn_buf(&data->buf);
137 data->endbyte |= buf[0] & (0xff >> sbit);
139 buf++;
141 avio_w8(data->buf, data->endbyte);
145 ret = init_get_bits(&gb, buf, len*8 - ebit);
151 avio_w8(data->buf, data->endbyte);
154 avio_w8(data->buf, get_bits(&gb, 8));
165 avio_write(data->buf, buf, len - 1);
167 data->endbyte = buf[len - 1] & (0xff << ebit);
169 avio_write(data->buf, buf, len);
176 avio_w8(data->buf, data->endbyte);
179 ret = ff_rtp_finalize_packet(pkt, &data->buf, st->index);