rtpdec_qcelp.c File Reference
#include "rtpdec_formats.h"
Include dependency graph for rtpdec_qcelp.c:

Go to the source code of this file.

Data Structures

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

Functions

static PayloadContextqcelp_new_context (void)
 
static void qcelp_free_context (PayloadContext *data)
 
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 void qcelp_free_context ( PayloadContext data)
static

Definition at line 55 of file rtpdec_qcelp.c.

static PayloadContext* qcelp_new_context ( void  )
static

Definition at line 50 of file rtpdec_qcelp.c.

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 211 of file rtpdec_qcelp.c.

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 161 of file rtpdec_qcelp.c.

Referenced by qcelp_free_context(), 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 64 of file rtpdec_qcelp.c.

Referenced by qcelp_parse_packet(), and return_stored_frame().

Variable Documentation

RTPDynamicProtocolHandler ff_qcelp_dynamic_handler
Initial value:
= {
.enc_name = "x-Purevoice",
.codec_type = AVMEDIA_TYPE_AUDIO,
.codec_id = AV_CODEC_ID_QCELP,
.static_payload_id = 12,
.parse_packet = qcelp_parse_packet
}
static PayloadContext * qcelp_new_context(void)
Definition: rtpdec_qcelp.c:50
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:211
static void qcelp_free_context(PayloadContext *data)
Definition: rtpdec_qcelp.c:55

Definition at line 222 of file rtpdec_qcelp.c.

Referenced by av_register_rtp_dynamic_payload_handlers().

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().