Skip to main content

Crate shine_rs

Crate shine_rs 

Source
Expand description

§Rust MP3 Encoder

A pure Rust implementation of an MP3 encoder based on the shine library. This library provides a complete MP3 Layer III encoding solution with support for various sample rates, bitrates, and channel configurations.

Re-exports§

pub use mp3_encoder::encode_pcm_to_mp3;
pub use mp3_encoder::Mp3Encoder;
pub use mp3_encoder::Mp3EncoderConfig;
pub use mp3_encoder::StereoMode;
pub use mp3_encoder::SUPPORTED_BITRATES;
pub use mp3_encoder::SUPPORTED_SAMPLE_RATES;
pub use encoder::shine_close;
pub use encoder::shine_encode_buffer_interleaved;
pub use encoder::shine_flush;
pub use encoder::shine_initialise;
pub use encoder::shine_set_config_mpeg_defaults;
pub use encoder::ShineConfig;
pub use encoder::ShineMpeg;
pub use encoder::ShineWave;
pub use error::ConfigError;
pub use error::EncoderError;
pub use error::EncodingError;
pub use error::EncodingResult;
pub use error::InputDataError;
pub use types::ShineGlobalConfig;

Modules§

bitstream
Bitstream writing functionality for MP3 encoding
encoder
MP3 encoder implementation
error
Error types for the MP3 encoder
huffman
Huffman coding implementation for MP3 encoding
mdct
MDCT (Modified Discrete Cosine Transform) implementation
mp3_encoder
高级MP3编码器接口
quantization
Quantization and rate control for MP3 encoding
reservoir
Bit reservoir implementation for MP3 encoding
subband
Subband analysis filterbank implementation
tables
Lookup tables and constants for MP3 encoding
types
Type definitions for MP3 encoding

Functions§

get_current_frame_number
get_next_frame_number
reset_frame_counter