Developement and Implementation of an MPEG1 Layer III Decoder on x86 and TMS320C6711 platforms Braidotti Enrico (Farina Simone)

Slides:



Advertisements
Similar presentations
T.Sharon-A.Frank 1 Multimedia Compression Basics.
Advertisements

MP3 Overview John Ehrhardt Elena Silenok CSE228 – Spring 03.
Department of Computer Engineering University of California at Santa Cruz MPEG Audio Compression Layer 3 (MP3) Hai Tao.
CS335 Principles of Multimedia Systems Audio Hao Jiang Computer Science Department Boston College Oct. 11, 2007.
MP3 Optimization Exploiting Processor Architecture and Using Better Algorithms Mancia Anguita Universidad de Granada J. Manuel Martinez – Lechado Vitelcom.
MPEG-1 MUMT-614 Jan.23, 2002 Wes Hatch. Purpose of MPEG encoding To decrease data rate How? –two choices: could decrease sample rate, but this would cause.
Audio Coding Team Member: ChungMing Yan, Chun Tong.
Data Compression CS 147 Minh Nguyen.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
Time-Frequency Analysis Analyzing sounds as a sequence of frames
Dale & Lewis Chapter 3 Data Representation Analog and digital information The real world is continuous and finite, data on computers are finite  need.
4-Integrating Peripherals in Embedded Systems (cont.)
Digital Representation of Audio Information Kevin D. Donohue Electrical Engineering University of Kentucky.
1 Digital Audio Compression. 2 Formats  There are many different formats for storing and communicating digital audio:  CD audio  Wav  Aiff  Au 
Chapter 7 End-to-End Data
School of Computing Science Simon Fraser University
1 Audio Compression Techniques MUMT 611, January 2005 Assignment 2 Paul Kolesnik.
MPEG-3 For Audio Presented by: Chun Lui Sunjeev Sikand.
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
JPEG.
MPEG Audio Compression by V. Loumos. Introduction Motion Picture Experts Group (MPEG) International Standards Organization (ISO) First High Fidelity Audio.
ATSC Digital Television
Porta-AMP Portable Audio MP3 Player By : Kevin Mlazgar Dan Leder Edmund Fung John Koob.
Audio & Video Representation CS105. Data Representation Types of data: – Numbers – Text – Images – Audio & Video.
Developement and Implementation of an MPEG1 Layer III Decoder on x86 and TMS320C6711 platforms Farina Simone (Braidotti Enrico)
MPEG-2 Transport streams tMyn1 MPEG-2 Transport streams The MPEG-2 Systems Standard specifies two methods for multiplexing the audio, video and other data.
Audio CompressiontMyn1 Audio Compression Audio compression has become well entrenched in consumer and professional digital audio products such as the compact.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
1 Audio Compression Multimedia Systems (Module 4 Lesson 4) Summary: r Simple Audio Compression: m Lossy: Prediction based r Psychoacoustic Model r MPEG.
Data Structures and Algorithms Huffman compression: An Application of Binary Trees and Priority Queues.
{ Lossy Compression William Dayton Nick Trojanowski.
Basics of Compression Goals: to understand how image/audio/video signals are compressed to save storage and increase transmission efficiency to understand.
JPEG C OMPRESSION A LGORITHM I N CUDA Group Members: Pranit Patel Manisha Tatikonda Jeff Wong Jarek Marczewski Date: April 14, 2009.
ECE242 L30: Compression ECE 242 Data Structures Lecture 30 Data Compression.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
Audio Compression Usha Sree CMSC 691M 10/12/04. Motivation Efficient Storage Streaming Interactive Multimedia Applications.
1 4-Integrating Peripherals in Embedded Systems (cont.)
: Chapter 12: Image Compression 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Klara Nahrstedt Spring 2011
1 Analysis of Algorithms Chapter - 08 Data Compression.
MPEG Audio coders. Motion Pictures Expert Group(MPEG) The coders associated with audio compression part of MPEG standard are called MPEG audio compressor.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
1 Audio Compression. 2 Digital Audio  Human auditory system is much more sensitive to quality degradation then is the human visual system  redundancy.
8. 1 MPEG MPEG is Moving Picture Experts Group On 1992 MPEG-1 was the standard, but was replaced only a year after by MPEG-2. Nowadays, MPEG-2 is gradually.
1 Classification of Compression Methods. 2 Data Compression  A means of reducing the size of blocks of data by removing  Unused material: e.g.) silence.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Huffman Code and Data Decomposition Pranav Shah CS157B.
Huffman Codes Juan A. Rodriguez CS 326 5/13/2003.
MPEG-1Standard By Alejandro Mendoza. Introduction The major goal of video compression is to represent a video source with as few bits as possible while.
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
Guerino Mazzola (Fall 2015 © ): Introduction to Music Technology IIIDigital Audio III.7 (M Nov 04) The MP3 frame format.
IntroductiontMyn1 Introduction MPEG, Moving Picture Experts Group was started in 1988 as a working group within ISO/IEC with the aim of defining standards.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Characters CS240.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
MP3 and AAC Trac D. Tran ECE Department The Johns Hopkins University Baltimore MD
Data Compression: Huffman Coding in Weiss (p.389)
III Digital Audio III.7 (W Nov 04) The MP3 frame format.
JPEG Compression What is JPEG? Motivation
Data Compression.
III Digital Audio III.5 (W Oct 18) MP3 and other digital audio file formats.
III Digital Audio III.7 (F Oct 20) The MP3 frame format.
Data Compression.
Data Compression CS 147 Minh Nguyen.
Topic 3: Data Compression.
III Digital Audio III.7 (Mo Oct 22) The MP3 frame format.
MPEG-1 Overview of MPEG-1 Standard
Image Coding and Compression
Govt. Polytechnic Dhangar(Fatehabad)
Presentation transcript:

