#include <codec2/codec2.h>
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "libavutil/opt.h"
#include "encode.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 43 of file libcodec2.c.
◆ ff_libcodec2_decoder
Initial value:= {
.name = "libcodec2",
.supported_samplerates = (const int[]){ 8000, 0 },
}
Definition at line 179 of file libcodec2.c.
◆ ff_libcodec2_encoder
Initial value:= {
.name = "libcodec2",
.supported_samplerates = (const int[]){ 8000, 0 },
}
Definition at line 194 of file libcodec2.c.
static int libcodec2_encode(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
#define AV_CH_LAYOUT_MONO
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 AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#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)