libavcodec/libvorbis.c File Reference

Ogg Vorbis codec support via libvorbisenc. More...

#include <vorbis/vorbisenc.h>
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bytestream.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 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 []
class {
      libvorbis
      av_default_item_name
      options
}; 
AVCodec ff_libvorbis_encoder


Detailed Description

Ogg Vorbis codec support via libvorbisenc.

Author:
Mark Hills <mark@pogo.org.uk>

Definition in file libvorbis.c.


Define Documentation

#define BUFFER_SIZE   (1024*64)

Definition at line 40 of file libvorbis.c.

#define OGGVORBIS_FRAME_SIZE   64

Definition at line 38 of file libvorbis.c.

Referenced by oggvorbis_encode_init().


Function Documentation

static av_cold int oggvorbis_encode_close ( AVCodecContext avccontext  )  [static]

Definition at line 259 of file libvorbis.c.

static int oggvorbis_encode_frame ( AVCodecContext avccontext,
unsigned char *  packets,
int  buf_size,
void *  data 
) [static]

Definition at line 186 of file libvorbis.c.

static av_cold int oggvorbis_encode_init ( AVCodecContext avccontext  )  [static]

Definition at line 135 of file libvorbis.c.

static av_cold int oggvorbis_init_encoder ( vorbis_info *  vi,
AVCodecContext avccontext 
) [static]

Definition at line 64 of file libvorbis.c.

Referenced by oggvorbis_encode_init().

static int xiph_len ( int  l  )  [static]

Definition at line 133 of file libvorbis.c.

Referenced by oggvorbis_encode_init().


Variable Documentation

const { ... } [static]

av_default_item_name

Definition at line 62 of file libvorbis.c.

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 AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
    .long_name= NULL_IF_CONFIG_SMALL("libvorbis Vorbis"),
    .priv_class= &class,
}

Definition at line 276 of file libvorbis.c.

Definition at line 62 of file libvorbis.c.

Referenced by avcodec_register_all().

options (  )  [static]

Initial value:

{
{"iblock", "Sets the impulse block bias", 0x42, FF_OPT_TYPE_DOUBLE, {.dbl = 0}, -15, 0, AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_ENCODING_PARAM},
{NULL}
}

Definition at line 58 of file libvorbis.c.


Generated on Fri Oct 26 02:38:17 2012 for FFmpeg by  doxygen 1.5.8