Developement and Implementation of an MPEG1 Layer III Decoder on x86 and TMS320C6711 platforms Braidotti Enrico (Farina Simone)

What is MPEG1 Layer III ? Frequently referred to as “MP3” Method to store compressed audio (LOSSY ) Developed by Moving Pictures Expert Group (MPEG) Standard ISO/IEC (Audio Part 3), 1991 Compression rate w/out recognizeable quality loss up to 12x Last release of MPEG1 family: –Highest complexity –Provides best quality

Standard MPEG1 3 possible compression types (increasing complexity): –Layer I –Layer II –Layer III Sampling frequencies for Layer III: –32 kHz –44.1 kHz –48 kHz Bitrates: –Min 32 kbit/s –Max 320 kbit/s Compact Disc: 1.41 Mbit/s

BITSTREAM FORMAT Whole bitstream is divided into frames of defined length: framesize = 144· bitrate / sampling frequency + padding (bytes) Frames are divided in 2 granules and are composed by different parts: Header CRC (optional) Side Information Main data Ancillary data (optional)

FRAME HEADER Syncword = 12 bits put to ‘1’ ID = 1 for MPEG1 Audio (2 bits used for MPEG2 and 2.5) Padding = to adjust framesize (and effective bitrate of CBR files)

SIDE INFORMATION Length depends on number of channels 17 bytes for single channel 32 bytes for others Contains all necessary informations for decoding the Main data section Main structure is:

BIT RESERVOIR It is one of the most important features of Layer III format and it works as follows (use of main_data_end ):

MAIN DATA SCALEFACTORS informations in the Side Information section HUFFMAN CODED DATA extraction of scaled frequency lines (not ordered in some cases)

DECODING PROCESS

DECODING STEPS SYNCHRONIZATION HEADER DECODING SKIPPING CRC (if present) SIDE INFO DECODING SCALEFACTORS DECODING

HUFFMAN DECODING Lossless - type coding / decoding Fixed – variable Based on 18 Huffman Tables (specific for MPEG1) Codewords up to 19-bit long Tables up to 256 values

HUFFMAN DECODING Big Values Region 0 Region 1 Region 2 Count 1 RZero

HUFFMAN DECODING Couple of f. lines ( big-values ) Quadruple of f. lines ( count1 )

HUFFMAN DECODING CLUSTERED HUFFMAN DECODING (R. Hashemian ) Compromise between binary-tree and direct look-up decoding Custom made Huffman tables containing 16-bit words Structure of words depend on HIT / MISS:

HUFFMAN DECODING Example Huffman Table 1 x y len codeword Address HIT / MISS New Address Bits xy 0MISS101 1HIT00 10MISS HIT10 100HIT11 101HIT01 Clustered Table 1

REQUANTIZATION (DESCALING) The Huffman decoded frequency lines are restored to their original values according to the following formulas:

REQUANTIZATION (DESCALING) Use of large look-up table with all possible values of modulus of Huffman decoded data (0 → = 8206) pros: speed, accuracy cons: memory requirements (32 KByte with float precision) Reduced Look-up table pros: table is 87.5 % smaller (4 KByte with float precision) cons: speed (need to calculate is· 0.125), accuracy

REQUANTIZATION (DESCALING) Shift – based power computing (T. Uželac ) Requantization has to be done up to 2304 times each frame, direct computation of: would require too many clock cycles

REQUANTIZATION (DESCALING) shift operations 2 small look-up tables (total of 32 Bytes) scale = scalefac_scale + 1; a = global_gain (scalefac_long << scale); if (preflag) a -= (pretab << scale); if (a < -127) y = 0; if (a >= 0) y = tab[a&3]*(1 > 2)); else y = tabi[(-a)&3]/(1 > 2)); tab contains values: [2 0, 2 1/4, 2 1/2, 2 3/4 ] tabi contains values: [2 0, 2 -1/4, 2 -1/2, 2 -3/4 ]

STEREO PROCESSING INTENSITY STEREO In the critical bands higher than 2 kHz, the sensation of stereo is given mainly by the envelope of the signal. The encoder codes only one sum - like signal and the decoder extracts separate L and R with different scalefactors MIDDLE/SIDE STEREO Encoding of the Middle (L+R) and Side (L-R) signals for reducing redundant elements

STEREO PROCESSING There are 4 different typologies of transmission for stereophonic signals (according to mode_extension, found in the header ):

STEREO PROCESSING MIDDLE/SIDE STEREO Left and Right channels are simply reconstructed according to: INTENSITY STEREO Values are read from the Rzero part of Left channel and IS positions is_pos (sfb ) are read from scalefactors of right channel:

REORDERING It is performed only when using short blocks: this is due to the way the MDCT in the encoder arranges the output lines.