FFmpeg
|
#include <stdio.h>
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "oggdec.h"
#include "avformat.h"
#include "internal.h"
#include "vorbiscomment.h"
Go to the source code of this file.
Macros | |
#define | MAX_PAGE_SIZE 65307 |
#define | DECODER_BUFFER_SIZE MAX_PAGE_SIZE |
Functions | |
static int64_t | ogg_calc_pts (AVFormatContext *s, int idx, int64_t *dts) |
static int | ogg_new_stream (AVFormatContext *s, uint32_t serial) |
static int | ogg_save (AVFormatContext *s) |
static int | ogg_restore (AVFormatContext *s, int discard) |
static int | ogg_reset (AVFormatContext *s) |
static struct ogg_codec * | ogg_find_codec (uint8_t *buf, int size) |
static int | ogg_replace_stream (AVFormatContext *s, uint32_t serial, int nsegs) |
Replace the current stream with a new one. | |
static int | ogg_new_buf (struct ogg *ogg, int idx) |
static int | data_packets_seen (const struct ogg *ogg) |
static int | ogg_read_page (AVFormatContext *s, int *sid) |
static int | ogg_packet (AVFormatContext *s, int *sid, int *dstart, int *dsize, int64_t *fpos) |
find the next Ogg packet | |
static int | ogg_get_length (AVFormatContext *s) |
static int | ogg_read_close (AVFormatContext *s) |
static int | ogg_read_header (AVFormatContext *s) |
static void | ogg_validate_keyframe (AVFormatContext *s, int idx, int pstart, int psize) |
static int | ogg_read_packet (AVFormatContext *s, AVPacket *pkt) |
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 MAX_PAGE_SIZE 65307 |
Definition at line 39 of file oggdec.c.
Referenced by ogg_get_length(), and ogg_read_page().
#define DECODER_BUFFER_SIZE MAX_PAGE_SIZE |
Definition at line 40 of file oggdec.c.
Referenced by ogg_new_stream().
|
static |
Definition at line 699 of file oggdec.c.
Referenced by ogg_get_length(), ogg_read_packet(), and ogg_read_timestamp().
|
static |
Definition at line 231 of file oggdec.c.
Referenced by ogg_read_page(), and ogg_replace_stream().
|
static |
Definition at line 65 of file oggdec.c.
Referenced by ogg_get_length().
|
static |
Definition at line 90 of file oggdec.c.
Referenced by ogg_get_length().
|
static |
Definition at line 125 of file oggdec.c.
Referenced by ogg_get_length(), ogg_read_packet(), ogg_read_seek(), and ogg_read_timestamp().
Definition at line 159 of file oggdec.c.
Referenced by ogg_packet(), and ogg_replace_stream().
|
static |
Replace the current stream with a new one.
This is a typical webradio situation where a new audio stream spawn (identified with a new serial) and must replace the previous one (track switch).
Definition at line 176 of file oggdec.c.
Referenced by ogg_read_page().
|
static |
Definition at line 273 of file oggdec.c.
Referenced by ogg_read_page().
|
static |
Definition at line 291 of file oggdec.c.
Referenced by ogg_read_page().
|
static |
Definition at line 301 of file oggdec.c.
Referenced by ogg_get_length(), and ogg_packet().
|
static |
find the next Ogg packet
*sid | is set to the stream for the packet or -1 if there is no matching stream, in that case assume all other return values to be uninitialized. |
Definition at line 439 of file oggdec.c.
Referenced by encode_frame(), encode_init(), libvorbis_encode_frame(), libvorbis_encode_init(), ogg_get_length(), ogg_read_header(), ogg_read_packet(), ogg_read_timestamp(), and oggvorbis_decode_frame().
|
static |
Definition at line 574 of file oggdec.c.
Referenced by ogg_read_header().
|
static |
Definition at line 636 of file oggdec.c.
Referenced by ogg_read_header().
|
static |
|
static |
Definition at line 729 of file oggdec.c.
Referenced by ogg_read_packet(), and ogg_read_timestamp().
|
static |
|
static |
|
static |
|
static |
|
static |
AVInputFormat ff_ogg_demuxer |