FFmpeg
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; \
} \
\
const RTPDynamicProtocolHandler ff_g726_ ## bitrate ## _dynamic_handler = { \
.enc_name = "AAL2-G726-" #bitrate, \
.codec_type = AVMEDIA_TYPE_AUDIO, \
.codec_id = AV_CODEC_ID_ADPCM_G726, \
.init = g726_ ## bitrate ## _init, \
}; \
const RTPDynamicProtocolHandler ff_g726le_ ## bitrate ## _dynamic_handler = { \
.enc_name = "G726-" #bitrate, \
.codec_type = AVMEDIA_TYPE_AUDIO, \
.codec_id = AV_CODEC_ID_ADPCM_G726LE, \
.init = g726_ ## bitrate ## _init, \
}
ptrdiff_t const GLvoid * data
Definition: opengl_enc.c:100
RTP/JPEG specific private data.
Definition: rdt.c:83
Format I/O context.
Definition: avformat.h:1358
#define av_cold
Definition: attributes.h:82
#define s(width, name)
Definition: cbs_vp9.c:257
int64_t bitrate
Definition: h264_levels.c:131
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 For filters that do not use the this method is called when a frame is wanted on an output For a 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 or at least make progress towards producing a it should 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  )