#include "avcodec.h"
Go to the source code of this file.
Data Structures | |
struct | FLACStreaminfo |
Defines | |
#define | FLAC_STREAMINFO_SIZE 34 |
#define | FLACSTREAMINFO |
Data needed from the Streaminfo header for use by the raw FLAC demuxer and/or the FLAC decoder. | |
Enumerations | |
enum | { FLAC_METADATA_TYPE_STREAMINFO = 0, FLAC_METADATA_TYPE_PADDING, FLAC_METADATA_TYPE_APPLICATION, FLAC_METADATA_TYPE_SEEKTABLE, FLAC_METADATA_TYPE_VORBIS_COMMENT, FLAC_METADATA_TYPE_CUESHEET, FLAC_METADATA_TYPE_PICTURE, FLAC_METADATA_TYPE_INVALID = 127 } |
enum | FLACExtradataFormat { FLAC_EXTRADATA_FORMAT_STREAMINFO = 0, FLAC_EXTRADATA_FORMAT_FULL_HEADER = 1 } |
Functions | |
void | ff_flac_parse_streaminfo (AVCodecContext *avctx, struct FLACStreaminfo *s, const uint8_t *buffer) |
Parse the Streaminfo metadata block. | |
int | ff_flac_is_extradata_valid (AVCodecContext *avctx, enum FLACExtradataFormat *format, uint8_t **streaminfo_start) |
Validate the FLAC extradata. |
Definition in file flac.h.
#define FLAC_STREAMINFO_SIZE 34 |
Definition at line 32 of file flac.h.
Referenced by ff_flac_is_extradata_valid(), ff_flac_parse_streaminfo(), flac_encode_init(), flac_header(), flac_write_trailer(), ogg_build_flac_headers(), and write_streaminfo().
#define FLACSTREAMINFO |
anonymous enum |
enum FLACExtradataFormat |
int ff_flac_is_extradata_valid | ( | AVCodecContext * | avctx, | |
enum FLACExtradataFormat * | format, | |||
uint8_t ** | streaminfo_start | |||
) |
Validate the FLAC extradata.
[in] | avctx | codec context containing the extradata. |
[out] | format | extradata format. |
[out] | streaminfo_start | pointer to start of 34-byte STREAMINFO data. |
Definition at line 100 of file flacdec.c.
Referenced by ff_flac_write_header(), flac_decode_init(), flac_write_trailer(), and ogg_build_flac_headers().
void ff_flac_parse_streaminfo | ( | AVCodecContext * | avctx, | |
struct FLACStreaminfo * | s, | |||
const uint8_t * | buffer | |||
) |
Parse the Streaminfo metadata block.
[out] | avctx | codec context to set basic stream parameters |
[out] | s | where parsed information is stored |
[in] | buffer | pointer to start of 34-byte streaminfo data |
Definition at line 183 of file flacdec.c.
Referenced by flac_decode_init(), flac_header(), and metadata_parse().