#include <vorbis/vorbisenc.h>
#include "avcodec.h"
#include "bytestream.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 av_cold int | oggvorbis_init_encoder (vorbis_info *vi, AVCodecContext *avccontext) |
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 | |
AVCodec | libvorbis_encoder |
Definition in file libvorbis.c.
#define BUFFER_SIZE (1024*64) |
Definition at line 37 of file libvorbis.c.
#define OGGVORBIS_FRAME_SIZE 64 |
Definition at line 35 of file libvorbis.c.
Referenced by oggvorbis_encode_frame(), and oggvorbis_encode_init().
static av_cold int oggvorbis_encode_close | ( | AVCodecContext * | avccontext | ) | [static] |
Definition at line 201 of file libvorbis.c.
static int oggvorbis_encode_frame | ( | AVCodecContext * | avccontext, | |
unsigned char * | packets, | |||
int | buf_size, | |||
void * | data | |||
) | [static] |
Definition at line 135 of file libvorbis.c.
static av_cold int oggvorbis_encode_init | ( | AVCodecContext * | avccontext | ) | [static] |
Definition at line 85 of file libvorbis.c.
static av_cold int oggvorbis_init_encoder | ( | vorbis_info * | vi, | |
AVCodecContext * | avccontext | |||
) | [static] |
Initial value:
{ "libvorbis", AVMEDIA_TYPE_AUDIO, CODEC_ID_VORBIS, sizeof(OggVorbisContext), oggvorbis_encode_init, oggvorbis_encode_frame, oggvorbis_encode_close, .capabilities= CODEC_CAP_DELAY, .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("libvorbis Vorbis"), }
Definition at line 218 of file libvorbis.c.