MythTV  master
Classes | Macros
flacencoder.h File Reference
#include <cstdint>
#include <FLAC/export.h>
#include <FLAC/file_encoder.h>
#include "encoder.h"
Include dependency graph for flacencoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FlacEncoder
 

Macros

#define encoder_new()   FLAC__file_encoder_new()
 
#define encoder_setup(enc, streamable_subset, do_mid_side_stereo, loose_mid_side_stereo, channels, bits_per_sample, sample_rate, blocksize, max_lpc_order, qlp_coeff_precision, do_qlp_coeff_prec_search, do_escape_coding, do_exhaustive_model_search, min_residual_partition_order, max_residual_partition_order, rice_parameter_search_dist)
 
#define encoder_finish(enc)   FLAC__file_encoder_finish(enc)
 
#define encoder_delete(enc)   FLAC__file_encoder_delete(enc)
 
#define encoder_process(enc, data, index)   FLAC__file_encoder_process(enc, data, index)
 
#define FLAC_ENCODER   FLAC__FileEncoder
 
#define MAX_SAMPLES   (588 * 4)
 
#define NUM_CHANNELS   2
 

Macro Definition Documentation

◆ encoder_new

#define encoder_new ( )    FLAC__file_encoder_new()

Definition at line 10 of file flacencoder.h.

◆ encoder_setup

#define encoder_setup (   enc,
  streamable_subset,
  do_mid_side_stereo,
  loose_mid_side_stereo,
  channels,
  bits_per_sample,
  sample_rate,
  blocksize,
  max_lpc_order,
  qlp_coeff_precision,
  do_qlp_coeff_prec_search,
  do_escape_coding,
  do_exhaustive_model_search,
  min_residual_partition_order,
  max_residual_partition_order,
  rice_parameter_search_dist 
)
Value:
{ \
FLAC__file_encoder_set_streamable_subset(enc, streamable_subset); \
FLAC__file_encoder_set_do_mid_side_stereo(enc, do_mid_side_stereo); \
FLAC__file_encoder_set_loose_mid_side_stereo(enc, loose_mid_side_stereo); \
FLAC__file_encoder_set_channels(enc, channels); \
FLAC__file_encoder_set_bits_per_sample(enc, bits_per_sample); \
FLAC__file_encoder_set_sample_rate(enc, sample_rate); \
FLAC__file_encoder_set_blocksize(enc, blocksize); \
FLAC__file_encoder_set_max_lpc_order(enc, max_lpc_order); \
FLAC__file_encoder_set_qlp_coeff_precision(enc, qlp_coeff_precision); \
FLAC__file_encoder_set_do_qlp_coeff_prec_search(enc, do_qlp_coeff_prec_search); \
FLAC__file_encoder_set_do_escape_coding(enc, do_escape_coding); \
FLAC__file_encoder_set_do_exhaustive_model_search(enc, do_exhaustive_model_search); \
FLAC__file_encoder_set_min_residual_partition_order(enc, min_residual_partition_order); \
FLAC__file_encoder_set_max_residual_partition_order(enc, max_residual_partition_order); \
FLAC__file_encoder_set_rice_parameter_search_dist(enc, rice_parameter_search_dist); \
}

Definition at line 11 of file flacencoder.h.

◆ encoder_finish

#define encoder_finish (   enc)    FLAC__file_encoder_finish(enc)

Definition at line 35 of file flacencoder.h.

◆ encoder_delete

#define encoder_delete (   enc)    FLAC__file_encoder_delete(enc)

Definition at line 36 of file flacencoder.h.

◆ encoder_process

#define encoder_process (   enc,
  data,
  index 
)    FLAC__file_encoder_process(enc, data, index)

Definition at line 37 of file flacencoder.h.

◆ FLAC_ENCODER

#define FLAC_ENCODER   FLAC__FileEncoder

Definition at line 38 of file flacencoder.h.

◆ MAX_SAMPLES

#define MAX_SAMPLES   (588 * 4)

Definition at line 76 of file flacencoder.h.

◆ NUM_CHANNELS

#define NUM_CHANNELS   2

Definition at line 77 of file flacencoder.h.