FFmpeg
|
ALAC (Apple Lossless Audio Codec) decoder. More...
#include <inttypes.h>
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "get_bits.h"
#include "bytestream.h"
#include "internal.h"
#include "thread.h"
#include "unary.h"
#include "mathops.h"
#include "alac_data.h"
#include "alacdsp.h"
Go to the source code of this file.
Data Structures | |
struct | ALACContext |
Macros | |
#define | ALAC_EXTRADATA_SIZE 36 |
Functions | |
static unsigned int | decode_scalar (GetBitContext *gb, int k, int bps) |
static int | rice_decompress (ALACContext *alac, int32_t *output_buffer, int nb_samples, int bps, int rice_history_mult) |
static int | sign_only (int v) |
static void | lpc_prediction (int32_t *error_buffer, int32_t *buffer_out, int nb_samples, int bps, int16_t *lpc_coefs, int lpc_order, int lpc_quant) |
static int | decode_element (AVCodecContext *avctx, AVFrame *frame, int ch_index, int channels) |
static int | alac_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
static av_cold int | alac_decode_close (AVCodecContext *avctx) |
static int | allocate_buffers (ALACContext *alac) |
static int | alac_set_info (ALACContext *alac) |
static av_cold int | alac_decode_init (AVCodecContext *avctx) |
Variables | |
static const AVOption | options [] |
static const AVClass | alac_class |
AVCodec | ff_alac_decoder |
ALAC (Apple Lossless Audio Codec) decoder.
Note: This decoder expects a 36-byte QuickTime atom to be passed through the extradata[_size] fields. This atom is tacked onto the end of an 'alac' stsd atom and has the following format:
32bit atom size 32bit tag ("alac") 32bit tag version (0) 32bit samples per frame (used when not set explicitly in the frames) 8bit compatible version (0) 8bit sample size 8bit history mult (40) 8bit initial history (10) 8bit rice param limit (14) 8bit channels 16bit maxRun (255) 32bit max coded frame size (0 means unknown) 32bit average bitrate (0 means unknown) 32bit samplerate
Definition in file alac.c.
#define ALAC_EXTRADATA_SIZE 36 |
Definition at line 62 of file alac.c.
Referenced by alac_decode_init().
|
inlinestatic |
Definition at line 89 of file alac.c.
Referenced by rice_decompress().
|
static |
Definition at line 111 of file alac.c.
Referenced by decode_element().
|
inlinestatic |
Definition at line 168 of file alac.c.
Referenced by lpc_prediction().
|
static |
Definition at line 173 of file alac.c.
Referenced by decode_element().
|
static |
Definition at line 236 of file alac.c.
Referenced by alac_decode_frame().
|
static |
|
static |
Definition at line 464 of file alac.c.
Referenced by allocate_buffers().
|
static |
Definition at line 479 of file alac.c.
Referenced by alac_decode_init().
|
static |
Definition at line 509 of file alac.c.
Referenced by alac_decode_init().
|
static |
|
static |
|
static |
AVCodec ff_alac_decoder |