#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.
Data Structures | |
struct | OggVorbisEncContext |
Defines | |
#define | OGGVORBIS_FRAME_SIZE 64 |
#define | BUFFER_SIZE (1024 * 64) |
Functions | |
static int | vorbis_error_to_averror (int ov_err) |
static av_cold int | oggvorbis_init_encoder (vorbis_info *vi, AVCodecContext *avctx) |
static int | xiph_len (int l) |
static av_cold int | oggvorbis_encode_close (AVCodecContext *avctx) |
static av_cold int | oggvorbis_encode_init (AVCodecContext *avctx) |
static int | oggvorbis_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
Variables | |
static const AVOption | options [] |
static const AVCodecDefault | defaults [] |
class { | |
class_name = "libvorbis" | |
item_name = av_default_item_name | |
option = options | |
version = LIBAVUTIL_VERSION_INT | |
}; | |
AVCodec | ff_libvorbis_encoder |
#define BUFFER_SIZE (1024 * 64) |
Definition at line 40 of file libvorbisenc.c.
#define OGGVORBIS_FRAME_SIZE 64 |
static av_cold int oggvorbis_encode_close | ( | AVCodecContext * | avctx | ) | [static] |
static int oggvorbis_encode_frame | ( | AVCodecContext * | avctx, | |
AVPacket * | avpkt, | |||
const AVFrame * | frame, | |||
int * | got_packet_ptr | |||
) | [static] |
Definition at line 284 of file libvorbisenc.c.
static av_cold int oggvorbis_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 198 of file libvorbisenc.c.
static av_cold int oggvorbis_init_encoder | ( | vorbis_info * | vi, | |
AVCodecContext * | avctx | |||
) | [static] |
Definition at line 74 of file libvorbisenc.c.
Referenced by oggvorbis_encode_frame(), oggvorbis_encode_init(), and oggvorbis_init_encoder().
const { ... } [static] |
class_name = "libvorbis" |
Definition at line 68 of file libvorbisenc.c.
const AVCodecDefault defaults[] [static] |
Initial value:
{ .name = "libvorbis", .type = AVMEDIA_TYPE_AUDIO, .id = AV_CODEC_ID_VORBIS, .priv_data_size = sizeof(OggVorbisEncContext), .init = oggvorbis_encode_init, .encode2 = oggvorbis_encode_frame, .close = oggvorbis_encode_close, .capabilities = CODEC_CAP_DELAY, .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("libvorbis"), .priv_class = &class, .defaults = defaults, }
Definition at line 375 of file libvorbisenc.c.
item_name = av_default_item_name |
Definition at line 69 of file libvorbisenc.c.
Definition at line 70 of file libvorbisenc.c.
Initial value:
{ { "iblock", "Sets the impulse block bias", 0x42, AV_OPT_TYPE_DOUBLE, { .dbl = 0 }, -15, 0, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM }, { NULL } }
Definition at line 57 of file libvorbisenc.c.
Definition at line 71 of file libvorbisenc.c.