libavformat/oggdec.c File Reference

#include <stdio.h>
#include "oggdec.h"
#include "avformat.h"
#include "internal.h"
#include "vorbiscomment.h"

Go to the source code of this file.

Defines

#define MAX_PAGE_SIZE   65307
#define DECODER_BUFFER_SIZE   MAX_PAGE_SIZE

Functions

static int ogg_save (AVFormatContext *s)
static int ogg_restore (AVFormatContext *s, int discard)
static int ogg_reset (struct ogg *ogg)
static struct ogg_codecogg_find_codec (uint8_t *buf, int size)
static int ogg_new_stream (AVFormatContext *s, uint32_t serial, int new_avstream)
static int ogg_new_buf (struct ogg *ogg, int idx)
static int ogg_read_page (AVFormatContext *s, int *str)
static int ogg_packet (AVFormatContext *s, int *str, int *dstart, int *dsize, int64_t *fpos)
static int ogg_get_headers (AVFormatContext *s)
static int ogg_get_length (AVFormatContext *s)
static int ogg_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int64_t ogg_calc_pts (AVFormatContext *s, int idx, int64_t *dts)
static int ogg_read_packet (AVFormatContext *s, AVPacket *pkt)
static int ogg_read_close (AVFormatContext *s)
static int64_t ogg_read_timestamp (AVFormatContext *s, int stream_index, int64_t *pos_arg, int64_t pos_limit)
static int ogg_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
static int ogg_probe (AVProbeData *p)

Variables

static struct ogg_codec *const ogg_codecs []
AVInputFormat ff_ogg_demuxer


Define Documentation

#define DECODER_BUFFER_SIZE   MAX_PAGE_SIZE

Definition at line 38 of file oggdec.c.

Referenced by ogg_new_stream().

#define MAX_PAGE_SIZE   65307

Definition at line 37 of file oggdec.c.

Referenced by ogg_get_length(), and ogg_read_page().


Function Documentation

static int64_t ogg_calc_pts ( AVFormatContext s,
int  idx,
int64_t *  dts 
) [static]

Definition at line 542 of file oggdec.c.

Referenced by ogg_read_packet(), and ogg_read_timestamp().

static struct ogg_codec* ogg_find_codec ( uint8_t *  buf,
int  size 
) [static, read]

Definition at line 144 of file oggdec.c.

Referenced by ogg_packet().

static int ogg_get_headers ( AVFormatContext s  )  [static]

Definition at line 444 of file oggdec.c.

Referenced by ogg_read_header().

static int ogg_get_length ( AVFormatContext s  )  [static]

Definition at line 460 of file oggdec.c.

Referenced by ogg_read_header().

static int ogg_new_buf ( struct ogg ogg,
int  idx 
) [static]

Definition at line 185 of file oggdec.c.

Referenced by ogg_read_page().

static int ogg_new_stream ( AVFormatContext s,
uint32_t  serial,
int  new_avstream 
) [static]

Definition at line 156 of file oggdec.c.

Referenced by ogg_read_page().

static int ogg_packet ( AVFormatContext s,
int *  str,
int *  dstart,
int *  dsize,
int64_t *  fpos 
) [static]

static int ogg_probe ( AVProbeData p  )  [static]

Definition at line 671 of file oggdec.c.

static int ogg_read_close ( AVFormatContext s  )  [static]

Definition at line 614 of file oggdec.c.

static int ogg_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 521 of file oggdec.c.

static int ogg_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 572 of file oggdec.c.

static int ogg_read_page ( AVFormatContext s,
int *  str 
) [static]

Definition at line 201 of file oggdec.c.

Referenced by ogg_get_length(), and ogg_packet().

static int ogg_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
) [static]

Definition at line 651 of file oggdec.c.

static int64_t ogg_read_timestamp ( AVFormatContext s,
int  stream_index,
int64_t *  pos_arg,
int64_t  pos_limit 
) [static]

Definition at line 627 of file oggdec.c.

static int ogg_reset ( struct ogg ogg  )  [static]

Definition at line 120 of file oggdec.c.

Referenced by ogg_read_timestamp().

static int ogg_restore ( AVFormatContext s,
int  discard 
) [static]

Definition at line 82 of file oggdec.c.

Referenced by ogg_get_length().

static int ogg_save ( AVFormatContext s  )  [static]

Definition at line 58 of file oggdec.c.

Referenced by ogg_get_length().


Variable Documentation

Initial value:

 {
    .name           = "ogg",
    .long_name      = NULL_IF_CONFIG_SMALL("Ogg"),
    .priv_data_size = sizeof(struct ogg),
    .read_probe     = ogg_probe,
    .read_header    = ogg_read_header,
    .read_packet    = ogg_read_packet,
    .read_close     = ogg_read_close,
    .read_seek      = ogg_read_seek,
    .read_timestamp = ogg_read_timestamp,
    .extensions     = "ogg",
    .flags          = AVFMT_GENERIC_INDEX,
}

Definition at line 678 of file oggdec.c.

struct ogg_codec* const ogg_codecs[] [static]


Generated on Fri Oct 26 02:43:52 2012 for FFmpeg by  doxygen 1.5.8