Lines Matching defs:buf
36 static void send_packet(AVFormatContext *ctx, uint8_t parse_code, int info_hdr_size, const uint8_t *buf, int size, int i, int f, int rtp_m)
40 AV_WB16(&rtp_ctx->buf[0], 0); /* extended sequence number */
41 AV_WB8 (&rtp_ctx->buf[2], i ? (f ? (0x03) : (0x02)) : 0x00); /* flags: interlaced, second field */
42 AV_WB8 (&rtp_ctx->buf[3], parse_code);
44 memcpy(&rtp_ctx->buf[4 + info_hdr_size], buf, size);
45 ff_rtp_send_data(ctx, rtp_ctx->buf, RTP_VC2HQ_PL_HEADER_SIZE + info_hdr_size + size, rtp_m);
48 static void send_picture(AVFormatContext *ctx, const uint8_t *buf, int size, int interlaced)
55 char *info_hdr = &rtp_ctx->buf[4];
57 pic_nr = AV_RB32(&buf[0]);
58 buf += DIRAC_PIC_NR_SIZE;
62 init_get_bits(&gc, buf, 8 * size);
85 send_packet(ctx, DIRAC_RTP_PCODE_HQ_PIC_FRAGMENT, 12, buf, frag_len, interlaced, second_field, 0);
86 buf += frag_len;
97 send_packet(ctx, DIRAC_RTP_PCODE_HQ_PIC_FRAGMENT, 16, buf, frag_len, interlaced, second_field, size > 0 ? 0 : 1);
98 buf += frag_len;