#include <codec2/codec2.h>
#include "libavutil/channel_layout.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "libavutil/opt.h"
#include "codec_internal.h"
#include "decode.h"
#include "encode.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 45 of file libcodec2.c.
◆ ff_libcodec2_decoder
Initial value:= {
.p.name = "libcodec2",
.p.supported_samplerates = (const int[]){ 8000, 0 },
}
Definition at line 179 of file libcodec2.c.
◆ ff_libcodec2_encoder
Initial value:= {
.p.name = "libcodec2",
.p.supported_samplerates = (const int[]){ 8000, 0 },
}
Definition at line 195 of file libcodec2.c.
static int libcodec2_encode(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
#define FF_CODEC_ENCODE_CB(func)
#define AV_OPT_FLAG_AUDIO_PARAM
static av_cold int libcodec2_init_decoder(AVCodecContext *avctx)
static const AVOption options[]
#define FF_CODEC_DECODE_CB(func)
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
#define CODEC_LONG_NAME(str)
#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_OPT_FLAG_ENCODING_PARAM
A generic parameter which can be set by the user for muxing or encoding.
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
An AVChannelLayout holds information about the channel layout of audio data.
#define CODEC2_AVOPTIONS(desc, classname, min_val, default_val, option_flags)
AVSampleFormat
Audio sample formats.
@ AV_SAMPLE_FMT_S16
signed 16 bits
static av_cold int libcodec2_init_encoder(AVCodecContext *avctx)
#define AV_CHANNEL_LAYOUT_MONO
static int libcodec2_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *pkt)