|
FFmpeg
|
FLAC (Free Lossless Audio Codec) decoder/demuxer common functions. More...
Go to the source code of this file.
Classes | |
| struct | FLACStreaminfo |
| struct | FLACFrameInfo |
Macros | |
| #define | FLAC_STREAMINFO_SIZE 34 |
| #define | FLAC_MAX_CHANNELS 8 |
| #define | FLAC_MIN_BLOCKSIZE 16 |
| #define | FLAC_MAX_BLOCKSIZE 65535 |
| #define | FLAC_MIN_FRAME_SIZE 11 |
| #define | FLACCOMMONINFO |
| bits-per-sample More... | |
| #define | FLACSTREAMINFO |
| Data needed from the Streaminfo header for use by the raw FLAC demuxer and/or the FLAC decoder. More... | |
Typedefs | |
| typedef struct FLACStreaminfo | FLACStreaminfo |
| typedef struct FLACFrameInfo | 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, enum FLACExtradataFormat *format, uint8_t **streaminfo_start) |
| Validate the FLAC extradata. More... | |
| int | ff_flac_get_max_frame_size (int blocksize, int ch, int bps) |
| Calculate an estimate for the maximum frame size based on verbatim mode. More... | |
| int | ff_flac_decode_frame_header (AVCodecContext *avctx, GetBitContext *gb, FLACFrameInfo *fi, int log_level_offset) |
| Validate and decode a frame header. More... | |
| void | ff_flac_set_channel_layout (AVCodecContext *avctx) |
FLAC (Free Lossless Audio Codec) decoder/demuxer common functions.
| #define FLACCOMMONINFO |
bits-per-sample
| #define FLACSTREAMINFO |
Data needed from the Streaminfo header for use by the raw FLAC demuxer and/or the FLAC decoder.
total number of samples
| int ff_flac_decode_frame_header | ( | AVCodecContext * | avctx, |
| GetBitContext * | gb, | ||
| FLACFrameInfo * | fi, | ||
| int | log_level_offset | ||
| ) |
Validate and decode a frame header.
| avctx | AVCodecContext to use as av_log() context | |
| 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. |
| int ff_flac_get_max_frame_size | ( | int | blocksize, |
| int | ch, | ||
| int | bps | ||
| ) |
Calculate an estimate for the maximum frame size based on verbatim mode.
| blocksize | block size, in samples |
| ch | number of channels |
| bps | bits-per-sample |
| 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. |
| 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 |
1.8.12