FFmpeg
Loading...
Searching...
No Matches
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

◆ RTP_G726_HANDLER

#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; \
\
\
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, \
}
#define s(width, name)
Definition cbs_vp9.c:198
@ AV_CODEC_ID_ADPCM_G726LE
Definition codec_id.h:405
@ AV_CODEC_ID_ADPCM_G726
Definition codec_id.h:381
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
#define av_cold
Definition attributes.h:117
const char data[16]
Definition mxf.c:149
This struct describes the properties of an encoded stream.
Definition codec_par.h:49
int bits_per_coded_sample
The number of bits per sample in the codedwords.
Definition codec_par.h:113
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
Definition codec_par.h:99
int sample_rate
The number of audio samples per second.
Definition codec_par.h:213
Format I/O context.
Definition avformat.h:1333
Stream structure.
Definition avformat.h:766
AVCodecParameters * codecpar
Codec parameters associated with this stream.
Definition avformat.h:789
RTP/AV1 specific private data.
Definition rdt.c:85
int64_t bitrate
Definition av1_levels.c:47

Definition at line 25 of file rtpdec_g726.c.

Function Documentation

◆ RTP_G726_HANDLER() [1/4]

RTP_G726_HANDLER ( 16 )

◆ RTP_G726_HANDLER() [2/4]

RTP_G726_HANDLER ( 24 )

◆ RTP_G726_HANDLER() [3/4]

RTP_G726_HANDLER ( 32 )

◆ RTP_G726_HANDLER() [4/4]

RTP_G726_HANDLER ( 40 )