FFmpeg
Data Structures | Functions | Variables
rtpdec_dv.c File Reference
#include "libavutil/avstring.h"
#include "libavcodec/bytestream.h"
#include "avio_internal.h"
#include "rtpdec_formats.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 35 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 40 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 72 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 91 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 134 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:91
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:72
AV_CODEC_ID_DVVIDEO
@ AV_CODEC_ID_DVVIDEO
Definition: codec_id.h:74
dv_close_context
static av_cold void dv_close_context(PayloadContext *data)
Definition: rtpdec_dv.c:35
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:1105
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AVSTREAM_PARSE_FULL
@ AVSTREAM_PARSE_FULL
full parsing and repack
Definition: avformat.h:792
PayloadContext
RTP/JPEG specific private data.
Definition: rdt.c:83