Lines Matching defs:buf
35 AVIOContext *buf;
45 static void fill_parse_info_header(PayloadContext *pl_ctx, uint8_t *buf,
48 memcpy(buf, start_sequence, sizeof(start_sequence));
49 buf[4] = parse_code;
50 AV_WB32(&buf[5], data_unit_size);
51 AV_WB32(&buf[9], pl_ctx->last_unit_size);
57 const uint8_t *buf, int len)
67 memcpy(pkt->data + DIRAC_DATA_UNIT_HEADER_SIZE, buf, len);
93 AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len,
107 pic_nr = AV_RB32(&buf[4]);
108 frag_len = AV_RB16(&buf[12]);
109 no_slices = AV_RB16(&buf[14]);
111 if (pl_ctx->buf && pl_ctx->frame_nr != pic_nr) {
113 ffio_free_dyn_buf(&pl_ctx->buf);
124 if (!pl_ctx->buf) {
126 res = avio_open_dyn_buf(&pl_ctx->buf);
131 res = avio_seek(pl_ctx->buf, DIRAC_DATA_UNIT_HEADER_SIZE + DIRAC_PIC_NR_SIZE, SEEK_SET);
140 avio_write(pl_ctx->buf, buf + 16 /* skip pl header */, frag_len);
151 if (!pl_ctx->buf)
154 avio_write(pl_ctx->buf, buf + 20 /* skip pl header */, frag_len);
164 res = ff_rtp_finalize_packet(pkt, &pl_ctx->buf, st->index);
178 const uint8_t *buf, int len, uint16_t seq,
184 if (pl_ctx->buf && pl_ctx->timestamp != *timestamp) {
186 ffio_free_dyn_buf(&pl_ctx->buf);
196 parse_code = buf[3];
203 res = vc2hq_handle_sequence_header(pl_ctx, st, pkt, buf + RTP_VC2HQ_PL_HEADER_SIZE, len - RTP_VC2HQ_PL_HEADER_SIZE);
211 res = vc2hq_handle_frame_fragment(ctx, pl_ctx, st, pkt, timestamp, buf, len, flags);