From 22f1fce330059ef8a383cf327a023d6a9da5ad3e Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 15 Feb 2016 02:44:20 +0100 Subject: Include toolame-dab as library --- libtoolame-dab/encode.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 libtoolame-dab/encode.h (limited to 'libtoolame-dab/encode.h') diff --git a/libtoolame-dab/encode.h b/libtoolame-dab/encode.h new file mode 100644 index 0000000..136967a --- /dev/null +++ b/libtoolame-dab/encode.h @@ -0,0 +1,47 @@ + +void create_ana_filter (double[SBLIMIT][64]); +void encode_info (frame_info *, Bit_stream_struc *); +void combine_LR (double[2][3][SCALE_BLOCK][SBLIMIT], + double[3][SCALE_BLOCK][SBLIMIT], int); +void scale_factor_calc (double[][3][SCALE_BLOCK][SBLIMIT], + unsigned int[][3][SBLIMIT], int, int); +void pick_scale (unsigned int[2][3][SBLIMIT], frame_info *, + double[2][SBLIMIT]); +void put_scale (unsigned int[2][3][SBLIMIT], frame_info *, + double[2][SBLIMIT]); +void transmission_pattern (unsigned int[2][3][SBLIMIT], + unsigned int[2][SBLIMIT], frame_info *); +void encode_scale (unsigned int[2][SBLIMIT], + unsigned int[2][SBLIMIT], + unsigned int[2][3][SBLIMIT], frame_info *, + Bit_stream_struc *); +int bits_for_nonoise (double[2][SBLIMIT], unsigned int[2][SBLIMIT], + frame_info *); +void main_bit_allocation (double[2][SBLIMIT], + unsigned int[2][SBLIMIT], + unsigned int[2][SBLIMIT], int *, + frame_info *, options *); + +int a_bit_allocation (double[2][SBLIMIT], unsigned int[2][SBLIMIT], + unsigned int[2][SBLIMIT], int *, frame_info *); +void subband_quantization (unsigned int[2][3][SBLIMIT], + double[2][3][SCALE_BLOCK][SBLIMIT], + unsigned int[3][SBLIMIT], + double[3][SCALE_BLOCK][SBLIMIT], + unsigned int[2][SBLIMIT], + unsigned int[2][3][SCALE_BLOCK][SBLIMIT], + frame_info *); +void encode_bit_alloc (unsigned int[2][SBLIMIT], frame_info *, + Bit_stream_struc *); +void sample_encoding (unsigned int[2][3][SCALE_BLOCK][SBLIMIT], + unsigned int[2][SBLIMIT], frame_info *, + Bit_stream_struc *); +void encode_CRC (unsigned int, Bit_stream_struc *); + +void maxmnr (double mnr[2][SBLIMIT], char used[2][SBLIMIT], int sblimit, int stereo, int *min_sb, int *min_ch); + +int VBR_bits_for_nonoise (double perm_smr[2][SBLIMIT], unsigned int scfsi[2][SBLIMIT], frame_info * frame, int vbrlevel); +void VBR_maxmnr (double mnr[2][SBLIMIT], char used[2][SBLIMIT], int sblimit, int stereo, int *min_sb, int *min_ch, options * glopts); +int VBR_bit_allocation (double perm_smr[2][SBLIMIT], + unsigned int scfsi[2][SBLIMIT], unsigned int bit_alloc[2][SBLIMIT], int *adb, frame_info * frame, options * glopts); + -- cgit v1.2.3