libavformat/oggenc.c File Reference
#include "avformat.h"
#include "crc.h"
#include "xiph.h"
#include "bytestream.h"
Go to the source code of this file.
|
Data Structures |
struct | OGGStreamContext |
Functions |
static void | ogg_update_checksum (AVFormatContext *s, offset_t crc_offset) |
static int | ogg_write_page (AVFormatContext *s, const uint8_t *data, int size, int64_t granule, int stream_index, int flags) |
static int | ogg_build_flac_headers (const uint8_t *extradata, int extradata_size, OGGStreamContext *oggstream, int bitexact) |
static int | ogg_write_header (AVFormatContext *s) |
static int | ogg_write_packet (AVFormatContext *s, AVPacket *pkt) |
int | ogg_interleave_per_granule (AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush) |
static int | ogg_write_trailer (AVFormatContext *s) |
Variables |
AVOutputFormat | ogg_muxer |
Function Documentation
static int ogg_build_flac_headers |
( |
const uint8_t * |
extradata, |
|
|
int |
extradata_size, |
|
|
OGGStreamContext * |
oggstream, |
|
|
int |
bitexact | |
|
) |
| | [static] |
KFGSHIFT is the width of the less significant section of the granule position The less significant section is the frame count since the last keyframe
Definition at line 114 of file oggenc.c.
static int ogg_write_page |
( |
AVFormatContext * |
s, |
|
|
const uint8_t * |
data, |
|
|
int |
size, |
|
|
int64_t |
granule, |
|
|
int |
stream_index, |
|
|
int |
flags | |
|
) |
| | [static] |
Variable Documentation
Initial value:
{
"ogg",
"Ogg format",
"application/ogg",
"ogg",
0,
CODEC_ID_FLAC,
CODEC_ID_THEORA,
ogg_write_header,
ogg_write_packet,
ogg_write_trailer,
.interleave_packet = ogg_interleave_per_granule,
}
Definition at line 280 of file oggenc.c.