#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
Initial value:= {
}
#define AV_OPT_FLAG_AUDIO_PARAM
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
#define AVPRIV_CODEC2_AVOPTIONS(desc, classname, min_val, default_val, option_flags)
Definition at line 34 of file libcodec2.c.
◆ libcodec2_enc_class
Initial value:= {
.class_name = "libcodec2 encoder",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption options[]
Definition at line 41 of file libcodec2.c.
◆ libcodec2_dec_class
Initial value:= {
.class_name = "libcodec2 decoder",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
Definition at line 48 of file libcodec2.c.
◆ ff_libcodec2_decoder
Initial value:= {
.name = "libcodec2",
.capabilities = 0,
.supported_samplerates = (const int[]){ 8000, 0 },
}
static av_cold int init(AVCodecContext *avctx)
static const AVClass libcodec2_dec_class
static int libcodec2_decode(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt)
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
static av_cold int libcodec2_init_decoder(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVSampleFormat
Audio sample formats.
static av_cold int libcodec2_close(AVCodecContext *avctx)
#define AV_CH_LAYOUT_MONO
Definition at line 183 of file libcodec2.c.
◆ ff_libcodec2_encoder
Initial value:= {
.name = "libcodec2",
.capabilities = 0,
.supported_samplerates = (const int[]){ 8000, 0 },
}
static int libcodec2_encode(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
static av_cold int init(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVSampleFormat
Audio sample formats.
static av_cold int libcodec2_close(AVCodecContext *avctx)
static av_cold int libcodec2_init_encoder(AVCodecContext *avctx)
static const AVClass libcodec2_enc_class
#define AV_CH_LAYOUT_MONO
Definition at line 199 of file libcodec2.c.