FFmpeg
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 []
 
const RTPDynamicProtocolHandler ff_qcelp_dynamic_handler
 

Function Documentation

◆ return_stored_frame()

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

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

◆ qcelp_parse_packet()

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

◆ frame_sizes

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(), store_packet(), and superframe_index().

◆ ff_qcelp_dynamic_handler

const 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,
}

Definition at line 212 of file rtpdec_qcelp.c.

AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
qcelp_parse_packet
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
AV_CODEC_ID_QCELP
@ AV_CODEC_ID_QCELP
Definition: codec_id.h:462
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:1119
PayloadContext
RTP/JPEG specific private data.
Definition: rdt.c:83