📄 readme.txt
字号:
Fixed-point MP3 decoder
Developed by RealNetworks, 2003
===============================
Overview
--------
This module contains a high-performance MPEG layer 3 audio decoder for 32-bit fixed-point
processors. The following is a quick summary of what is and is not supported:
Supported
- layer 3
- MPEG1, MPEG2, and MPEG2.5 (low sampling frequency extensions)
- constant bitrate, variable bitrate, and free bitrate modes
- mono and all stereo modes (normal stereo, joint stereo, dual-mono)
Not currently supported
- layers 1 and 2
Highlights
----------
- highly optimized for ARM processors (details in docs/ subdirectory)
- reference x86 implementation
- C and assembly code only (C++ not required)
- reentrant, statically linkable
- low memory (details in docs/ subdirectory)
- option to use Intel Integrated Performance Primitives (details below)
Supported platforms and toolchains
----------------------------------
This codec should run on any 32-bit fixed-point processor which can perform a full 32x32-bit
multiply (providing a 64-bit result). The following processors and toolchains are supported:
- x86, Microsoft Visual C++
- ARM, ARM Developer Suite (ADS)
- ARM, Microsoft Embedded Visual C++
- ARM, GNU toolchain (gcc)
ARM refers to any processor supporting ARM architecture v.4 or above. Thumb is not required.
Typically this means an ARM7TDMI or better (including ARM9, StrongARM, XScale, etc.)
Generally ADS produces the fastest code. EVC 3.0 does not support inline assembly code for
ARM targets, so calls to MULSHIFT32 (smull on ARM) are left as function calls. For the
fastest code on targets which do not normally use ADS consider compiling with ADS,
using the -S option to output assembly code, and feeding this assembly code to the assembler
of your choice. This might require some syntax changes in the .S file.
Adding support for a new processor is fairly simple. Simply add a new block to the file
real/assembly.h which implements the required inline assembly functions for your processor.
Something like
...
#elif defined NEW_PROCESSOR
/* you implement MULSHIFT32() and so forth */
#else
#error Unsupported platform in assembly.h
#endif
Optionally you can rewrite or add assembly language files optimized for your platform. Note
that many of the algorithms are designed for an ARM-type processor, so performance of the
unmodified C code might be noticeably worse on other architectures.
Adding support for a new toolchain should be straightforward. Use the sample projects or the
Umakefil as a template for which source files to include.
Directory structure
-------------------
fixpt/ platform-independent code and tables, public API
fixpt/docs algorithm notes, memory and CPU usage figures, optimization suggestions
fixpt/ipp source code which uses IPP for decoding (see the "IPP" section below)
fixpt/pub public header files
fixpt/real source code for RealNetworks' MP3 decoder
fixpt/testwrap sample code to build a command-line test application
Code organization
-----------------
fixpt/
mpadecobj.cpp optional shim which exports API used by Helix clients (see mp3/renderer)
mp3dec.c main decode functions, exports C-only API
mp3tabs.c common tables used by all implementations (bitrates, frame sizes, etc.)
fixpt/pub/
mp3common.h defines low-level codec API which mp3dec.c calls
mp3dec.h defines high-level codec API which applications call
mpadecobjfixpt.h optional C++ shim API (only necessary if mpadecobj.cpp is used)
statname.h symbols which get name-mangled by C preprocessor to allow static linking
fixpt/ipp source code for wrapper files which link in IPP libraries
fixpt/real full source code for RealNetworks MP3 decoder
To build an MP3 decoder library, you'll need to compile the top-level files and EITHER
real/*.c OR ipp/*.c and the correct IPP library.
Decoder using Real code: mp3dec.c + mp3tabs.c + real/*.c + real/arm/[files].s (if ARM)
Decoder using IPP code: mp3dec.c + mp3tabs.c + ipp/*.c + ippac*.lib
Although the real/ and ipp/ source code follow the same top-level API (for Dequantize(),
Subband(), etc.) mixing and matching is not guaranteed to work. The outputs might
be ordered differently for optimization purposes, scaled differently, etc.
IPP
---
For certain platforms Intel
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -