EE 382 Processor DesignWinter 98/99Michael Flynn 1 Client and Server processors Client incorporates –Multi Media (sound and video) –Imaging (3D) –Security.

Slides:



Advertisements
Similar presentations
MPEG & MP3 -supplement - from “ Graham McAllister - Nortel Networks ”
Advertisements

T.Sharon-A.Frank 1 Multimedia Compression Basics.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
MPEG: A Video Compression Standard for Multimedia Applications Václav Hlaváč CTU Prague, Initial material were slides of Didier.
Time-Frequency Analysis Analyzing sounds as a sequence of frames
INTERNATIONAL CONFERENCE ON TELECOMMUNICATIONS, ICT '09. TAREK OUNI WALID AYEDI MOHAMED ABID NATIONAL ENGINEERING SCHOOL OF SFAX New Low Complexity.
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
Digital Representation of Audio Information Kevin D. Donohue Electrical Engineering University of Kentucky.
Multimedia communications EG-371Dr Matt Roach Multimedia Communications EG 371 and EG 348 Dr Matthew Roach Lecture 2 Digital.
SWE 423: Multimedia Systems
Chapter 7 End-to-End Data
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
1 Audio Compression Techniques MUMT 611, January 2005 Assignment 2 Paul Kolesnik.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
1 CP Lecture 9 Media communication standards.
Spatial and Temporal Data Mining
1 Data Compression Engineering Math Physics (EMP) Steve Lyon Electrical Engineering.
T.Sharon-A.Frank 1 Multimedia Size of Data Frame.
MPEG Audio Compression by V. Loumos. Introduction Motion Picture Experts Group (MPEG) International Standards Organization (ISO) First High Fidelity Audio.
Computer Networks Chapter 3: Digital transmissions fundamentals Part 1.
CSc 461/561 CSc 461/561 Multimedia Systems 0. Introduction.
Multimedia Retrieval Architecture Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
An Introduction to H.264/AVC and 3D Video Coding.
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
1 Audio Compression Multimedia Systems (Module 4 Lesson 4) Summary: r Simple Audio Compression: m Lossy: Prediction based r Psychoacoustic Model r MPEG.
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Media File Formats Jon Ivins, DMU. Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This.
1 Digital Video. 2  Until the arrival of the Pentium processor, in 1993, even the most powerful PCs were limited to capturing images no more than 160.
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
Digital Representations Digital Video Special Effects Fall 2006.
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
MPEG: A Video Compression Standard for Multimedia Applications Didier Le Gall Communications of the ACM Volume 34, Number 4 Pages 46-58, 1991.
 Coding efficiency/Compression ratio:  The loss of information or distortion measure:
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
LECTURE Copyright  1998, Texas Instruments Incorporated All Rights Reserved Encoding of Waveforms Encoding of Waveforms to Compress Information.
Video Basics. Agenda Digital Video Compressing Video Audio Video Encoding in tools.
MPEG-1 and MPEG-2 Digital Video Coding Standards Author: Thomas Sikora Presenter: Chaojun Liang.
MPEG: (Moving Pictures Expert Group) A Video Compression Standard for Multimedia Applications Seo Yeong Geon Dept. of Computer Science in GNU.
10/10/04 L5/1/28 COM342 Networks and Data Communications Ian McCrumRoom 5D03B Tel: voice.
D ATA C OMMUNICATIONS Compression Techniques. D ATA C OMPRESSION Whether data, fax, video, audio, etc., compression can work wonders Compression can be.
DIGITAL Video. Video Creation Video captures the real world therefore video cannot be created in the same sense that images can be created video must.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
Chapter 7 – End-to-End Data Two main topics Presentation formatting Compression We will go over the main issues in presentation formatting, but not much.
22-Oct-15CPSC558: Advanced Computer Networks Chapter 7 End-to-End Data –Data Manipulating Functions (Affecting Throughputs) How to encode the message into.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
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.
MULTIMEDIA INPUT / OUTPUT TECHNOLOGIES
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Image Processing Architecture, © 2001, 2002, 2003 Oleh TretiakPage 1 ECE-C490 Image Processing Architecture MP-3 Compression Course Review Oleh Tretiak.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Class 9 LBSC 690 Information Technology Multimedia.
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.
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
JPEG Compression What is JPEG? Motivation
CSI-447: Multimedia Systems
Last updated on June 15, 2010 Doug Young Suh
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Algorithms in the Real World
Data Compression.
Chapter 7.2: Layer 5: Compression
Standards Presentation ECE 8873 – Data Compression and Modeling
Judith Molka-Danielsen, Oct. 02, 2000
Govt. Polytechnic Dhangar(Fatehabad)
Presentation transcript:

