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

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 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 = AV_CODEC_ID_ADPCM_G726, \
.init = g726_ ## bitrate ## _init, \
}
const struct AVCodec * codec
struct RTPDynamicProtocolHandler RTPDynamicProtocolHandler
Definition: rtpdec.h:33
const char * s
Definition: avisynth_c.h:668
RTP/JPEG specific private data.
Definition: rdt.c:83
Format I/O context.
Definition: avformat.h:944
struct AVStream AVStream
Stream structure.
struct AVCodecContext AVCodecContext
main external API structure.
Spectrum Plot time data
const char enc_name[50]
Definition: rtpdec.h:120
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame This method is called when a frame is wanted on an output For an it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return it should return

Definition at line 24 of file rtpdec_g726.c.

Function Documentation

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