#include "libavutil/crc.h"
#include "libavcodec/xiph.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/flac.h"
#include "avformat.h"
#include "internal.h"
#include "vorbiscomment.h"
Go to the source code of this file.
#define SPEEX_HEADER_SIZE 80 |
Definition at line 251 of file oggenc.c.
Referenced by ogg_build_speex_headers().
typedef struct OGGPageList OGGPageList |
static int ogg_buffer_data | ( | AVFormatContext * | s, | |
AVStream * | st, | |||
uint8_t * | data, | |||
unsigned | size, | |||
int64_t | granule | |||
) | [static] |
Definition at line 155 of file oggenc.c.
Referenced by ogg_write_header(), and ogg_write_packet().
static int ogg_buffer_page | ( | AVFormatContext * | s, | |
OGGStreamContext * | oggstream | |||
) | [static] |
Definition at line 131 of file oggenc.c.
Referenced by ogg_buffer_data(), ogg_write_header(), and ogg_write_trailer().
static int ogg_build_flac_headers | ( | AVCodecContext * | avctx, | |
OGGStreamContext * | oggstream, | |||
int | bitexact, | |||
AVMetadata * | m | |||
) | [static] |
Definition at line 213 of file oggenc.c.
Referenced by ogg_write_header().
static int ogg_build_speex_headers | ( | AVCodecContext * | avctx, | |
OGGStreamContext * | oggstream, | |||
int | bitexact, | |||
AVMetadata * | m | |||
) | [static] |
Definition at line 253 of file oggenc.c.
Referenced by ogg_write_header().
static int ogg_compare_granule | ( | AVFormatContext * | s, | |
OGGPage * | next, | |||
OGGPage * | page | |||
) | [static] |
Definition at line 106 of file oggenc.c.
Referenced by ogg_buffer_page().
static int64_t ogg_granule_to_timestamp | ( | OGGStreamContext * | oggstream, | |
OGGPage * | page | |||
) | [static] |
Definition at line 97 of file oggenc.c.
Referenced by ogg_compare_granule().
static int ogg_reset_cur_page | ( | OGGStreamContext * | oggstream | ) | [static] |
Definition at line 122 of file oggenc.c.
Referenced by ogg_buffer_page().
static void ogg_update_checksum | ( | AVFormatContext * | s, | |
int64_t | crc_offset | |||
) | [static] |
Definition at line 65 of file oggenc.c.
Referenced by ogg_write_page().
static int ogg_write_header | ( | AVFormatContext * | s | ) | [static] |
static int ogg_write_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static void ogg_write_page | ( | AVFormatContext * | s, | |
OGGPage * | page, | |||
int | extra_flags | |||
) | [static] |
Definition at line 74 of file oggenc.c.
Referenced by ogg_write_pages().
static void ogg_write_pages | ( | AVFormatContext * | s, | |
int | flush | |||
) | [static] |
Definition at line 362 of file oggenc.c.
Referenced by ogg_write_packet(), and ogg_write_trailer().
static int ogg_write_trailer | ( | AVFormatContext * | s | ) | [static] |
static uint8_t* ogg_write_vorbiscomment | ( | int | offset, | |
int | bitexact, | |||
int * | header_len, | |||
AVMetadata * | m | |||
) | [static] |
Definition at line 192 of file oggenc.c.
Referenced by ogg_build_flac_headers(), and ogg_build_speex_headers().
{ "ogg", NULL_IF_CONFIG_SMALL("Ogg"), "application/ogg", "ogg,ogv,spx", sizeof(OGGContext), CODEC_ID_FLAC, CODEC_ID_THEORA, ogg_write_header, ogg_write_packet, ogg_write_trailer, .metadata_conv = ff_vorbiscomment_metadata_conv, }