#include <vorbis/vorbisenc.h>
#include "libavutil/avassert.h"
#include "libavutil/fifo.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "audio_frame_queue.h"
#include "internal.h"
#include "vorbis.h"
#include "vorbis_parser.h"
Go to the source code of this file.
◆ LIBVORBIS_FRAME_SIZE
#define LIBVORBIS_FRAME_SIZE 64 |
◆ BUFFER_SIZE
#define BUFFER_SIZE (1024 * 64) |
◆ vorbis_error_to_averror()
static int vorbis_error_to_averror |
( |
int |
ov_err | ) |
|
|
static |
◆ libvorbis_setup()
◆ xiph_len()
◆ libvorbis_encode_close()
◆ libvorbis_encode_init()
◆ libvorbis_encode_frame()
◆ 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
Definition at line 56 of file libvorbisenc.c.
◆ defaults
◆ vorbis_class
Initial value:= {
.class_name = "libvorbis",
}
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
static const AVOption options[]
Definition at line 66 of file libvorbisenc.c.
◆ vorbis_encoding_channel_layout_offsets
const uint8_t vorbis_encoding_channel_layout_offsets[8][8] |
|
static |
Initial value:= {
{ 0 },
{ 0, 1 },
{ 0, 2, 1 },
{ 0, 1, 2, 3 },
{ 0, 2, 1, 3, 4 },
{ 0, 2, 1, 4, 5, 3 },
{ 0, 2, 1, 5, 6, 4, 3 },
{ 0, 2, 1, 6, 7, 4, 5, 3 },
}
Definition at line 73 of file libvorbisenc.c.
Referenced by libvorbis_encode_frame().
◆ ff_libvorbis_encoder
Initial value:= {
.name = "libvorbis",
.wrapper_name = "libvorbis",
}
static enum AVSampleFormat sample_fmts[]
static av_cold int init(AVCodecContext *avctx)
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
#define AV_CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
AVSampleFormat
Audio sample formats.
@ AV_SAMPLE_FMT_FLTP
float, planar
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static av_cold int libvorbis_encode_close(AVCodecContext *avctx)
static const AVCodecDefault defaults[]
static int libvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
static const AVClass vorbis_class
static av_cold int libvorbis_encode_init(AVCodecContext *avctx)
Definition at line 377 of file libvorbisenc.c.