FFmpeg
Data Structures | Functions | Variables
rtpdec_vp8.c File Reference

RTP support for the VP8 payload. More...

#include "libavutil/intreadwrite.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 int vp8_broken_sequence (AVFormatContext *ctx, PayloadContext *vp8, const char *msg)
 
static int vp8_handle_packet (AVFormatContext *ctx, PayloadContext *vp8, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
 
static av_cold int vp8_init (AVFormatContext *s, int st_index, PayloadContext *vp8)
 
static void vp8_close_context (PayloadContext *vp8)
 
static int vp8_need_keyframe (PayloadContext *vp8)
 

Variables

const RTPDynamicProtocolHandler ff_vp8_dynamic_handler
 

Detailed Description

RTP support for the VP8 payload.

Author
Josh Allmann joshu.nosp@m.a.al.nosp@m.lmann.nosp@m.@gma.nosp@m.il.co.nosp@m.m
See also
http://tools.ietf.org/html/draft-ietf-payload-vp8-05

Definition in file rtpdec_vp8.c.

Function Documentation

◆ vp8_broken_sequence()

static int vp8_broken_sequence ( AVFormatContext ctx,
PayloadContext vp8,
const char *  msg 
)
static

Definition at line 56 of file rtpdec_vp8.c.

Referenced by vp8_handle_packet().

◆ vp8_handle_packet()

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

Definition at line 65 of file rtpdec_vp8.c.

◆ vp8_init()

static av_cold int vp8_init ( AVFormatContext s,
int  st_index,
PayloadContext vp8 
)
static

Definition at line 263 of file rtpdec_vp8.c.

◆ vp8_close_context()

static void vp8_close_context ( PayloadContext vp8)
static

Definition at line 269 of file rtpdec_vp8.c.

◆ vp8_need_keyframe()

static int vp8_need_keyframe ( PayloadContext vp8)
static

Definition at line 274 of file rtpdec_vp8.c.

Variable Documentation

◆ ff_vp8_dynamic_handler

const RTPDynamicProtocolHandler ff_vp8_dynamic_handler
Initial value:
= {
.enc_name = "VP8",
.codec_type = AVMEDIA_TYPE_VIDEO,
.codec_id = AV_CODEC_ID_VP8,
.priv_data_size = sizeof(PayloadContext),
.need_keyframe = vp8_need_keyframe,
}

Definition at line 279 of file rtpdec_vp8.c.

vp8_close_context
static void vp8_close_context(PayloadContext *vp8)
Definition: rtpdec_vp8.c:269
vp8_need_keyframe
static int vp8_need_keyframe(PayloadContext *vp8)
Definition: rtpdec_vp8.c:274
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:366
vp8_handle_packet
static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
Definition: rtpdec_vp8.c:65
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:1155
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_CODEC_ID_VP8
@ AV_CODEC_ID_VP8
Definition: codec_id.h:192
vp8_init
static av_cold int vp8_init(AVFormatContext *s, int st_index, PayloadContext *vp8)
Definition: rtpdec_vp8.c:263
PayloadContext
RTP/JPEG specific private data.
Definition: rdt.c:85