libavformat/rtpdec_g726.c File Reference

#include "avformat.h"
#include "rtpdec_formats.h"

Go to the source code of this file.

Defines

#define RTP_G726_HANDLER(bitrate)

Functions

 RTP_G726_HANDLER (16)
 RTP_G726_HANDLER (24)
 RTP_G726_HANDLER (32)
 RTP_G726_HANDLER (40)


Define Documentation

#define RTP_G726_HANDLER ( bitrate   ) 

Value:

static int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, PayloadContext *data) \
{ \
    AVStream *stream = s->streams[st_index]; \
    AVCodecContext *codec = stream->codec; \
\
    codec->bits_per_coded_sample = bitrate/8; \
    codec->bit_rate = codec->bits_per_coded_sample * codec->sample_rate; \
\
    return 0; \
} \
\
RTPDynamicProtocolHandler ff_g726_ ## bitrate ## _dynamic_handler = { \
    .enc_name   = "G726-" #bitrate, \
    .codec_type = AVMEDIA_TYPE_AUDIO, \
    .codec_id   = CODEC_ID_ADPCM_G726, \
    .init       = g726_ ## bitrate ## _init, \
}

Definition at line 24 of file rtpdec_g726.c.


Function Documentation

RTP_G726_HANDLER ( 40   ) 

RTP_G726_HANDLER ( 32   ) 

RTP_G726_HANDLER ( 24   ) 

RTP_G726_HANDLER ( 16   ) 


Generated on Fri Oct 26 02:46:13 2012 for FFmpeg by  doxygen 1.5.8