#include <codec2/codec2.h>
#include "avcodec.h"
#include "libavutil/opt.h"
#include "internal.h"
#include "codec2utils.h"
Go to the source code of this file.
◆ libcodec2_init_common()
◆ libcodec2_init_decoder()
◆ libcodec2_init_encoder()
◆ libcodec2_close()
◆ libcodec2_decode()
◆ libcodec2_encode()
◆ options
◆ libcodec2_enc_class
Initial value:= {
.class_name = "libcodec2 encoder",
}
Definition at line 41 of file libcodec2.c.
◆ libcodec2_dec_class
Initial value:= {
.class_name = "libcodec2 decoder",
}
Definition at line 48 of file libcodec2.c.
◆ ff_libcodec2_decoder
Initial value:= {
.name = "libcodec2",
.supported_samplerates = (const int[]){ 8000, 0 },
}
Definition at line 183 of file libcodec2.c.
◆ ff_libcodec2_encoder
Initial value:= {
.name = "libcodec2",
.capabilities = 0,
.supported_samplerates = (const int[]){ 8000, 0 },
}
Definition at line 199 of file libcodec2.c.
static int libcodec2_encode(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
static av_cold int init(AVCodecContext *avctx)
#define AV_CH_LAYOUT_MONO
static const AVClass libcodec2_dec_class
static av_cold int libcodec2_init_decoder(AVCodecContext *avctx)
static const AVOption options[]
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
#define AV_OPT_FLAG_AUDIO_PARAM
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static av_cold int libcodec2_close(AVCodecContext *avctx)
static const AVClass libcodec2_enc_class
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define CODEC2_AVOPTIONS(desc, classname, min_val, default_val, option_flags)
AVSampleFormat
Audio sample formats.
@ AV_SAMPLE_FMT_S16
signed 16 bits
static int libcodec2_decode(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt)
static av_cold int libcodec2_init_encoder(AVCodecContext *avctx)