#include <stdio.h>
#include "oggdec.h"
#include "avformat.h"
#include "vorbiscomment.h"
Go to the source code of this file.
Defines | |
#define | MAX_PAGE_SIZE 65307 |
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård. | |
#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_codec * | ogg_find_codec (uint8_t *buf, int size) |
static int | ogg_new_stream (AVFormatContext *s, uint32_t serial) |
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 | ogg_demuxer |
#define MAX_PAGE_SIZE 65307 |
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition at line 38 of file oggdec.c.
Referenced by ogg_get_length(), and ogg_read_page().
static int64_t ogg_calc_pts | ( | AVFormatContext * | s, | |
int | idx, | |||
int64_t * | dts | |||
) | [static] |
Definition at line 493 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 138 of file oggdec.c.
Referenced by ogg_packet().
static int ogg_get_headers | ( | AVFormatContext * | s | ) | [static] |
Definition at line 417 of file oggdec.c.
Referenced by ogg_read_header().
static int ogg_get_length | ( | AVFormatContext * | s | ) | [static] |
Definition at line 434 of file oggdec.c.
Referenced by ogg_read_header().
static int ogg_new_buf | ( | struct ogg * | ogg, | |
int | idx | |||
) | [static] |
Definition at line 178 of file oggdec.c.
Referenced by ogg_read_page().
static int ogg_new_stream | ( | AVFormatContext * | s, | |
uint32_t | serial | |||
) | [static] |
Definition at line 151 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] |
Definition at line 301 of file oggdec.c.
Referenced by encode_frame(), encode_init(), ogg_get_headers(), ogg_read_packet(), ogg_read_timestamp(), oggvorbis_encode_frame(), and oggvorbis_encode_init().
static int ogg_probe | ( | AVProbeData * | p | ) | [static] |
static int ogg_read_close | ( | AVFormatContext * | s | ) | [static] |
static int ogg_read_header | ( | AVFormatContext * | s, | |
AVFormatParameters * | ap | |||
) | [static] |
static int ogg_read_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int ogg_read_page | ( | AVFormatContext * | s, | |
int * | str | |||
) | [static] |
Definition at line 195 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] |
static int64_t ogg_read_timestamp | ( | AVFormatContext * | s, | |
int | stream_index, | |||
int64_t * | pos_arg, | |||
int64_t | pos_limit | |||
) | [static] |
static int ogg_reset | ( | struct ogg * | ogg | ) | [static] |
Definition at line 113 of file oggdec.c.
Referenced by ogg_read_timestamp().
static int ogg_restore | ( | AVFormatContext * | s, | |
int | discard | |||
) | [static] |
Definition at line 84 of file oggdec.c.
Referenced by ogg_get_length().
static int ogg_save | ( | AVFormatContext * | s | ) | [static] |
Definition at line 59 of file oggdec.c.
Referenced by ogg_get_length().
struct ogg_codec* const ogg_codecs[] [static] |
{ "ogg", NULL_IF_CONFIG_SMALL("Ogg"), sizeof (struct ogg), ogg_probe, ogg_read_header, ogg_read_packet, ogg_read_close, ogg_read_seek, ogg_read_timestamp, .extensions = "ogg", .metadata_conv = ff_vorbiscomment_metadata_conv, .flags = AVFMT_GENERIC_INDEX, }