33#ifndef FLACPP__ENCODER_H
34#define FLACPP__ENCODER_H
125 inline operator bool()
const {
return is_valid(); }
155 virtual void get_verify_decoder_error_stats(FLAC__uint64 *absolute_sample, uint32_t *frame_number, uint32_t *channel, uint32_t *sample, FLAC__int32 *expected, FLAC__int32 *got);
180 virtual bool process(
const FLAC__int32 *
const buffer[], uint32_t samples);
198#if (defined __BORLANDC__) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
205 static ::FLAC__StreamEncoderWriteStatus write_callback_(const ::FLAC__StreamEncoder *encoder,
const FLAC__byte buffer[],
size_t bytes, uint32_t samples, uint32_t current_frame,
void *client_data);
212 void operator=(
const Stream &);
250 virtual void progress_callback(FLAC__uint64 bytes_written, FLAC__uint64 samples_written, uint32_t frames_written, uint32_t total_frames_estimate);
255 static void progress_callback_(const ::FLAC__StreamEncoder *encoder, FLAC__uint64 bytes_written, FLAC__uint64 samples_written, uint32_t frames_written, uint32_t total_frames_estimate,
void *client_data);
259 void operator=(
const Stream &);
This module contains #defines and symbols for exporting function calls, and providing version informa...
Definition: decoder.h:104
This class wraps the FLAC__StreamEncoder. If you are not encoding to a file, you may need to use FLAC...
Definition: encoder.h:235
virtual ::FLAC__StreamEncoderInitStatus init_ogg(const char *filename)
See FLAC__stream_encoder_init_ogg_file()
virtual ::FLAC__StreamEncoderInitStatus init_ogg(const std::string &filename)
See FLAC__stream_encoder_init_ogg_file()
virtual ::FLAC__StreamEncoderInitStatus init(const char *filename)
See FLAC__stream_encoder_init_file()
virtual ::FLAC__StreamEncoderInitStatus init(const std::string &filename)
See FLAC__stream_encoder_init_file()
virtual ::FLAC__StreamEncoderInitStatus init_ogg(FILE *file)
See FLAC__stream_encoder_init_ogg_FILE()
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], size_t bytes, uint32_t samples, uint32_t current_frame)
This is a dummy implementation to satisfy the pure virtual in Stream that is actually supplied intern...
virtual void progress_callback(FLAC__uint64 bytes_written, FLAC__uint64 samples_written, uint32_t frames_written, uint32_t total_frames_estimate)
See FLAC__StreamEncoderProgressCallback.
virtual ::FLAC__StreamEncoderInitStatus init(FILE *file)
See FLAC__stream_encoder_init_FILE()
Definition: encoder.h:106
This class wraps the FLAC__StreamEncoder. If you are encoding to a file, FLAC::Encoder::File may be m...
Definition: encoder.h:102
virtual bool get_do_mid_side_stereo() const
See FLAC__stream_encoder_get_do_mid_side_stereo()
virtual bool set_do_mid_side_stereo(bool value)
See FLAC__stream_encoder_set_do_mid_side_stereo()
virtual bool set_max_residual_partition_order(uint32_t value)
See FLAC__stream_encoder_set_max_residual_partition_order()
virtual bool get_do_exhaustive_model_search() const
See FLAC__stream_encoder_get_do_exhaustive_model_search()
virtual ::FLAC__StreamEncoderInitStatus init()
See FLAC__stream_encoder_init_stream()
virtual bool set_compression_level(uint32_t value)
See FLAC__stream_encoder_set_compression_level()
virtual bool set_limit_min_bitrate(bool value)
See FLAC__stream_encoder_set_limit_min_bitrate()
virtual void get_verify_decoder_error_stats(FLAC__uint64 *absolute_sample, uint32_t *frame_number, uint32_t *channel, uint32_t *sample, FLAC__int32 *expected, FLAC__int32 *got)
See FLAC__stream_encoder_get_verify_decoder_error_stats()
virtual bool set_do_exhaustive_model_search(bool value)
See FLAC__stream_encoder_set_do_exhaustive_model_search()
virtual bool set_blocksize(uint32_t value)
See FLAC__stream_encoder_set_blocksize()
virtual bool set_min_residual_partition_order(uint32_t value)
See FLAC__stream_encoder_set_min_residual_partition_order()
virtual ::FLAC__StreamEncoderReadStatus read_callback(FLAC__byte buffer[], size_t *bytes)
See FLAC__StreamEncoderReadCallback.
virtual bool set_do_escape_coding(bool value)
See FLAC__stream_encoder_set_do_escape_coding()
virtual bool set_apodization(const char *specification)
See FLAC__stream_encoder_set_apodization()
virtual bool get_streamable_subset() const
See FLAC__stream_encoder_get_streamable_subset()
virtual uint32_t get_bits_per_sample() const
See FLAC__stream_encoder_get_bits_per_sample()
virtual ::FLAC__StreamEncoderTellStatus tell_callback(FLAC__uint64 *absolute_byte_offset)
See FLAC__StreamEncoderTellCallback.
virtual bool set_sample_rate(uint32_t value)
See FLAC__stream_encoder_set_sample_rate()
virtual bool set_total_samples_estimate(FLAC__uint64 value)
See FLAC__stream_encoder_set_total_samples_estimate()
virtual bool set_metadata(FLAC::Metadata::Prototype **metadata, uint32_t num_blocks)
See FLAC__stream_encoder_set_metadata()
virtual bool set_qlp_coeff_precision(uint32_t value)
See FLAC__stream_encoder_set_qlp_coeff_precision()
virtual bool set_channels(uint32_t value)
See FLAC__stream_encoder_set_channels()
virtual ::FLAC__StreamEncoderInitStatus init_ogg()
See FLAC__stream_encoder_init_ogg_stream()
virtual bool set_bits_per_sample(uint32_t value)
See FLAC__stream_encoder_set_bits_per_sample()
virtual bool is_valid() const
virtual bool get_loose_mid_side_stereo() const
See FLAC__stream_encoder_get_loose_mid_side_stereo()
virtual uint32_t get_max_residual_partition_order() const
See FLAC__stream_encoder_get_max_residual_partition_order()
virtual uint32_t get_blocksize() const
See FLAC__stream_encoder_get_blocksize()
virtual bool get_do_qlp_coeff_prec_search() const
See FLAC__stream_encoder_get_do_qlp_coeff_prec_search()
virtual ::FLAC__StreamEncoderSeekStatus seek_callback(FLAC__uint64 absolute_byte_offset)
See FLAC__StreamEncoderSeekCallback.
virtual bool set_rice_parameter_search_dist(uint32_t value)
See FLAC__stream_encoder_set_rice_parameter_search_dist()
virtual uint32_t get_qlp_coeff_precision() const
See FLAC__stream_encoder_get_qlp_coeff_precision()
virtual bool set_verify(bool value)
See FLAC__stream_encoder_set_verify()
virtual bool set_streamable_subset(bool value)
See FLAC__stream_encoder_set_streamable_subset()
virtual Decoder::Stream::State get_verify_decoder_state() const
See FLAC__stream_encoder_get_verify_decoder_state()
virtual uint32_t get_channels() const
See FLAC__stream_encoder_get_channels()
virtual bool set_do_qlp_coeff_prec_search(bool value)
See FLAC__stream_encoder_set_do_qlp_coeff_prec_search()
State get_state() const
See FLAC__stream_encoder_get_state()
virtual bool get_verify() const
See FLAC__stream_encoder_get_verify()
virtual bool set_loose_mid_side_stereo(bool value)
See FLAC__stream_encoder_set_loose_mid_side_stereo()
virtual uint32_t get_max_lpc_order() const
See FLAC__stream_encoder_get_max_lpc_order()
virtual uint32_t get_rice_parameter_search_dist() const
See FLAC__stream_encoder_get_rice_parameter_search_dist()
virtual bool get_do_escape_coding() const
See FLAC__stream_encoder_get_do_escape_coding()
virtual uint32_t get_min_residual_partition_order() const
See FLAC__stream_encoder_get_min_residual_partition_order()
virtual bool set_metadata(::FLAC__StreamMetadata **metadata, uint32_t num_blocks)
See FLAC__stream_encoder_set_metadata()
virtual bool process(const FLAC__int32 *const buffer[], uint32_t samples)
See FLAC__stream_encoder_process()
virtual uint32_t get_sample_rate() const
See FLAC__stream_encoder_get_sample_rate()
virtual bool get_limit_min_bitrate() const
See FLAC__stream_encoder_get_limit_min_bitrate()
virtual bool process_interleaved(const FLAC__int32 buffer[], uint32_t samples)
See FLAC__stream_encoder_process_interleaved()
virtual FLAC__uint64 get_total_samples_estimate() const
See FLAC__stream_encoder_get_total_samples_estimate()
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], size_t bytes, uint32_t samples, uint32_t current_frame)=0
See FLAC__StreamEncoderWriteCallback.
virtual bool finish()
See FLAC__stream_encoder_finish()
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata)
See FLAC__StreamEncoderMetadataCallback.
virtual bool set_ogg_serial_number(long value)
See FLAC__stream_encoder_set_ogg_serial_number()
virtual bool set_max_lpc_order(uint32_t value)
See FLAC__stream_encoder_set_max_lpc_order()
This module contains the classes which implement the various decoders.
const char *const FLAC__StreamEncoderStateString[]
FLAC__StreamEncoderReadStatus
Definition: stream_encoder.h:362
FLAC__StreamEncoderWriteStatus
Definition: stream_encoder.h:388
FLAC__StreamEncoderInitStatus
Definition: stream_encoder.h:293
FLAC__StreamEncoderSeekStatus
Definition: stream_encoder.h:408
FLAC__StreamEncoderTellStatus
Definition: stream_encoder.h:431
FLAC__StreamEncoderState
Definition: stream_encoder.h:241
const char * FLAC__stream_encoder_get_resolved_state_string(const FLAC__StreamEncoder *encoder)
#define FLACPP_API
Definition: export.h:88
This module contains the functions which implement the stream encoder.
Definition: stream_encoder.h:464