libavcodec/libtheoraenc.c File Reference

#include "avcodec.h"
#include "log.h"
#include <theora/theora.h>

Go to the source code of this file.

Data Structures

struct  TheoraContext

Functions

static int concatenate_packet (unsigned int *offset, AVCodecContext *avc_context, const ogg_packet *packet)
static int encode_init (AVCodecContext *avc_context)
static int encode_frame (AVCodecContext *avc_context, uint8_t *outbuf, int buf_size, void *data)
static int encode_close (AVCodecContext *avc_context)

Variables

static enum PixelFormat supported_pixel_formats [] = { PIX_FMT_YUV420P, -1 }
AVCodec libtheora_encoder


Function Documentation

static int concatenate_packet ( unsigned int *  offset,
AVCodecContext avc_context,
const ogg_packet *  packet 
) [static]

Concatenates an ogg_packet into the extradata.

Definition at line 47 of file libtheoraenc.c.

Referenced by encode_init().

static int encode_close ( AVCodecContext avc_context  )  [static]

Definition at line 242 of file libtheoraenc.c.

static int encode_frame ( AVCodecContext avc_context,
uint8_t outbuf,
int  buf_size,
void *  data 
) [static]

Definition at line 168 of file libtheoraenc.c.

static int encode_init ( AVCodecContext avc_context  )  [static]

Definition at line 79 of file libtheoraenc.c.


Variable Documentation

Initial value:

{
    .name = "libtheora",
    .type = CODEC_TYPE_VIDEO,
    .id = CODEC_ID_THEORA,
    .priv_data_size = sizeof(TheoraContext),
    .init = encode_init,
    .close = encode_close,
    .encode = encode_frame,
    .pix_fmts = supported_pixel_formats,
}
AVCodec struct exposed to libavcodec

Definition at line 270 of file libtheoraenc.c.

enum PixelFormat supported_pixel_formats[] = { PIX_FMT_YUV420P, -1 } [static]

Definition at line 267 of file libtheoraenc.c.


Generated on Fri Apr 23 15:11:59 2010 for ffmpeg by  doxygen 1.5.6