|
FFmpeg
|
FLAC (Free Lossless Audio Codec) decoder. More...
#include <limits.h>#include "libavutil/avassert.h"#include "libavutil/channel_layout.h"#include "libavutil/crc.h"#include "avcodec.h"#include "internal.h"#include "get_bits.h"#include "bytestream.h"#include "golomb.h"#include "flac.h"#include "flacdata.h"#include "flacdsp.h"
Go to the source code of this file.
Data Structures | |
| struct | FLACContext |
Typedefs | |
| typedef struct FLACContext | FLACContext |
Functions | |
| static int | allocate_buffers (FLACContext *s) |
| static void | flac_set_bps (FLACContext *s) |
| static av_cold int | flac_decode_init (AVCodecContext *avctx) |
| static void | dump_headers (AVCodecContext *avctx, FLACStreaminfo *s) |
| static int | parse_streaminfo (FLACContext *s, const uint8_t *buf, int buf_size) |
| Parse the STREAMINFO from an inline header. More... | |
| static int | get_metadata_size (const uint8_t *buf, int buf_size) |
| Determine the size of an inline header. More... | |
| static int | decode_residuals (FLACContext *s, int32_t *decoded, int pred_order) |
| static int | decode_subframe_fixed (FLACContext *s, int32_t *decoded, int pred_order, int bps) |
| static int | decode_subframe_lpc (FLACContext *s, int32_t *decoded, int pred_order, int bps) |
| static int | decode_subframe (FLACContext *s, int channel) |
| static int | decode_frame (FLACContext *s) |
| static int | flac_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
| static av_cold int | flac_decode_close (AVCodecContext *avctx) |
Variables | |
| AVCodec | ff_flac_decoder |
Detailed Description
FLAC (Free Lossless Audio Codec) decoder.
- See also
- http://flac.sourceforge.net/
This decoder can be used in 1 of 2 ways: Either raw FLAC data can be fed through, starting from the initial 'fLaC' signature; or by passing the 34-byte streaminfo structure through avctx->extradata[_size] followed by data starting with the 0xFFF8 marker.
Definition in file libavcodec/flacdec.c.
Typedef Documentation
| typedef struct FLACContext FLACContext |
Function Documentation
|
static |
Definition at line 127 of file libavcodec/flacdec.c.
Referenced by decode_frame(), flac_decode_init(), and parse_streaminfo().
|
static |
Definition at line 405 of file libavcodec/flacdec.c.
Referenced by flac_decode_frame().
|
static |
Definition at line 205 of file libavcodec/flacdec.c.
Referenced by decode_subframe_fixed(), and decode_subframe_lpc().
|
inlinestatic |
Definition at line 336 of file libavcodec/flacdec.c.
Referenced by decode_frame().
|
static |
Definition at line 249 of file libavcodec/flacdec.c.
Referenced by decode_subframe().
|
static |
Definition at line 300 of file libavcodec/flacdec.c.
Referenced by decode_subframe().
|
static |
Definition at line 118 of file libavcodec/flacdec.c.
Referenced by decode_frame().
|
static |
Definition at line 569 of file libavcodec/flacdec.c.
|
static |
Definition at line 488 of file libavcodec/flacdec.c.
|
static |
Definition at line 90 of file libavcodec/flacdec.c.
|
static |
Definition at line 68 of file libavcodec/flacdec.c.
Referenced by decode_frame(), flac_decode_init(), and parse_streaminfo().
|
static |
Determine the size of an inline header.
- Parameters
-
buf input buffer, starting with the "fLaC" marker buf_size buffer size
- Returns
- number of bytes in the header, or 0 if more data is needed
Definition at line 184 of file libavcodec/flacdec.c.
Referenced by flac_decode_frame().
|
static |
Parse the STREAMINFO from an inline header.
- Parameters
-
s the flac decoding context buf input buffer, starting with the "fLaC" marker buf_size buffer size
- Returns
- non-zero if metadata is invalid
Definition at line 154 of file libavcodec/flacdec.c.
Referenced by flac_decode_frame().
Variable Documentation
| AVCodec ff_flac_decoder |
Definition at line 578 of file libavcodec/flacdec.c.
Generated by
1.8.11