EE 382 Processor DesignWinter 98/99Michael Flynn 1 Client and Server processors Client incorporates –Multi Media (sound and video) –Imaging (3D) –Security and network accessibility –wireless communications Server incorporates –High speed processing –Management of large memory and file store complexes

EE 382 Processor DesignWinter 98/99Michael Flynn 2 Client processors Modern processors are being enhanced to support multimedia, security, etc. Most of the recent interesting processor developments have been in client processors –largest market, not dominated by clock speed, and more amenable to low power implement. –“system on a die”… includes dsp arithmetic and as much structured memory as possible.

EE 382 Processor DesignWinter 98/99Michael Flynn 3 Multi Media Includes video, audio, 3 D graphic imaging, as well as subsidiary functions such as music (composition and rendering), voice recognition, handwriting rec., animation Closely coupled to the display / presentation technology (raster line or pixel density, audio speaker fidelity / range)

EE 382 Processor DesignWinter 98/99Michael Flynn 4 Still Images/ Video/ Audio The problem is compression and meeting real time constraints –a B/W still image, 512 x 512 pixels, represents about 1/4 MB (8b/pixel); color (3B/pixel) almost 1MB; use 1 MB as a typical image –video requires 30 frames/sec; 30MB/sec; 1 hour is 108GB –voice requires 44k samples/sec; 3B/samples/sec 2 or more channels; about 1/4 MB/sec.

EE 382 Processor DesignWinter 98/99Michael Flynn 5 Still Images Lossless vs. Lossy compression –a simple bounded Huffman code gives 3:1 lossless compression JPEG is standard –offers (say) 25:1 lossy compression –tradeoffs: image quality  file size  computational complexity

