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

Go to the source code of this file.

Macros

#define RTP_G726_HANDLER(bitrate)
 

Functions

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

Macro Definition Documentation

#define RTP_G726_HANDLER (   bitrate)
Value:
static av_cold int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, \
{ \
AVStream *stream = s->streams[st_index]; \
AVCodecParameters *par = stream->codecpar; \
\
par->bits_per_coded_sample = bitrate/8; \
par->bit_rate = par->bits_per_coded_sample * par->sample_rate; \
return 0; \
} \
\
RTPDynamicProtocolHandler ff_g726_ ## bitrate ## _dynamic_handler = { \
.enc_name = "G726-" #bitrate, \
.codec_type = AVMEDIA_TYPE_AUDIO, \
.codec_id = AV_CODEC_ID_ADPCM_G726, \
.init = g726_ ## bitrate ## _init, \
}
const char * s
Definition: avisynth_c.h:631
ptrdiff_t const GLvoid * data
Definition: opengl_enc.c:101
RTP/JPEG specific private data.
Definition: rdt.c:83
Format I/O context.
Definition: avformat.h:1325
#define av_cold
Definition: attributes.h:82
return

Definition at line 25 of file rtpdec_g726.c.

Function Documentation

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