FFmpeg
Data Structures | Functions | Variables
rtpdec_dv.c File Reference
#include "libavutil/avstring.h"
#include "avio_internal.h"
#include "rtpdec.h"

Go to the source code of this file.

Data Structures

struct  PayloadContext
 RTP/JPEG specific private data. More...
 

Functions

static av_cold void dv_close_context (PayloadContext *data)
 
static av_cold int dv_sdp_parse_fmtp_config (AVFormatContext *s, AVStream *stream, PayloadContext *dv_data, const char *attr, const char *value)
 
static av_cold int dv_parse_sdp_line (AVFormatContext *ctx, int st_index, PayloadContext *dv_data, const char *line)
 
static int dv_handle_packet (AVFormatContext *ctx, PayloadContext *rtp_dv_ctx, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
 

Variables

const RTPDynamicProtocolHandler ff_dv_dynamic_handler
 

Function Documentation

◆ dv_close_context()

static av_cold void dv_close_context ( PayloadContext data)
static

Definition at line 33 of file rtpdec_dv.c.

◆ dv_sdp_parse_fmtp_config()

static av_cold int dv_sdp_parse_fmtp_config ( AVFormatContext s,
AVStream stream,
PayloadContext dv_data,
const char *  attr,
const char *  value 
)
static

Definition at line 38 of file rtpdec_dv.c.

Referenced by dv_parse_sdp_line().

◆ dv_parse_sdp_line()

static av_cold int dv_parse_sdp_line ( AVFormatContext ctx,
int  st_index,
PayloadContext dv_data,
const char *  line 
)
static

Definition at line 70 of file rtpdec_dv.c.

◆ dv_handle_packet()

static int dv_handle_packet ( AVFormatContext ctx,
PayloadContext rtp_dv_ctx,
AVStream st,
AVPacket pkt,
uint32_t *  timestamp,
const uint8_t *  buf,
int  len,
uint16_t  seq,
int  flags 
)
static

Definition at line 89 of file rtpdec_dv.c.

Variable Documentation

◆ ff_dv_dynamic_handler

const RTPDynamicProtocolHandler ff_dv_dynamic_handler
Initial value:
= {
.enc_name = "DV",
.codec_type = AVMEDIA_TYPE_VIDEO,
.codec_id = AV_CODEC_ID_DVVIDEO,
.need_parsing = AVSTREAM_PARSE_FULL,
.parse_sdp_a_line = dv_parse_sdp_line,
.priv_data_size = sizeof(PayloadContext),
.close = dv_close_context,
}

Definition at line 132 of file rtpdec_dv.c.

dv_handle_packet
static int dv_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_dv_ctx, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
Definition: rtpdec_dv.c:89
dv_parse_sdp_line
static av_cold int dv_parse_sdp_line(AVFormatContext *ctx, int st_index, PayloadContext *dv_data, const char *line)
Definition: rtpdec_dv.c:70
AV_CODEC_ID_DVVIDEO
@ AV_CODEC_ID_DVVIDEO
Definition: codec_id.h:76
dv_close_context
static av_cold void dv_close_context(PayloadContext *data)
Definition: rtpdec_dv.c:33
parse_packet
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index, int flush)
Parse a packet, add all split parts to parse_queue.
Definition: demux.c:1162
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AVSTREAM_PARSE_FULL
@ AVSTREAM_PARSE_FULL
full parsing and repack
Definition: avformat.h:593
PayloadContext
RTP/JPEG specific private data.
Definition: rdt.c:85