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

RTP support for the VP8 payload. More...

#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 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.

Referenced by vpx_free().

◆ 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,
}
static void vp8_close_context(PayloadContext *vp8)
Definition: rtpdec_vp8.c:269
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
RTP/JPEG specific private data.
Definition: rdt.c:83
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
static int vp8_need_keyframe(PayloadContext *vp8)
Definition: rtpdec_vp8.c:274
static av_cold int vp8_init(AVFormatContext *s, int st_index, PayloadContext *vp8)
Definition: rtpdec_vp8.c:263
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
Parse a packet, add all split parts to parse_queue.
Definition: utils.c:1437

Definition at line 279 of file rtpdec_vp8.c.