FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/crc.h"
#include "libavutil/intmath.h"
#include "libavutil/md5.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bswapdsp.h"
#include "put_bits.h"
#include "golomb.h"
#include "internal.h"
#include "lpc.h"
#include "flac.h"
#include "flacdata.h"
#include "flacdsp.h"
Go to the source code of this file.
Data Structures | |
struct | CompressionOptions |
struct | RiceContext |
struct | FlacSubframe |
struct | FlacFrame |
struct | FlacEncodeContext |
Macros | |
#define | FLAC_SUBFRAME_CONSTANT 0 |
#define | FLAC_SUBFRAME_VERBATIM 1 |
#define | FLAC_SUBFRAME_FIXED 8 |
#define | FLAC_SUBFRAME_LPC 32 |
#define | MAX_FIXED_ORDER 4 |
#define | MAX_PARTITION_ORDER 8 |
#define | MAX_PARTITIONS (1 << MAX_PARTITION_ORDER) |
#define | MAX_LPC_PRECISION 15 |
#define | MIN_LPC_SHIFT 0 |
#define | MAX_LPC_SHIFT 15 |
#define | COPY_SAMPLES(bits) |
#define | rice_encode_count(sum, n, k) (((n)*((k)+1))+((sum-(n>>1))>>(k))) |
#define | FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM |
Enumerations | |
enum | CodingMode { CODING_MODE_RICE = 4, CODING_MODE_RICE2 = 5 } |
Variables | |
static const AVOption | options [] |
static const AVClass | flac_encoder_class |
AVCodec | ff_flac_encoder |
#define FLAC_SUBFRAME_CONSTANT 0 |
Definition at line 38 of file flacenc.c.
Referenced by encode_residual_ch(), subframe_count_exact(), and write_subframes().
#define FLAC_SUBFRAME_VERBATIM 1 |
Definition at line 39 of file flacenc.c.
Referenced by encode_residual_ch(), subframe_count_exact(), and write_subframes().
#define FLAC_SUBFRAME_FIXED 8 |
Definition at line 40 of file flacenc.c.
Referenced by encode_residual_ch().
#define FLAC_SUBFRAME_LPC 32 |
Definition at line 41 of file flacenc.c.
Referenced by encode_residual_ch(), find_subframe_rice_params(), subframe_count_exact(), and write_subframes().
#define MAX_FIXED_ORDER 4 |
Definition at line 43 of file flacenc.c.
Referenced by encode_residual_ch(), and flac_encode_init().
#define MAX_PARTITION_ORDER 8 |
Definition at line 44 of file flacenc.c.
Referenced by calc_rice_params().
#define MAX_PARTITIONS (1 << MAX_PARTITION_ORDER) |
#define MIN_LPC_SHIFT 0 |
Definition at line 47 of file flacenc.c.
Referenced by encode_residual_ch().
#define MAX_LPC_SHIFT 15 |
Definition at line 48 of file flacenc.c.
Referenced by encode_residual_ch().
#define COPY_SAMPLES | ( | bits | ) |
Referenced by copy_samples().
Definition at line 601 of file flacenc.c.
Referenced by calc_optimal_rice_params(), and estimate_stereo_mode().
#define FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM |
enum CodingMode |
|
static |
Write streaminfo metadata block to byte array.
Definition at line 135 of file flacenc.c.
Referenced by flac_encode_frame(), and flac_encode_init().
Set blocksize based on samplerate.
Choose the closest predefined blocksize >= BLOCK_TIME_MS milliseconds.
Definition at line 162 of file flacenc.c.
Referenced by flac_encode_init().
|
static |
Definition at line 181 of file flacenc.c.
Referenced by flac_encode_init().
|
static |
|
static |
Definition at line 470 of file flacenc.c.
Referenced by decode_frame(), and flac_encode_frame().
|
static |
Copy channel-interleaved input samples into separate subframes.
Definition at line 515 of file flacenc.c.
Referenced by flac_encode_frame().
Definition at line 537 of file flacenc.c.
Referenced by subframe_count_exact().
|
static |
Definition at line 551 of file flacenc.c.
Referenced by encode_residual_ch().
Solve for d/dk(rice_encode_count) = n-((sum-(n>>1))>>(k+1)) = 0.
Definition at line 606 of file flacenc.c.
Referenced by calc_optimal_rice_params(), and estimate_stereo_mode().
|
static |
Definition at line 618 of file flacenc.c.
Referenced by calc_optimal_rice_params().
|
static |
Definition at line 635 of file flacenc.c.
Referenced by calc_rice_params().
|
static |
Definition at line 665 of file flacenc.c.
Referenced by calc_rice_params().
Definition at line 695 of file flacenc.c.
Referenced by calc_rice_params().
|
static |
Definition at line 705 of file flacenc.c.
Referenced by find_subframe_rice_params().
Definition at line 745 of file flacenc.c.
Referenced by find_subframe_rice_params().
|
static |
Definition at line 754 of file flacenc.c.
Referenced by encode_residual_ch().
Definition at line 771 of file flacenc.c.
Referenced by encode_residual_ch().
|
static |
Definition at line 822 of file flacenc.c.
Referenced by encode_frame().
|
static |
Definition at line 1021 of file flacenc.c.
Referenced by encode_frame().
|
static |
Definition at line 1057 of file flacenc.c.
Referenced by flac_encode_frame().
|
static |
Definition at line 1077 of file flacenc.c.
Referenced by flac_encode_frame().
|
static |
Definition at line 1109 of file flacenc.c.
Referenced by channel_decorrelation().
|
static |
Perform stereo channel decorrelation.
Definition at line 1153 of file flacenc.c.
Referenced by flac_encode_frame().
|
static |
Definition at line 1198 of file flacenc.c.
Referenced by write_frame_header().
|
static |
Definition at line 1205 of file flacenc.c.
Referenced by write_frame().
|
static |
Definition at line 1242 of file flacenc.c.
Referenced by write_frame().
|
static |
Definition at line 1302 of file flacenc.c.
Referenced by write_frame().
|
static |
Definition at line 1313 of file flacenc.c.
Referenced by flac_encode_frame().
|
static |
Definition at line 1323 of file flacenc.c.
Referenced by flac_encode_frame().
|
static |
|
static |
|
static |
|
static |
AVCodec ff_flac_encoder |