Chapter 7 End-to-End Data

Slides:



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

15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Compression CS 147 Minh Nguyen.
Chapter 7 End-to-End Data Ohanes Dadian, Danny Luong, Yu Lu.
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
CSc 461/561 Multimedia Systems Part B: 2. Lossy Compression
End-to-End Data Outline Presentation Formatting Data Compression.
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Multimedia Data The DCT and JPEG Image Compression Dr Mike Spann Electronic, Electrical and Computer.
2007Theo Schouten1 Compression "lossless" : f[x,y]  { g[x,y] = Decompress ( Compress ( f[x,y] ) | “lossy” : quality measures e 2 rms = 1/MN  ( g[x,y]
CS430 © 2006 Ray S. Babcock Lossy Compression Examples JPEG MPEG JPEG MPEG.
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
©Brooks/Cole, 2003 Chapter 15 Data Compression. ©Brooks/Cole, 2003 Realize the need for data compression. Differentiate between lossless and lossy compression.
CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards.
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
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.
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.
MULTIMEDIA TECHNOLOGY SMM 3001 DATA COMPRESSION. In this chapter The basic principles for compressing data The basic principles for compressing data Data.
1 Computer Networks: A Systems Approach, 5e Larry L. Peterson and Bruce S. Davie Chapter 7 End-to-End Data Copyright © 2010, Elsevier Inc. All rights Reserved.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
D ATA C OMMUNICATIONS Compression Techniques. D ATA C OMPRESSION Whether data, fax, video, audio, etc., compression can work wonders Compression can be.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Multimedia Data DCT Image Compression
Indiana University Purdue University Fort Wayne Hongli Luo
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
JPEG CIS 658 Fall 2005.
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 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
Spring 2001CS Multimedia, QoS Multimedia (7.2, 9.3) Compression RTP Realtime Applications Integrated Services Differentiated Services Quality.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 22 – April 1, 2010.
JPEG.
Page 11/28/2016 CSE 40373/60373: Multimedia Systems Quantization  F(u, v) represents a DCT coefficient, Q(u, v) is a “quantization matrix” entry, and.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
JPEG Compression What is JPEG? Motivation
IMAGE COMPRESSION.
Chapter 9 Image Compression Standards
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Algorithms in the Real World
Digital Image Processing Lecture 21: Lossy Compression May 18, 2005
Data Compression.
Image Compression Standards (JPEG)
Chapter 7.2: Layer 5: Compression
Data Compression CS 147 Minh Nguyen.
CMPT 365 Multimedia Systems
Judith Molka-Danielsen, Oct. 02, 2000
Image Coding and Compression
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Chapter 8 – Compression Aims: Outline the objectives of compression.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Presentation transcript:

Chapter 7 End-to-End Data Outline 7.1 Presentation Formatting 7.2 Data Compression

7.2 Data Compression Encoding and Compression Lossless Lossy Huffman codes Lossless data received = data sent used for executables, text files, numeric data Lossy data received does not != data sent used for images, video, audio

7.2.1 Lossless Compression Algorithms Run Length Encoding (RLE) example: AAABBCDDDD encoding as 3A2B1C4D good for scanned text (8-to-1 compression ratio) can increase size for data with variation (e.g., some images) Differential Pulse Code Modulation (DPCM) example AAABBCDDDD encoding as A0001123333 change reference symbol if delta becomes too large works better than RLE for many digital images (1.5-to-1)

Dictionary-Based Methods Build dictionary of common terms variable length strings Transmit index into dictionary for each term Lempel-Ziv (LZ) is the best-known example Commonly achieve 2-to-1 ration on text Variation of LZ used to compress GIF images first reduce 24-bit color to 8-bit color treat common sequence of pixels as terms in dictionary not uncommon to achieve 10-to-1 compression (x3)

7.2.2 Image Compression (JPEG) JPEG: Joint Photographic Expert Group (ISO/ITU) Lossy still-image compression Three phase process process in 8x8 block chunks (macro-block) grayscale: each pixel is 8 bits (0 white to 255 black) DCT: transforms signal from spatial domain into and equivalent signal in the frequency domain (loss-less) apply a quantization to the results (lossy) RLE-like encoding (loss-less)

DCT Phase DCT is a transformation closely relate to the fast Fourier Transform (FFT) It takes an 8x8 matrix of pixel values and outputs an 8x8 matrix of frequency coefficients. DCT breaks this 64-point signal into 64 spatial frequencies. Imagine yourself moving across a picture in x direction You would see the value of each pixel varying as some function of x If this value changes slowly (rapidly) with increasing x, then it as a low (high) spatial frequency. The low (high) frequencies correspond to the gross (fine) features of the picture. The idea behind the DCT is to separate the gross features, which is essential to viewing the image, from the fine detail, which is less essential. DC coefficient – the first coefficient, at location (0,0), the average value of the 64 input pixels. AC coefficients – The other 63 elements. They add the higher-spatial-frequency information to this average value.

Quantization Phase It’s simply a matter of dropping the insignificant bits of the frequency coefficients. For example, 45,98,23,66,and 7 with quantum 10 Then we have 4,9,2,6,and 0 (4 bits vs 7 bits) Rather than using the same quantum for all 64 coefficients, JPEG uses a quantization table. QuantixedValue(i,j) = IntegerRound(DCT(i,j)/Quantum(i,j)) Where InterRound (x) = x+0.5 if x >=0, x-0.5 if x <0, When decompression, DCT(i,j) = QuantixedValue(i,j) x Quantum(i,j) For example, assume DCT(0,0) = 25, then QuantixedValue(i,j) = 25/3+0.5 = 8 During decompression, we have 8 x 3 = 24

Quantization and Encoding Quantization Table 3 5 7 9 11 13 15 17 5 7 9 11 13 15 17 19 7 9 11 13 15 17 19 21 9 11 13 15 17 19 21 23 11 13 15 17 19 21 23 25 13 15 17 19 21 23 25 27 15 17 19 21 23 25 27 29 17 19 21 23 25 27 29 31 Encoding Pattern

Encoding Phase Encodes the quantized frequency coefficients in a compact form. Lossless compression Zigzag sequence A form of run length encoding is used to only 0 coefficients, which is significant because many of the later coefficients are 0. The individual coefficients are then encoded using a Huffman code. Because the DC coefficient contains a large percentage of the information about the 8x8 block from the source image, and images typically change slowly from block to block, each DC coefficient is encoded as the difference from the previous DC coefficient. (The delta encoding approach).

7.2.3 Video Compression (MPEG) Motion Picture Expert Group Lossy compression of video First approximation: JPEG on each frame Also remove inter-frame redundancy

MPEG (cont) Frame types Example sequence transmitted as I P B B I B B I frames: intrapicture P frames: predicted picture B frames: bidirectional predicted picture Example sequence transmitted as I P B B I B B

MPEG (cont) B and P frames Effectiveness coordinate for the macroblock in the frame motion vector relative to previous reference frame (B, P) motion vector relative to subsequent reference frame (B) delta for each pixel in the macro block Effectiveness typically 90-to-1 as high as 150-to-1 30-to-1 for I frames P and B frames get another 3 to 5x

7.2.4 Transmitting MPEG Adapt the encoding Packetization resolution frame rate quantization table GOP (Groups of Pictures) mix Packetization Dealing with loss GOP -induced latency

Layered Video Layered encoding Receiver Layered Multicast (RLM) e.g., wavelet encoded Receiver Layered Multicast (RLM) transmit each layer to a different group address receivers subscribe to the groups they can “afford” Probe to learn if you can afford next higher group/layer Smart Packet Dropper (multicast or unicast) select layers to send/drop based on observed congestion observe directly or use RTP feedback

7.2.5 Audio Compression (MP3) CD Quality 44.1 kHz sampling rate (a sample once every 23 us) 2 x 44.1 x 1000 x 16 = 1.41 Mbps (16 bits/sample, 2 channels) 49/16 x 1.41 Mbps = 4.32 Mbps (Synchronization and error correction overhead – 49 bits for each 16 bits sample) MP3 Compression rates Layer 1, 384kbps (4), Layer 2, 192kbps (8), Layer 3, 128kbps (12) Strategy (like MPEG) split into some number of frequency bands divide each subband into a sequence of blocks encode each block using DCT + Quantization + Huffman trick: how many subbands it elects to use and how many bits assigned to each subband