EE 382 Processor DesignWinter 98/99Michael Flynn 6 JPEG Image is partitioned into 8 x 8 pixel blocks –transform into frequency domain by DCT (the high freq components are at the high index values of the resultant 8 x 8 matrix and often = 0. –Quantize (the lossy step) map values to few numbers –Zig zag access, to access low freq components (non 0) values first. –Huffman (run length) encode values

EE 382 Processor DesignWinter 98/99Michael Flynn 7 Discrete cosine transform (DCT) Map X (spatial domain) to Y (freq. domain) –more compact representation, use 8 x 8 pixel blk –y[u,v] =(4C(u) C(v)/n2) SjSkx(u,v) cos(2j+1) up/2n cos(2k+1) vp/2n –C(w) = 1for w=1,2… or C(w) = 1/sqrt2 for w=0 –better than discrete Fourier transform, but needs more computation

EE 382 Processor DesignWinter 98/99Michael Flynn 8 DCT basis functions

EE 382 Processor DesignWinter 98/99Michael Flynn 9 Block diagram of JPEG encoder

EE 382 Processor DesignWinter 98/99Michael Flynn 10 Video Popular standards: –H263 (video conferencing) –MPEG 1 (VHS quality) –MPEG 2 (Broadcast quality) –MPEG 4 (uses VOPs to achieve high quality with good compression)…. More complex, an emerging standard

EE 382 Processor DesignWinter 98/99Michael Flynn 11 Typical compression Image size, quality and delay are factors Lossless 3:1 JPEG 25:1 MPEG1 100:1 uses 352x288 CIF; 1-2 sec H 263 maybe 300:1; QCIF 176x144; 1/4sec MPEG2 4xCIF uses lower Q; longer delay

EE 382 Processor DesignWinter 98/99Michael Flynn 12 MPEG frames Three types of frames: –I intra-picture, like lossy JPEG –P predicted picture, motion prediction based on earlier I; motion vector plus error terms, as error terms are small quantizing gives good compression –B bidirectional pictures, motion prediction based on past and future I or P –result is GOP, e.g. IPBBPBBPBBPBBPBBI

EE 382 Processor DesignWinter 98/99Michael Flynn 13 I frames In MPEG typically use 1 I per 15 frames In H263 maybe 1 I per 300 frames I frames take (maybe) 4 x bits to represent than a P or B frame.

EE 382 Processor DesignWinter 98/99Michael Flynn 14 MPEG block diagram

EE 382 Processor DesignWinter 98/99Michael Flynn 15 P frames Motion prediction is computationally intensive; based on macro blocks 2 x 2 blocks 16 x 16 of luminance, 1 8 x 8 Cr, 1 8 x 8 Cb, color is interleaved (called 4:2:0)

EE 382 Processor DesignWinter 98/99Michael Flynn 16 Motion estimation process

EE 382 Processor DesignWinter 98/99Michael Flynn 17 Forward motion compensation

EE 382 Processor DesignWinter 98/99Michael Flynn 18 Motion estimation Computation intensive Compute SAD for all neighboring macro block combinations (index by 1 pixel). S [xi,j  yi,k] across all macro blocks Find location that minimizes SAD

EE 382 Processor DesignWinter 98/99Michael Flynn 19 Bidirectional motion compensation

EE 382 Processor DesignWinter 98/99Michael Flynn 20 Block diagram of MPEG encoder

EE 382 Processor DesignWinter 98/99Michael Flynn 21 Instructions /pixel JPEG about 320 to compress;280 to decode MPEG1 about 1100 to compress; about 80 to decode. Note problem in motion estimation; need 352 x 288 x 1100 x 30 instr /sec = 3.3 GIPS for MPEG1 to compress. MPEG2 uses bigger frames; better motion estimation and color …maybe…20 GIPS

EE 382 Processor DesignWinter 98/99Michael Flynn 22 Video memory Even if we have enough arithmetic BW, memory (cache) access is a problem. A single CIF frame has 200  400 kB and won’t fit into a L2 caches less than (say) 1 or 2 MB. Worse is the behavior of the L1 D cache. There are NO hits after a line is used. Solution: prefetch and stride prediction caches at L1.

EE 382 Processor DesignWinter 98/99Michael Flynn 23 Audio Frequency range 20-20k 2x sampling Sample rates 8k telephone 22k personal computers 32k digital audio and TV 44k CDs 48k HDTV, DAT

EE 382 Processor DesignWinter 98/99Michael Flynn 24 Audio Dynamic range: 0 to 120db about 20 bits of exponent Phasing: 2 or more channels to locate source Clipping: ear tolerates about 200ms delay, after 300ms becomes annoying. Bit rates: 44k x 20 x 2 = 1.7 Mbps or (PCs) 22k x 16 = 352 kbps

EE 382 Processor DesignWinter 98/99Michael Flynn 25 Audio Can do better by compression; use ADPCM and send the difference between adjacent pulses… G722 standard 16k with ADPCM to fit into 64kbps. G728 uses linear predictive coder achieves 16kbps. Models voice as a linear filter; matches sample with codebook, send index into receivers codebook

EE 382 Processor DesignWinter 98/99Michael Flynn 26 MPEG audio Compresses digital audio signals (PCM) Uses 32 sub band filters (512 taps), samples shifted 32 at a time. Computation is s(i) = Snx(t- n) Hi(n) over n = 512 per sample Hi(n) is the impulse response for the ith filter. Thus we have 512 multiply- accumulates per sample. About 22Mops/sec

EE 382 Processor DesignWinter 98/99Michael Flynn 27 MPEG Audio Sample rates 32, 44, 48 kHz Mono, stereo or joint stereo Bit rates 64kbps to 128kbps, several layers and coder complexity to get better bit rates and/or better quality. Computationally requires probably million multiply-adds per second (16b).

EE 382 Processor DesignWinter 98/99Michael Flynn 28 MPEG audio encoder