FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
rtpdec_qcelp.c File Reference
#include "rtpdec_formats.h"

Go to the source code of this file.

Data Structures

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

Functions

static int return_stored_frame (AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len)
 
static int store_packet (AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len)
 
static int qcelp_parse_packet (AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
 

Variables

static const uint8_t frame_sizes []
 
RTPDynamicProtocolHandler ff_qcelp_dynamic_handler
 

Function Documentation

static int return_stored_frame ( AVFormatContext ctx,
PayloadContext data,
AVStream st,
AVPacket pkt,
uint32_t *  timestamp,
const uint8_t buf,
int  len 
)
static

Definition at line 151 of file rtpdec_qcelp.c.

Referenced by qcelp_parse_packet(), and store_packet().

static int store_packet ( AVFormatContext ctx,
PayloadContext data,
AVStream st,
AVPacket pkt,
uint32_t *  timestamp,
const uint8_t buf,
int  len 
)
static

Definition at line 54 of file rtpdec_qcelp.c.

Referenced by qcelp_parse_packet(), and return_stored_frame().

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

Definition at line 201 of file rtpdec_qcelp.c.

Variable Documentation

const uint8_t frame_sizes[]
static
Initial value:
= {
1, 4, 8, 17, 35
}

Definition at line 24 of file rtpdec_qcelp.c.

Referenced by amr_handle_packet(), new_subtitle_stream(), new_video_stream(), return_stored_frame(), and store_packet().

RTPDynamicProtocolHandler ff_qcelp_dynamic_handler
Initial value:
= {
.enc_name = "x-Purevoice",
.codec_type = AVMEDIA_TYPE_AUDIO,
.codec_id = AV_CODEC_ID_QCELP,
.priv_data_size = sizeof(PayloadContext),
.static_payload_id = 12,
}
RTP/JPEG specific private data.
Definition: rdt.c:83
static int qcelp_parse_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
Definition: rtpdec_qcelp.c:201
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
Parse a packet, add all split parts to parse_queue.
Definition: utils.c:1187

Definition at line 212 of file rtpdec_qcelp.c.

Referenced by ff_register_rtp_dynamic_payload_handlers().