#include <vorbis/vorbisenc.h>
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "vorbis.h"
#include "libavutil/mathematics.h"
#include <assert.h>
Go to the source code of this file.
Data Structures | |
struct | OggVorbisContext |
Defines | |
#define | OGGVORBIS_FRAME_SIZE 64 |
#define | BUFFER_SIZE (1024 * 64) |
Functions | |
static const char * | error (int oggerr, int *averr) |
static av_cold int | oggvorbis_init_encoder (vorbis_info *vi, AVCodecContext *avccontext) |
static int | xiph_len (int l) |
static av_cold int | oggvorbis_encode_init (AVCodecContext *avccontext) |
static int | oggvorbis_encode_frame (AVCodecContext *avccontext, unsigned char *packets, int buf_size, void *data) |
static av_cold int | oggvorbis_encode_close (AVCodecContext *avccontext) |
Variables | |
static const AVOption | options [] |
static const AVCodecDefault | defaults [] |
class { | |
libvorbis | |
av_default_item_name | |
options | |
}; | |
AVCodec | ff_libvorbis_encoder |
Definition in file libvorbis.c.
#define BUFFER_SIZE (1024 * 64) |
Definition at line 41 of file libvorbis.c.
#define OGGVORBIS_FRAME_SIZE 64 |
static const char* error | ( | int | oggerr, | |
int * | averr | |||
) | [static] |
Definition at line 71 of file libvorbis.c.
Referenced by adpcm_encode_init(), al_get_error(), av_resample_init(), avformat_find_stream_info(), check_diff(), check_specific_config(), decode_cell(), dering_TMPL(), dshow_add_device(), dshow_open_device(), dshow_read_header(), encode_superframe(), eval_error_cell(), ff_er_frame_end(), ff_h263_encode_picture_header(), ff_id3v2_parse(), ff_intrax8_decode_picture(), frame_thread_init(), get_number(), guess_dc(), guess_mv(), initFilter(), is_intra_more_likely(), load_glyph(), log_encoder_error(), main(), mov_write_header(), mpeg1_encode_sequence_header(), parse_number_or_die(), parse_rule(), print_report(), quantize(), quantize_lpc_coefs(), ra144_encode_subblock(), read_access_unit(), read_gab2_sub(), read_header(), read_packet(), rpl_read_header(), swri_resample_init(), transcode_init(), udp_resolve_host(), vorbis_encode_init(), vorbis_parse_setup_hdr_codebooks(), vp8_decode(), vp8_init(), and wv_get_value().
static av_cold int oggvorbis_encode_close | ( | AVCodecContext * | avccontext | ) | [static] |
Definition at line 291 of file libvorbis.c.
static int oggvorbis_encode_frame | ( | AVCodecContext * | avccontext, | |
unsigned char * | packets, | |||
int | buf_size, | |||
void * | data | |||
) | [static] |
Definition at line 219 of file libvorbis.c.
static av_cold int oggvorbis_encode_init | ( | AVCodecContext * | avccontext | ) | [static] |
Definition at line 164 of file libvorbis.c.
static av_cold int oggvorbis_init_encoder | ( | vorbis_info * | vi, | |
AVCodecContext * | avccontext | |||
) | [static] |
static int xiph_len | ( | int | l | ) | [static] |
const { ... } [static] |
av_default_item_name |
Definition at line 69 of file libvorbis.c.
const AVCodecDefault defaults[] [static] |
Initial value:
{ .name = "libvorbis", .type = AVMEDIA_TYPE_AUDIO, .id = CODEC_ID_VORBIS, .priv_data_size = sizeof(OggVorbisContext), .init = oggvorbis_encode_init, .encode = oggvorbis_encode_frame, .close = oggvorbis_encode_close, .capabilities = CODEC_CAP_DELAY, .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("libvorbis Vorbis"), .priv_class = &class, .defaults = defaults, }
Definition at line 308 of file libvorbis.c.
options [static] |
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 59 of file libvorbis.c.