Farina Simone
(Braidotti Enrico)
DECODING PROCESS
Input File
Huffman Decoding
Requantization
Alias Reconstruction
Reordering
Stereo Processing
Frequency Inversion
ALIAS RECONSTRUCTION
It is performed only when using long blocks: this means only when using pure long blocks or mixed blocks. Same signal encoded using long blocks
HYBRID SYNTHESIS
IMDCT (Inverse Modified Discrete Cosine Transform)
HYBRID SYNTHESIS
Fast IMDCT algorithm (Szu-Wei Lee )
Based on simmetric properties of cosine function It needs a rearranging stage to restore values to their original positions Drastically reduces number of operations if compared to direct implementation
(short/long)
Direct Implementation Fast IMDCT (Szu-Wei Lee) Improvement 216 / 648 33 / 43 84.7 % / 93.3 %
+ (short/long)
180 / 612 69 / 115 61.7 % / 81.2 %
HYBRID SYNTHESIS
Windowing
Once transformed, subbands are windowed according to value of block_type (subbands with short blocks are separately transformed for each window and then overlapped)
Overlap-adding First half of transformed blocks is overlapped with second half of the corresponding blocks in the previous granule
FREQUENCY INVERSION
Every second sample in every second subband has to be multiplied by -1.
time-consuming
stage of the overall decoding process
K. Konstantinides algorithm
32-point Fast DCT (B.G.Lee)
= N/2 log2 ( N )
+ < 3 N/2 log2 ( N )
WAVE STANDARD
Individuated by a 44-byte header, holds information about:
sampling frequency
number of channels ...
Uncompressed PCM audio samples (normally with 16 bits/sample resolution) stored in following way:
Istante di campionamento
1 (Left) 2 (Right)
1 (Left) 2 (Right)
PERFORMANCE ANALYSIS
PC Performances
The decoder, without optimization, works in real time on the following CPUs:
PERFORMANCE ANALYSIS
C6711 DSK Performances
The decoder, without optimization, doesnt work in real time on the board
Parallel port is used for data transfer and its very very slow Most algorithms need optimization (only Huffman Decoding is optimized) Code needs some ASM optimization to use the full-potential of the board architecture Whole decoding process (except data transfer TO external hard disk) takes about 10 times more than needed to work in real time. With optimization it is an easy goal to reach.
PERFORMANCE ANALYSIS
Time-occupation of optimized processes on C6711 DSK:
PERFORMANCE ANALYSIS
Time-occupation of optimized processes on C6711 DSK:
PERFORMANCE ANALYSIS
Time-occupation of other processes on C6711 DSK: