audioformats.minimp3

Translated to D by Guillaume Piolat. Stripped down a bit for the needs of audio-formats.

Members

Aliases

int16_t
alias int16_t = short
Undocumented in source.
int32_t
alias int32_t = int
Undocumented in source.
mp3d_sample_t
alias mp3d_sample_t = float
Undocumented in source.
uint16_t
alias uint16_t = ushort
Undocumented in source.
uint32_t
alias uint32_t = uint
Undocumented in source.
uint64_t
alias uint64_t = ulong
Undocumented in source.
uint8_t
alias uint8_t = ubyte
Undocumented in source.

Functions

HDR_GET_BITRATE
int HDR_GET_BITRATE(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_GET_LAYER
int HDR_GET_LAYER(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_GET_MY_SAMPLE_RATE
int HDR_GET_MY_SAMPLE_RATE(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_GET_SAMPLE_RATE
int HDR_GET_SAMPLE_RATE(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_GET_STEREO_MODE
int HDR_GET_STEREO_MODE(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_GET_STEREO_MODE_EXT
int HDR_GET_STEREO_MODE_EXT(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_IS_CRC
bool HDR_IS_CRC(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_IS_FRAME_576
bool HDR_IS_FRAME_576(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_IS_FREE_FORMAT
bool HDR_IS_FREE_FORMAT(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_IS_LAYER_1
bool HDR_IS_LAYER_1(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_IS_MONO
bool HDR_IS_MONO(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_IS_MS_STEREO
bool HDR_IS_MS_STEREO(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_TEST_I_STEREO
int HDR_TEST_I_STEREO(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_TEST_MPEG1
int HDR_TEST_MPEG1(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_TEST_MS_STEREO
int HDR_TEST_MS_STEREO(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_TEST_NOT_MPEG25
int HDR_TEST_NOT_MPEG25(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
HDR_TEST_PADDING
int HDR_TEST_PADDING(const(ubyte)* h)
Undocumented in source. Be warned that the author may not have intended to support it.
L12_apply_scf_384
void L12_apply_scf_384(L12_scale_info* sci, const(float)* scf, float* dst)
Undocumented in source. Be warned that the author may not have intended to support it.
L12_dequantize_granule
int L12_dequantize_granule(float* grbuf, bs_t* bs, L12_scale_info* sci, int group_size)
Undocumented in source. Be warned that the author may not have intended to support it.
L12_read_scale_info
void L12_read_scale_info(uint8_t* hdr, bs_t* bs, L12_scale_info* sci)
Undocumented in source. Be warned that the author may not have intended to support it.
L12_read_scalefactors
void L12_read_scalefactors(bs_t* bs, uint8_t* pba, uint8_t* scfcod, int bands, float* scf)
Undocumented in source. Be warned that the author may not have intended to support it.
L12_subband_alloc_table
const(L12_subband_alloc_t)* L12_subband_alloc_table(uint8_t* hdr, L12_scale_info* sci)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_antialias
void L3_antialias(float* grbuf, int nbands)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_change_sign
void L3_change_sign(float* grbuf)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_dct3_9
void L3_dct3_9(float* y)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_decode
void L3_decode(mp3dec_t* h, mp3dec_scratch_t* s, L3_gr_info_t* gr_info, int nch)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_decode_scalefactors
void L3_decode_scalefactors(uint8_t* hdr, uint8_t* ist_pos, bs_t* bs, L3_gr_info_t* gr, float* scf, int ch)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_huffman
void L3_huffman(float* dst, bs_t* bs, L3_gr_info_t* gr_info, const(float)* scf, int layer3gr_limit)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_idct3
void L3_idct3(float x0, float x1, float x2, float* dst)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_imdct12
void L3_imdct12(float* x, float* dst, float* overlap)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_imdct36
void L3_imdct36(float* grbuf, float* overlap, float* window, int nbands)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_imdct_gr
void L3_imdct_gr(float* grbuf, float* overlap, uint block_type, uint n_long_bands)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_imdct_short
void L3_imdct_short(float* grbuf, float* overlap, int nbands)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_intensity_stereo
void L3_intensity_stereo(float* left, uint8_t* ist_pos, L3_gr_info_t* gr, uint8_t* hdr)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_intensity_stereo_band
void L3_intensity_stereo_band(float* left, int n, float kl, float kr)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_ldexp_q2
float L3_ldexp_q2(float y, int exp_q2)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_midside_stereo
void L3_midside_stereo(float* left, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_pow_43
float L3_pow_43(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_read_scalefactors
void L3_read_scalefactors(uint8_t* scf, uint8_t* ist_pos, uint8_t* scf_size, uint8_t* scf_count, bs_t* bitbuf, int scfsi)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_read_side_info
int L3_read_side_info(bs_t* bs, L3_gr_info_t* gr, uint8_t* hdr)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_reorder
void L3_reorder(float* grbuf, float* scratch, const(uint8_t)* sfb)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_save_reservoir
void L3_save_reservoir(mp3dec_t* h, mp3dec_scratch_t* s)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_stereo_process
void L3_stereo_process(float* left, uint8_t* ist_pos, uint8_t* sfb, uint8_t* hdr, int* max_band, int mpeg2_sh)
Undocumented in source. Be warned that the author may not have intended to support it.
L3_stereo_top_band
void L3_stereo_top_band(const(float)* right, uint8_t* sfb, int nbands, int* max_band)
Undocumented in source. Be warned that the author may not have intended to support it.
MINIMP3_MAX
int MINIMP3_MAX(int a, int b)
Undocumented in source. Be warned that the author may not have intended to support it.
MINIMP3_MIN
int MINIMP3_MIN(int a, int b)
Undocumented in source. Be warned that the author may not have intended to support it.
MINIMP3_MIN
ulong MINIMP3_MIN(ulong a, ulong b)
Undocumented in source. Be warned that the author may not have intended to support it.
bs_init
void bs_init(bs_t* bs, const(uint8_t)* data, int bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
get_bits
uint32_t get_bits(bs_t* bs, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
hdr_bitrate_kbps
uint hdr_bitrate_kbps(uint8_t* h)
Undocumented in source. Be warned that the author may not have intended to support it.
hdr_compare
int hdr_compare(uint8_t* h1, uint8_t* h2)
Undocumented in source. Be warned that the author may not have intended to support it.
hdr_frame_bytes
int hdr_frame_bytes(uint8_t* h, int free_format_size)
Undocumented in source. Be warned that the author may not have intended to support it.
hdr_frame_samples
uint hdr_frame_samples(uint8_t* h)
Undocumented in source. Be warned that the author may not have intended to support it.
hdr_sample_rate_hz
uint hdr_sample_rate_hz(uint8_t* h)
Undocumented in source. Be warned that the author may not have intended to support it.
hdr_valid
int hdr_valid(uint8_t* h)
Undocumented in source. Be warned that the author may not have intended to support it.
mp3d_DCT_II
void mp3d_DCT_II(float* grbuf, int n)
Undocumented in source. Be warned that the author may not have intended to support it.
mp3d_scale_pcm
float mp3d_scale_pcm(float sample)
Undocumented in source. Be warned that the author may not have intended to support it.
mp3d_synth
void mp3d_synth(float* xl, mp3d_sample_t* dstl, int nch, float* lins)
Undocumented in source. Be warned that the author may not have intended to support it.
mp3d_synth_granule
void mp3d_synth_granule(float* qmf_state, float* grbuf, int nbands, int nch, mp3d_sample_t* pcm, float* lins)
Undocumented in source. Be warned that the author may not have intended to support it.
mp3d_synth_pair
void mp3d_synth_pair(mp3d_sample_t* pcm, int nch, const(float)* z)
Undocumented in source. Be warned that the author may not have intended to support it.
mp3dec_decode_frame
int mp3dec_decode_frame(mp3dec_t* dec, uint8_t* mp3, int mp3_bytes, mp3d_sample_t* pcm, mp3dec_frame_info_t* info)
Undocumented in source. Be warned that the author may not have intended to support it.
mp3dec_init
void mp3dec_init(mp3dec_t* dec)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

BITS_DEQUANTIZER_OUT
enum BITS_DEQUANTIZER_OUT;
Undocumented in source.
HDR_SIZE
enum HDR_SIZE;
Undocumented in source.
MAX_BITRESERVOIR_BYTES
enum MAX_BITRESERVOIR_BYTES;
Undocumented in source.
MAX_FRAME_SYNC_MATCHES
enum MAX_FRAME_SYNC_MATCHES;
Undocumented in source.
MAX_FREE_FORMAT_FRAME_SIZE
enum MAX_FREE_FORMAT_FRAME_SIZE;
Undocumented in source.
MAX_L3_FRAME_PAYLOAD_BYTES
enum MAX_L3_FRAME_PAYLOAD_BYTES;
Undocumented in source.
MAX_SCF
enum MAX_SCF;
Undocumented in source.
MAX_SCFI
enum MAX_SCFI;
Undocumented in source.
MINIMP3_MAX_SAMPLES_PER_FRAME
enum MINIMP3_MAX_SAMPLES_PER_FRAME;
Undocumented in source.
MODE_JOINT_STEREO
enum MODE_JOINT_STEREO;
Undocumented in source.
MODE_MONO
enum MODE_MONO;
Undocumented in source.
SHORT_BLOCK_TYPE
enum SHORT_BLOCK_TYPE;
Undocumented in source.
STOP_BLOCK_TYPE
enum STOP_BLOCK_TYPE;
Undocumented in source.

Static functions

L3_restore_reservoir
int L3_restore_reservoir(mp3dec_t* h, bs_t* bs, mp3dec_scratch_t* s, int main_data_begin)
Undocumented in source. Be warned that the author may not have intended to support it.
hdr_padding
int hdr_padding(uint8_t* h)
Undocumented in source. Be warned that the author may not have intended to support it.
mp3d_find_frame
int mp3d_find_frame(const(uint8_t)* mp3, int mp3_bytes, int* free_format_bytes, int* ptr_frame_bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
mp3d_match_frame
int mp3d_match_frame(uint8_t* hdr, int mp3_bytes, int frame_bytes)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

g_pow43
float[129 + 16] g_pow43;
Undocumented in source.

Structs

L12_scale_info
struct L12_scale_info
Undocumented in source.
L12_subband_alloc_t
struct L12_subband_alloc_t
Undocumented in source.
L3_gr_info_t
struct L3_gr_info_t
Undocumented in source.
bs_t
struct bs_t
Undocumented in source.
mp3dec_frame_info_t
struct mp3dec_frame_info_t
Undocumented in source.
mp3dec_scratch_t
struct mp3dec_scratch_t
Undocumented in source.
mp3dec_t
struct mp3dec_t
Undocumented in source.

Meta