首页 > 代码库 > 天天动听MP3解码器性能提升50%

天天动听MP3解码器性能提升50%

天天动听今日升级提醒,发现有一句
“使用新的MP3解码器,性能提升50%”,太惊讶了。
之前版本的MP3解码器使用libmpg123,效果已经是MP3解码器中非常不错的了。
50%的提升,应该不仅仅是优化这么简单,莫非使用的新的MP3解码器?

 

当前安卓版天天动听是7.3.1 和 上一个稳定版 7.2.1,下载后比较一下。
 
版本7.2.1仍然还是libmpg123解码器。
[gongyuliang@linux armeabi]$ pwd/home/gongyuliang/newversion/ttpod_android_v7.2.1/lib/armeabi[gongyuliang@linux armeabi]$ nm -D libmp3decplugin.so***************************************000103c0 T mpg123_add_string000102e4 T mpg123_add_substring000104a4 T mpg123_chomp_string0000eedc T mpg123_clip0000fc80 T mpg123_close00010288 T mpg123_copy_string0000ba88 T mpg123_current_decoder0000ed00 T mpg123_decode0000eb54 T mpg123_decode_frame0001b120 T mpg123_decode_frame_320000dcb4 T mpg123_decoder0000bab0 T mpg123_decoders0000fe54 T mpg123_delete00008974 T mpg123_delete_pars0000fb7c T mpg123_enc_from_id30000a718 T mpg123_encodings0000a744 T mpg123_encsize0000e2d0 T mpg123_eq0000ff28 T mpg123_errcode0000dbf4 T mpg123_exit0001b0ec T mpg123_feature0000ec88 T mpg123_feed0000f14c T mpg123_feedseek0001b13c T mpg123_feedseek_320000ac28 T mpg123_fmt0000aae8 T mpg123_fmt_all0000aa28 T mpg123_fmt_none0000ae20 T mpg123_fmt_support0000ade4 T mpg123_format0000abec T mpg123_format_all0000aaac T mpg123_format_none0000af0c T mpg123_format_support0000e9e4 T mpg123_framebyframe_decode0001b124 T mpg123_framebyframe_decode_320000eae8 T mpg123_framebyframe_next000091cc T mpg123_framedata0000a350 T mpg123_framepos0001b128 T mpg123_framepos_32000101e0 T mpg123_free_string0000e3b8 T mpg123_geteq0000eefc T mpg123_getformat0000dff8 T mpg123_getpar0000e1d0 T mpg123_getparam0000e20c T mpg123_getstate0000a2a0 T mpg123_getvolume00010270 T mpg123_grow_string0000fb08 T mpg123_icy0000fb74 T mpg123_icy2utf80000fa78 T mpg123_id30000fba0 T mpg123_index0001b148 T mpg123_index_3200009018 T mpg123_info0000dbb8 T mpg123_init000101cc T mpg123_init_string0000f4d0 T mpg123_length0001b154 T mpg123_length_320000fa50 T mpg123_meta_check0000fa64 T mpg123_meta_free0000dca0 T mpg123_new000088c8 T mpg123_new_pars0000fe24 T mpg123_open0001b114 T mpg123_open_320000fdf4 T mpg123_open_fd0001b118 T mpg123_open_fd_320000fd80 T mpg123_open_feed0000fda4 T mpg123_open_handle0001b11c T mpg123_open_handle_320000e9c4 T mpg123_outblock0000dd88 T mpg123_par0000df48 T mpg123_param0000dbf8 T mpg123_parnew0000fe7c T mpg123_plain_strerror00008418 T mpg123_position0001b150 T mpg123_position_320000a6f0 T mpg123_rates0000eeb0 T mpg123_read00008ac8 T mpg123_replace_buffer0000fd40 T mpg123_replace_reader0001b15c T mpg123_replace_reader_320000fcf0 T mpg123_replace_reader_handle0001b160 T mpg123_replace_reader_handle_3200008980 T mpg123_reset_eq00010204 T mpg123_resize_string0000e9bc T mpg123_safe_buffer0000f698 T mpg123_scan0000f880 T mpg123_seek0001b138 T mpg123_seek_320000f3c8 T mpg123_seek_frame0001b140 T mpg123_seek_frame_320000f4b0 T mpg123_set_filesize0001b158 T mpg123_set_filesize_320000fc1c T mpg123_set_index0001b14c T mpg123_set_index_3200010400 T mpg123_set_string000103ec T mpg123_set_substring00008330 T mpg123_spf0000ff40 T mpg123_strerror0001040c T mpg123_strlen0000bac0 T mpg123_supported_decoders0000eff4 T mpg123_tell0001b12c T mpg123_tell_320000f120 T mpg123_tell_stream0001b134 T mpg123_tell_stream_320000f0c0 T mpg123_tellframe0001b130 T mpg123_tellframe_320000ef98 T mpg123_timeframe0001b144 T mpg123_timeframe_3200008398 T mpg123_tpf0000a230 T mpg123_volume0000a278 T mpg123_volume_change***************************************
View Code

 

 然而版本7.3.1解码器换成了ttMP3Dec*,具体细节未知,有空去考察一下,有知道的朋友希望能交流一下。

[gongyuliang@linux armeabi]$ pwd
/home/gongyuliang/newversion/TTPod-Android-v7.3.1_H3/lib/armeabi
[gongyuliang@linux armeabi]$ nm -D libmp3decplugin.so
***************************************
00003cd0 T ttGetMP3DECAPII
00003f20 T ttMP3DecBits_Crc
0000e07c R ttMP3DecBrTab
00003f00 T ttMP3DecCalcBitsUsed
00008240 T ttMP3DecDCT32
00003d5c T ttMP3DecGetBits
0000434c T ttMP3DecHeaderDecode
000042ec T ttMP3DecHeaderSync
00003d48 T ttMP3DecInitBits
000072b8 T ttMP3DecLayerI
00007654 T ttMP3DecLayerII
00004850 T ttMP3DecLayerIII
0000fef0 R ttMP3DecRqTab
00003e78 T ttMP3DecSkipBits
0000e18c R ttMP3DecSrTab
000040d4 T ttMP3DecStreamInit
00007ffc T ttMP3DecSubbandFrame
00008d2c T ttMP3DecSynthMono
00008f28 T ttMP3DecSynthStereo
000089e0 T ttMP3Decidct9

***************************************