yansheng.wang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年6月17日

摘要: #ifdef WORDS_BIGENDIAN # define swap_uint16(x) (x) # define swap_sint16(x) (x) # define swap_uint32(x) (x) # define swap_number64(x) (x) #else /* !defined WORDS_BIGENDIAN */ /* swap 16 bits integers */ # define swap_uint16(x) ((uint16)((((x) & 0x00FFU) << 8) | \ (((x) & 0xFF00U) >&g 阅读全文
posted @ 2012-06-17 21:45 小小程序员001 阅读(343) 评论(0) 推荐(0)

摘要: 头文件:#ifndef _MP3_H_ #define _MP3_H_ #include "stdint.h" enum { BITRATE_MPEG1, BITRATE_MPEG2, BITRATE_NUM }; enum { SAMPLERATE_MPEG1, SAMPLERATE_MPEG2, SAMPLERATE_MPEG25, SAMPLERATE_NUM }; #define MP3_FRAME_SYNC 0xFFE00000 #define MASK_VERSION 0x00180000 #define SHIFT_VERSION 19 #... 阅读全文
posted @ 2012-06-17 21:22 小小程序员001 阅读(621) 评论(1) 推荐(0)

摘要: MP3文件格式解析Peter Lee 2008-06-05http://blog.csdn.net/sunshine1314/article/details/2514322目录一、概述二、整个MP3文件结构三、MP3帧格式1.帧头格式2. MAIN_DATA四、ID3标准1. ID3V12. ID3V2五、MP3文件实例剖析六、资料一、概述MP3 文件是由帧(frame)构成的,帧是 MP3 文件最小的组成单位。MP3 的全称应为 MPEG1 Layer-3 音频文件,MPEG(Moving Picture Experts Group)在汉语中译为活动图像专家组,特指活动影音压缩标准,MPEG 阅读全文
posted @ 2012-06-17 20:04 小小程序员001 阅读(5038) 评论(2) 推荐(0)