libavformat/rtpdec_qcelp.c File Reference

#include "rtpdec_formats.h"

Go to the source code of this file.

Data Structures

struct  InterleavePacket
struct  PayloadContext
 RTP/H264 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, int flags)

Variables

static const uint8_t frame_sizes []
 RTP Depacketization of QCELP/PureVoice, RFC 2658 Copyright (c) 2010 Martin Storsjo.
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,
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_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

Initial value:

 {
    .enc_name           = "x-Purevoice",
    .codec_type         = AVMEDIA_TYPE_AUDIO,
    .codec_id           = CODEC_ID_QCELP,
    .static_payload_id  = 12,
    .alloc              = qcelp_new_context,
    .free               = qcelp_free_context,
    .parse_packet       = qcelp_parse_packet
}

Definition at line 221 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
}
RTP Depacketization of QCELP/PureVoice, RFC 2658 Copyright (c) 2010 Martin Storsjo.

This file is part of FFmpeg.

FFmpeg is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

FFmpeg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with FFmpeg; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 24 of file rtpdec_qcelp.c.

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


Generated on Fri Oct 26 02:38:21 2012 for FFmpeg by  doxygen 1.5.8