aboutsummaryrefslogtreecommitdiffstats
path: root/encode.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-07 11:28:48 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-07 11:28:48 +0100
commit5f4b06d150beed1e7d614705386eb7eab0a98be5 (patch)
tree792771807cb2328d4506ad6d49e52b1377c25935 /encode.h
downloadtoolame-dab-5f4b06d150beed1e7d614705386eb7eab0a98be5.tar.gz
toolame-dab-5f4b06d150beed1e7d614705386eb7eab0a98be5.tar.bz2
toolame-dab-5f4b06d150beed1e7d614705386eb7eab0a98be5.zip
add toolame-02l
Diffstat (limited to 'encode.h')
-rw-r--r--encode.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/encode.h b/encode.h
new file mode 100644
index 0000000..136967a
--- /dev/null
+++ b/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);
+