Home
last modified time | relevance | path

Searched refs:rtp_ctx (Results 1 – 7 of 7) sorted by relevance

/third_party/ffmpeg/libavformat/
Drtpenc_vp9.c28 RTPMuxContext *rtp_ctx = ctx->priv_data; in ff_rtp_send_vp9() local
31 rtp_ctx->timestamp = rtp_ctx->cur_timestamp; in ff_rtp_send_vp9()
32 rtp_ctx->buf_ptr = rtp_ctx->buf; in ff_rtp_send_vp9()
35 *rtp_ctx->buf_ptr++ = 0x08; in ff_rtp_send_vp9()
38 len = FFMIN(size, rtp_ctx->max_payload_size - RTP_VP9_DESC_REQUIRED_SIZE); in ff_rtp_send_vp9()
42 rtp_ctx->buf[0] |= 0x04; in ff_rtp_send_vp9()
45 memcpy(rtp_ctx->buf_ptr, buf, len); in ff_rtp_send_vp9()
46 ff_rtp_send_data(ctx, rtp_ctx->buf, len + RTP_VP9_DESC_REQUIRED_SIZE, size == len); in ff_rtp_send_vp9()
52 rtp_ctx->buf[0] &= ~0x08; in ff_rtp_send_vp9()
Drtpenc_h261.c43 RTPMuxContext *rtp_ctx = ctx->priv_data; in ff_rtp_send_h261() local
46 rtp_ctx->timestamp = rtp_ctx->cur_timestamp; in ff_rtp_send_h261()
70 rtp_ctx->buf[0] = 1; /* sbit=0, ebit=0, i=0, v=1 */ in ff_rtp_send_h261()
71 rtp_ctx->buf[1] = 0; /* gobn=0, mbap=0 */ in ff_rtp_send_h261()
72 rtp_ctx->buf[2] = 0; /* quant=0, hmvd=5 */ in ff_rtp_send_h261()
73 rtp_ctx->buf[3] = 0; /* vmvd=0 */ in ff_rtp_send_h261()
83 cur_frame_size = FFMIN(rtp_ctx->max_payload_size - RTP_H261_HEADER_SIZE, frame_size); in ff_rtp_send_h261()
96 memcpy(&rtp_ctx->buf[RTP_H261_HEADER_SIZE], frame_buf, cur_frame_size); in ff_rtp_send_h261()
97 … ff_rtp_send_data(ctx, rtp_ctx->buf, RTP_H261_HEADER_SIZE + cur_frame_size, last_packet_of_frame); in ff_rtp_send_h261()
Drtpenc_mpegts.c30 AVFormatContext *rtp_ctx; member
45 if (chain->rtp_ctx) { in rtp_mpegts_write_close()
46 av_write_trailer(chain->rtp_ctx); in rtp_mpegts_write_close()
47 avformat_free_context(chain->rtp_ctx); in rtp_mpegts_write_close()
58 AVFormatContext *mpegts_ctx = NULL, *rtp_ctx = NULL; in rtp_mpegts_write_header() local
102 rtp_ctx = avformat_alloc_context(); in rtp_mpegts_write_header()
103 if (!rtp_ctx) { in rtp_mpegts_write_header()
107 rtp_ctx->oformat = rtp_format; in rtp_mpegts_write_header()
108 st = avformat_new_stream(rtp_ctx, NULL); in rtp_mpegts_write_header()
116 rtp_ctx->pb = s->pb; in rtp_mpegts_write_header()
[all …]
Drtpenc_vc2hq.c38 RTPMuxContext *rtp_ctx = ctx->priv_data; in send_packet() local
40 AV_WB16(&rtp_ctx->buf[0], 0); /* extended sequence number */ in send_packet()
41 … AV_WB8 (&rtp_ctx->buf[2], i ? (f ? (0x03) : (0x02)) : 0x00); /* flags: interlaced, second field */ in send_packet()
42 AV_WB8 (&rtp_ctx->buf[3], parse_code); in send_packet()
44 memcpy(&rtp_ctx->buf[4 + info_hdr_size], buf, size); in send_packet()
45 ff_rtp_send_data(ctx, rtp_ctx->buf, RTP_VC2HQ_PL_HEADER_SIZE + info_hdr_size + size, rtp_m); in send_packet()
50 RTPMuxContext *rtp_ctx = ctx->priv_data; in send_picture() local
55 char *info_hdr = &rtp_ctx->buf[4]; in send_picture()
90 frag_len = FFMIN(rtp_ctx->max_payload_size - 20 /* pl header */, size); in send_picture()
Dmovenchint.c46 ret = ff_rtp_chain_mux_open(&track->rtp_ctx, s, src_st, NULL, in ff_mov_init_hinting()
52 track->timescale = track->rtp_ctx->streams[0]->time_base.den; in ff_mov_init_hinting()
407 AVFormatContext *rtp_ctx = trk->rtp_ctx; in ff_mov_add_hinted_packet() local
414 if (!rtp_ctx) in ff_mov_add_hinted_packet()
416 if (!rtp_ctx->pb) in ff_mov_add_hinted_packet()
425 ff_write_chained(rtp_ctx, 0, pkt, s, 0); in ff_mov_add_hinted_packet()
429 size = avio_close_dyn_buf(rtp_ctx->pb, &buf); in ff_mov_add_hinted_packet()
430 if ((ret = ffio_open_dyn_packet_buf(&rtp_ctx->pb, in ff_mov_add_hinted_packet()
462 AVFormatContext *rtp_ctx = track->rtp_ctx; in ff_mov_close_hinting() local
466 if (!rtp_ctx) in ff_mov_close_hinting()
[all …]
Dmovenc.h127 AVFormatContext *rtp_ctx; ///< the format context for the hinting rtp muxer member
Dmovenc.c3306 AVFormatContext *ctx = track->rtp_ctx; in mov_write_udta_sdp()