LMMS
Loading...
Searching...
No Matches
stream_encoder.c File Reference
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "../assert.h"
#include "../stream_decoder.h"
#include "include/protected/stream_encoder.h"
#include "include/private/bitwriter.h"
#include "include/private/bitmath.h"
#include "include/private/crc.h"
#include "include/private/cpu.h"
#include "include/private/fixed.h"
#include "include/private/format.h"
#include "include/private/lpc.h"
#include "include/private/md5.h"
#include "include/private/memory.h"
#include "include/private/stream_encoder.h"
#include "include/private/stream_encoder_framing.h"
#include "include/private/window.h"
#include "../alloc.h"

Classes

struct  verify_input_fifo
struct  verify_output
struct  CompressionLevels
struct  FLAC__StreamEncoderPrivate

Macros

#define SPOTCHECK_ESTIMATE   0

Typedefs

typedef struct FLAC__StreamEncoderPrivate FLAC__StreamEncoderPrivate

Enumerations

enum  EncoderStateHint { ENCODER_IN_MAGIC = 0 , ENCODER_IN_METADATA = 1 , ENCODER_IN_AUDIO = 2 }

Functions

static void set_defaults_ (FLAC__StreamEncoder *encoder)
static void free_ (FLAC__StreamEncoder *encoder)
static FLAC__bool resize_buffers_ (FLAC__StreamEncoder *encoder, unsigned new_blocksize)
static FLAC__bool write_bitbuffer_ (FLAC__StreamEncoder *encoder, unsigned samples, FLAC__bool is_last_block)
static FLAC__StreamEncoderWriteStatus write_frame_ (FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, FLAC__bool is_last_block)
static void update_metadata_ (const FLAC__StreamEncoder *encoder)
static FLAC__bool process_frame_ (FLAC__StreamEncoder *encoder, FLAC__bool is_fractional_block, FLAC__bool is_last_block)
static FLAC__bool process_subframes_ (FLAC__StreamEncoder *encoder, FLAC__bool is_fractional_block)
static FLAC__bool process_subframe_ (FLAC__StreamEncoder *encoder, unsigned min_partition_order, unsigned max_partition_order, const FLAC__FrameHeader *frame_header, unsigned subframe_bps, const FLAC__int32 integer_signal[], FLAC__Subframe *subframe[2], FLAC__EntropyCodingMethod_PartitionedRiceContents *partitioned_rice_contents[2], FLAC__int32 *residual[2], unsigned *best_subframe, unsigned *best_bits)
static FLAC__bool add_subframe_ (FLAC__StreamEncoder *encoder, unsigned blocksize, unsigned subframe_bps, const FLAC__Subframe *subframe, FLAC__BitWriter *frame)
static unsigned evaluate_constant_subframe_ (FLAC__StreamEncoder *encoder, const FLAC__int32 signal, unsigned blocksize, unsigned subframe_bps, FLAC__Subframe *subframe)
static unsigned evaluate_fixed_subframe_ (FLAC__StreamEncoder *encoder, const FLAC__int32 signal[], FLAC__int32 residual[], FLAC__uint64 abs_residual_partition_sums[], unsigned raw_bits_per_partition[], unsigned blocksize, unsigned subframe_bps, unsigned order, unsigned rice_parameter, unsigned rice_parameter_limit, unsigned min_partition_order, unsigned max_partition_order, FLAC__bool do_escape_coding, unsigned rice_parameter_search_dist, FLAC__Subframe *subframe, FLAC__EntropyCodingMethod_PartitionedRiceContents *partitioned_rice_contents)
static unsigned evaluate_lpc_subframe_ (FLAC__StreamEncoder *encoder, const FLAC__int32 signal[], FLAC__int32 residual[], FLAC__uint64 abs_residual_partition_sums[], unsigned raw_bits_per_partition[], const FLAC__real lp_coeff[], unsigned blocksize, unsigned subframe_bps, unsigned order, unsigned qlp_coeff_precision, unsigned rice_parameter, unsigned rice_parameter_limit, unsigned min_partition_order, unsigned max_partition_order, FLAC__bool do_escape_coding, unsigned rice_parameter_search_dist, FLAC__Subframe *subframe, FLAC__EntropyCodingMethod_PartitionedRiceContents *partitioned_rice_contents)
static unsigned evaluate_verbatim_subframe_ (FLAC__StreamEncoder *encoder, const FLAC__int32 signal[], unsigned blocksize, unsigned subframe_bps, FLAC__Subframe *subframe)
static unsigned find_best_partition_order_ (struct FLAC__StreamEncoderPrivate *private_, const FLAC__int32 residual[], FLAC__uint64 abs_residual_partition_sums[], unsigned raw_bits_per_partition[], unsigned residual_samples, unsigned predictor_order, unsigned rice_parameter, unsigned rice_parameter_limit, unsigned min_partition_order, unsigned max_partition_order, unsigned bps, FLAC__bool do_escape_coding, unsigned rice_parameter_search_dist, FLAC__EntropyCodingMethod *best_ecm)
static void precompute_partition_info_sums_ (const FLAC__int32 residual[], FLAC__uint64 abs_residual_partition_sums[], unsigned residual_samples, unsigned predictor_order, unsigned min_partition_order, unsigned max_partition_order, unsigned bps)
static void precompute_partition_info_escapes_ (const FLAC__int32 residual[], unsigned raw_bits_per_partition[], unsigned residual_samples, unsigned predictor_order, unsigned min_partition_order, unsigned max_partition_order)
static FLAC__bool set_partitioned_rice_ (const FLAC__uint64 abs_residual_partition_sums[], const unsigned raw_bits_per_partition[], const unsigned residual_samples, const unsigned predictor_order, const unsigned suggested_rice_parameter, const unsigned rice_parameter_limit, const unsigned rice_parameter_search_dist, const unsigned partition_order, const FLAC__bool search_for_escapes, FLAC__EntropyCodingMethod_PartitionedRiceContents *partitioned_rice_contents, unsigned *bits)
static unsigned get_wasted_bits_ (FLAC__int32 signal[], unsigned samples)
static void append_to_verify_fifo_ (verify_input_fifo *fifo, const FLAC__int32 *const input[], unsigned input_offset, unsigned channels, unsigned wide_samples)
static void append_to_verify_fifo_interleaved_ (verify_input_fifo *fifo, const FLAC__int32 input[], unsigned input_offset, unsigned channels, unsigned wide_samples)
static FLAC__StreamDecoderReadStatus verify_read_callback_ (const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data)
static FLAC__StreamDecoderWriteStatus verify_write_callback_ (const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 *const buffer[], void *client_data)
static void verify_metadata_callback_ (const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data)
static void verify_error_callback_ (const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data)
FLAC_API FLAC__StreamEncoderFLAC__stream_encoder_new (void)
FLAC_API void FLAC__stream_encoder_delete (FLAC__StreamEncoder *encoder)
static FLAC__StreamEncoderInitStatus init_stream_internal_ (FLAC__StreamEncoder *encoder, FLAC__StreamEncoderReadCallback read_callback, FLAC__StreamEncoderWriteCallback write_callback, FLAC__StreamEncoderSeekCallback seek_callback, FLAC__StreamEncoderTellCallback tell_callback, FLAC__StreamEncoderMetadataCallback metadata_callback, void *client_data, FLAC__bool is_ogg)
FLAC_API FLAC__StreamEncoderInitStatus FLAC__stream_encoder_init_stream (FLAC__StreamEncoder *encoder, FLAC__StreamEncoderWriteCallback write_callback, FLAC__StreamEncoderSeekCallback seek_callback, FLAC__StreamEncoderTellCallback tell_callback, FLAC__StreamEncoderMetadataCallback metadata_callback, void *client_data)
FLAC_API FLAC__StreamEncoderInitStatus FLAC__stream_encoder_init_ogg_stream (FLAC__StreamEncoder *encoder, FLAC__StreamEncoderReadCallback read_callback, FLAC__StreamEncoderWriteCallback write_callback, FLAC__StreamEncoderSeekCallback seek_callback, FLAC__StreamEncoderTellCallback tell_callback, FLAC__StreamEncoderMetadataCallback metadata_callback, void *client_data)
FLAC_API FLAC__bool FLAC__stream_encoder_finish (FLAC__StreamEncoder *encoder)
FLAC_API FLAC__bool FLAC__stream_encoder_set_ogg_serial_number (FLAC__StreamEncoder *encoder, long value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_verify (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_streamable_subset (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_do_md5 (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_channels (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_bits_per_sample (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_sample_rate (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_compression_level (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_blocksize (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_do_mid_side_stereo (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_loose_mid_side_stereo (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_apodization (FLAC__StreamEncoder *encoder, const char *specification)
FLAC_API FLAC__bool FLAC__stream_encoder_set_max_lpc_order (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_qlp_coeff_precision (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_do_qlp_coeff_prec_search (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_do_escape_coding (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_do_exhaustive_model_search (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_min_residual_partition_order (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_max_residual_partition_order (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_rice_parameter_search_dist (FLAC__StreamEncoder *encoder, unsigned value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_total_samples_estimate (FLAC__StreamEncoder *encoder, FLAC__uint64 value)
FLAC_API FLAC__bool FLAC__stream_encoder_set_metadata (FLAC__StreamEncoder *encoder, FLAC__StreamMetadata **metadata, unsigned num_blocks)
FLAC_API FLAC__bool FLAC__stream_encoder_disable_constant_subframes (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_disable_fixed_subframes (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_encoder_disable_verbatim_subframes (FLAC__StreamEncoder *encoder, FLAC__bool value)
FLAC_API FLAC__StreamEncoderState FLAC__stream_encoder_get_state (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__StreamDecoderState FLAC__stream_encoder_get_verify_decoder_state (const FLAC__StreamEncoder *encoder)
FLAC_API const char * FLAC__stream_encoder_get_resolved_state_string (const FLAC__StreamEncoder *encoder)
FLAC_API void FLAC__stream_encoder_get_verify_decoder_error_stats (const FLAC__StreamEncoder *encoder, FLAC__uint64 *absolute_sample, unsigned *frame_number, unsigned *channel, unsigned *sample, FLAC__int32 *expected, FLAC__int32 *got)
FLAC_API FLAC__bool FLAC__stream_encoder_get_verify (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__bool FLAC__stream_encoder_get_streamable_subset (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__bool FLAC__stream_encoder_get_do_md5 (const FLAC__StreamEncoder *encoder)
FLAC_API unsigned FLAC__stream_encoder_get_channels (const FLAC__StreamEncoder *encoder)
FLAC_API unsigned FLAC__stream_encoder_get_bits_per_sample (const FLAC__StreamEncoder *encoder)
FLAC_API unsigned FLAC__stream_encoder_get_sample_rate (const FLAC__StreamEncoder *encoder)
FLAC_API unsigned FLAC__stream_encoder_get_blocksize (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__bool FLAC__stream_encoder_get_do_mid_side_stereo (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__bool FLAC__stream_encoder_get_loose_mid_side_stereo (const FLAC__StreamEncoder *encoder)
FLAC_API unsigned FLAC__stream_encoder_get_max_lpc_order (const FLAC__StreamEncoder *encoder)
FLAC_API unsigned FLAC__stream_encoder_get_qlp_coeff_precision (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__bool FLAC__stream_encoder_get_do_qlp_coeff_prec_search (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__bool FLAC__stream_encoder_get_do_escape_coding (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__bool FLAC__stream_encoder_get_do_exhaustive_model_search (const FLAC__StreamEncoder *encoder)
FLAC_API unsigned FLAC__stream_encoder_get_min_residual_partition_order (const FLAC__StreamEncoder *encoder)
FLAC_API unsigned FLAC__stream_encoder_get_max_residual_partition_order (const FLAC__StreamEncoder *encoder)
FLAC_API unsigned FLAC__stream_encoder_get_rice_parameter_search_dist (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__uint64 FLAC__stream_encoder_get_total_samples_estimate (const FLAC__StreamEncoder *encoder)
FLAC_API FLAC__bool FLAC__stream_encoder_process (FLAC__StreamEncoder *encoder, const FLAC__int32 *const buffer[], unsigned samples)
FLAC_API FLAC__bool FLAC__stream_encoder_process_interleaved (FLAC__StreamEncoder *encoder, const FLAC__int32 buffer[], unsigned samples)
static unsigned count_rice_bits_in_partition_ (const unsigned rice_parameter, const unsigned partition_samples, const FLAC__uint64 abs_residual_partition_sum)

Variables

static struct CompressionLevels compression_levels_ []
FLAC_API const char *const FLAC__StreamEncoderStateString []
FLAC_API const char *const FLAC__StreamEncoderInitStatusString []
FLAC_API const char *const FLAC__StreamEncoderReadStatusString []
FLAC_API const char *const FLAC__StreamEncoderWriteStatusString []
FLAC_API const char *const FLAC__StreamEncoderSeekStatusString []
FLAC_API const char *const FLAC__StreamEncoderTellStatusString []
static const unsigned OVERREAD_ = 1

Macro Definition Documentation

◆ SPOTCHECK_ESTIMATE

#define SPOTCHECK_ESTIMATE   0

Typedef Documentation

◆ FLAC__StreamEncoderPrivate

typedef struct FLAC__StreamEncoderPrivate FLAC__StreamEncoderPrivate

Enumeration Type Documentation

◆ EncoderStateHint

Enumerator
ENCODER_IN_MAGIC 
ENCODER_IN_METADATA 
ENCODER_IN_AUDIO 

Function Documentation

◆ add_subframe_()

FLAC__bool add_subframe_ ( FLAC__StreamEncoder * encoder,
unsigned blocksize,
unsigned subframe_bps,
const FLAC__Subframe * subframe,
FLAC__BitWriter * frame )
static

◆ append_to_verify_fifo_()

void append_to_verify_fifo_ ( verify_input_fifo * fifo,
const FLAC__int32 *const input[],
unsigned input_offset,
unsigned channels,
unsigned wide_samples )
static

◆ append_to_verify_fifo_interleaved_()

void append_to_verify_fifo_interleaved_ ( verify_input_fifo * fifo,
const FLAC__int32 input[],
unsigned input_offset,
unsigned channels,
unsigned wide_samples )
static

◆ count_rice_bits_in_partition_()

unsigned count_rice_bits_in_partition_ ( const unsigned rice_parameter,
const unsigned partition_samples,
const FLAC__uint64 abs_residual_partition_sum )
inlinestatic

◆ evaluate_constant_subframe_()

unsigned evaluate_constant_subframe_ ( FLAC__StreamEncoder * encoder,
const FLAC__int32 signal,
unsigned blocksize,
unsigned subframe_bps,
FLAC__Subframe * subframe )
static

◆ evaluate_fixed_subframe_()

unsigned evaluate_fixed_subframe_ ( FLAC__StreamEncoder * encoder,
const FLAC__int32 signal[],
FLAC__int32 residual[],
FLAC__uint64 abs_residual_partition_sums[],
unsigned raw_bits_per_partition[],
unsigned blocksize,
unsigned subframe_bps,
unsigned order,
unsigned rice_parameter,
unsigned rice_parameter_limit,
unsigned min_partition_order,
unsigned max_partition_order,
FLAC__bool do_escape_coding,
unsigned rice_parameter_search_dist,
FLAC__Subframe * subframe,
FLAC__EntropyCodingMethod_PartitionedRiceContents * partitioned_rice_contents )
static

◆ evaluate_lpc_subframe_()

unsigned evaluate_lpc_subframe_ ( FLAC__StreamEncoder * encoder,
const FLAC__int32 signal[],
FLAC__int32 residual[],
FLAC__uint64 abs_residual_partition_sums[],
unsigned raw_bits_per_partition[],
const FLAC__real lp_coeff[],
unsigned blocksize,
unsigned subframe_bps,
unsigned order,
unsigned qlp_coeff_precision,
unsigned rice_parameter,
unsigned rice_parameter_limit,
unsigned min_partition_order,
unsigned max_partition_order,
FLAC__bool do_escape_coding,
unsigned rice_parameter_search_dist,
FLAC__Subframe * subframe,
FLAC__EntropyCodingMethod_PartitionedRiceContents * partitioned_rice_contents )
static

◆ evaluate_verbatim_subframe_()

unsigned evaluate_verbatim_subframe_ ( FLAC__StreamEncoder * encoder,
const FLAC__int32 signal[],
unsigned blocksize,
unsigned subframe_bps,
FLAC__Subframe * subframe )
static

◆ find_best_partition_order_()

unsigned find_best_partition_order_ ( struct FLAC__StreamEncoderPrivate * private_,
const FLAC__int32 residual[],
FLAC__uint64 abs_residual_partition_sums[],
unsigned raw_bits_per_partition[],
unsigned residual_samples,
unsigned predictor_order,
unsigned rice_parameter,
unsigned rice_parameter_limit,
unsigned min_partition_order,
unsigned max_partition_order,
unsigned bps,
FLAC__bool do_escape_coding,
unsigned rice_parameter_search_dist,
FLAC__EntropyCodingMethod * best_ecm )
static

◆ FLAC__stream_encoder_disable_constant_subframes()

FLAC_API FLAC__bool FLAC__stream_encoder_disable_constant_subframes ( FLAC__StreamEncoder * encoder,
FLAC__bool value )
inline

◆ FLAC__stream_encoder_disable_fixed_subframes()

FLAC_API FLAC__bool FLAC__stream_encoder_disable_fixed_subframes ( FLAC__StreamEncoder * encoder,
FLAC__bool value )
inline

◆ FLAC__stream_encoder_disable_verbatim_subframes()

FLAC_API FLAC__bool FLAC__stream_encoder_disable_verbatim_subframes ( FLAC__StreamEncoder * encoder,
FLAC__bool value )
inline

◆ FLAC__stream_encoder_get_do_md5()

FLAC_API FLAC__bool FLAC__stream_encoder_get_do_md5 ( const FLAC__StreamEncoder * encoder)
inline

◆ FLAC__stream_encoder_set_do_md5()

FLAC_API FLAC__bool FLAC__stream_encoder_set_do_md5 ( FLAC__StreamEncoder * encoder,
FLAC__bool value )
inline

◆ free_()

void free_ ( FLAC__StreamEncoder * encoder)
static

◆ get_wasted_bits_()

unsigned get_wasted_bits_ ( FLAC__int32 signal[],
unsigned samples )
static

◆ init_stream_internal_()

FLAC__StreamEncoderInitStatus init_stream_internal_ ( FLAC__StreamEncoder * encoder,
FLAC__StreamEncoderReadCallback read_callback,
FLAC__StreamEncoderWriteCallback write_callback,
FLAC__StreamEncoderSeekCallback seek_callback,
FLAC__StreamEncoderTellCallback tell_callback,
FLAC__StreamEncoderMetadataCallback metadata_callback,
void * client_data,
FLAC__bool is_ogg )
static

◆ precompute_partition_info_escapes_()

void precompute_partition_info_escapes_ ( const FLAC__int32 residual[],
unsigned raw_bits_per_partition[],
unsigned residual_samples,
unsigned predictor_order,
unsigned min_partition_order,
unsigned max_partition_order )
static

◆ precompute_partition_info_sums_()

void precompute_partition_info_sums_ ( const FLAC__int32 residual[],
FLAC__uint64 abs_residual_partition_sums[],
unsigned residual_samples,
unsigned predictor_order,
unsigned min_partition_order,
unsigned max_partition_order,
unsigned bps )
static

◆ process_frame_()

FLAC__bool process_frame_ ( FLAC__StreamEncoder * encoder,
FLAC__bool is_fractional_block,
FLAC__bool is_last_block )
static

◆ process_subframe_()

FLAC__bool process_subframe_ ( FLAC__StreamEncoder * encoder,
unsigned min_partition_order,
unsigned max_partition_order,
const FLAC__FrameHeader * frame_header,
unsigned subframe_bps,
const FLAC__int32 integer_signal[],
FLAC__Subframe * subframe[2],
FLAC__EntropyCodingMethod_PartitionedRiceContents * partitioned_rice_contents[2],
FLAC__int32 * residual[2],
unsigned * best_subframe,
unsigned * best_bits )
static

◆ process_subframes_()

FLAC__bool process_subframes_ ( FLAC__StreamEncoder * encoder,
FLAC__bool is_fractional_block )
static

◆ resize_buffers_()

FLAC__bool resize_buffers_ ( FLAC__StreamEncoder * encoder,
unsigned new_blocksize )
static

◆ set_defaults_()

void set_defaults_ ( FLAC__StreamEncoder * encoder)
static

◆ set_partitioned_rice_()

FLAC__bool set_partitioned_rice_ ( const FLAC__uint64 abs_residual_partition_sums[],
const unsigned raw_bits_per_partition[],
const unsigned residual_samples,
const unsigned predictor_order,
const unsigned suggested_rice_parameter,
const unsigned rice_parameter_limit,
const unsigned rice_parameter_search_dist,
const unsigned partition_order,
const FLAC__bool search_for_escapes,
FLAC__EntropyCodingMethod_PartitionedRiceContents * partitioned_rice_contents,
unsigned * bits )
static

◆ update_metadata_()

void update_metadata_ ( const FLAC__StreamEncoder * encoder)
static

◆ verify_error_callback_()

void verify_error_callback_ ( const FLAC__StreamDecoder * decoder,
FLAC__StreamDecoderErrorStatus status,
void * client_data )
static

◆ verify_metadata_callback_()

void verify_metadata_callback_ ( const FLAC__StreamDecoder * decoder,
const FLAC__StreamMetadata * metadata,
void * client_data )
static

◆ verify_read_callback_()

FLAC__StreamDecoderReadStatus verify_read_callback_ ( const FLAC__StreamDecoder * decoder,
FLAC__byte buffer[],
size_t * bytes,
void * client_data )
static

◆ verify_write_callback_()

FLAC__StreamDecoderWriteStatus verify_write_callback_ ( const FLAC__StreamDecoder * decoder,
const FLAC__Frame * frame,
const FLAC__int32 *const buffer[],
void * client_data )
static

◆ write_bitbuffer_()

FLAC__bool write_bitbuffer_ ( FLAC__StreamEncoder * encoder,
unsigned samples,
FLAC__bool is_last_block )
static

◆ write_frame_()

FLAC__StreamEncoderWriteStatus write_frame_ ( FLAC__StreamEncoder * encoder,
const FLAC__byte buffer[],
size_t bytes,
unsigned samples,
FLAC__bool is_last_block )
static

Variable Documentation

◆ compression_levels_

struct CompressionLevels compression_levels_[]
static
Initial value:
= {
{ false, false, 0, 0, false, false, false, 0, 3, 0, "tukey(5e-1)" },
{ true , true , 0, 0, false, false, false, 0, 3, 0, "tukey(5e-1)" },
{ true , false, 0, 0, false, false, false, 0, 3, 0, "tukey(5e-1)" },
{ false, false, 6, 0, false, false, false, 0, 4, 0, "tukey(5e-1)" },
{ true , true , 8, 0, false, false, false, 0, 4, 0, "tukey(5e-1)" },
{ true , false, 8, 0, false, false, false, 0, 5, 0, "tukey(5e-1)" },
{ true , false, 8, 0, false, false, false, 0, 6, 0, "tukey(5e-1);partial_tukey(2)" },
{ true , false, 12, 0, false, false, false, 0, 6, 0, "tukey(5e-1);partial_tukey(2)" },
{ true , false, 12, 0, false, false, false, 0, 6, 0, "tukey(5e-1);partial_tukey(2);punchout_tukey(3)" }
}
#define true
Definition ordinals.h:82

◆ OVERREAD_

const unsigned OVERREAD_ = 1
static