FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | FLACStreaminfo |
struct | FLACFrameInfo |
Functions | |
int | ff_flac_parse_streaminfo (AVCodecContext *avctx, struct FLACStreaminfo *s, const uint8_t *buffer) |
Parse the Streaminfo metadata block. More... | |
int | ff_flac_is_extradata_valid (AVCodecContext *avctx, uint8_t **streaminfo_start) |
Validate the FLAC extradata. More... | |
int | ff_flac_decode_frame_header (void *logctx, GetBitContext *gb, FLACFrameInfo *fi, int log_level_offset) |
Validate and decode a frame header. More... | |
void | ff_flac_set_channel_layout (AVCodecContext *avctx, int channels) |
FLAC (Free Lossless Audio Codec) decoder/parser common functions
Definition in file flac_parse.h.
int 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 187 of file flac.c.
Referenced by flac_decode_init(), and parse_streaminfo().
int ff_flac_is_extradata_valid | ( | AVCodecContext * | avctx, |
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 149 of file flac.c.
Referenced by flac_decode_init().
int ff_flac_decode_frame_header | ( | void * | logctx, |
GetBitContext * | gb, | ||
FLACFrameInfo * | fi, | ||
int | log_level_offset | ||
) |
Validate and decode a frame header.
logctx | context for logging | |
gb | GetBitContext from which to read frame header | |
[out] | fi | frame information |
log_level_offset | log level offset. can be used to silence error messages. |
Definition at line 51 of file flac.c.
Referenced by decode_frame(), and frame_header_is_valid().
void ff_flac_set_channel_layout | ( | AVCodecContext * | avctx, |
int | channels | ||
) |
Definition at line 173 of file flac.c.
Referenced by decode_frame(), ff_flac_parse_streaminfo(), and get_best_header().