Chapter 7 End-to-End Data Ohanes Dadian, Danny Luong, Yu Lu.

Slides:



Advertisements
Similar presentations
Multimedia System Video
Advertisements

T.Sharon-A.Frank 1 Multimedia Compression Basics.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Compression CS 147 Minh Nguyen.
Chapter 7 End-to-End Data
Chapter 5 Making Connections Efficient: Multiplexing and Compression
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
1 Data Compression Engineering Math Physics (EMP) Steve Lyon Electrical Engineering.
T.Sharon-A.Frank 1 Multimedia Size of Data Frame.
CSc 461/561 CSc 461/561 Multimedia Systems 0. Introduction.
End-to-End Data Outline Presentation Formatting Data Compression.
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.
1 JPEG Compression CSC361/661 Burg/Wong. 2 Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg.
Image Compression JPEG. Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg and can be embedded.
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.
Lecture 10 Data Compression.
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.
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.
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.
Klara Nahrstedt Spring 2011
D ATA C OMMUNICATIONS Compression Techniques. D ATA C OMPRESSION Whether data, fax, video, audio, etc., compression can work wonders Compression can be.
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
Multimedia Data DCT Image Compression
Data Compression. Compression? Compression refers to the ways in which the amount of data needed to store an image or other file can be reduced. This.
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”
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.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
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
 Last Class  Finish Chapter 6  This Class  Chapter 7.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 22 – April 1, 2010.
JPEG.
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.
1 Part A Multimedia Production Chapter 2 Multimedia Basics Digitization, Coding-decoding and Compression Information and Communication Technology.
1 COM Chapter 7 End-To-End Data 3 What Do We Do With The Data? From the network’s perspective, applications send messages to one another and these.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Computer Science: An Overview Eleventh Edition
JPEG Compression What is JPEG? Motivation
IMAGE COMPRESSION.
CS644 Advanced Topics in Networking
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Discrete Cosine Transform
JPEG.
Data Compression.
Video Compression - MPEG
Chapter 7.2: Layer 5: Compression
Data Compression CS 147 Minh Nguyen.
7. End-to-end data Rocky K. C. Chang Department of Computing
The University of Adelaide, School of Computer Science
Judith Molka-Danielsen, Oct. 02, 2000
The University of Adelaide, School of Computer Science
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 Ohanes Dadian, Danny Luong, Yu Lu

Contents 7.1 Presentation Formatting Taxonomy Examples Markup Languages 7.2 Multimedia Data Lossless Compression Techniques Image Representation and Compression Video Compression Audio Compression

Definition  Data  What is it?  Importance  Presentation Format  Agreement  An important aspect  Data manipulation function  Encoding  Argument marshalling  Decoding  Argument unmarshalling

7.1 Presentation Formatting

Challenges of Presentation Formatting  Different representation in Floating-Point Numbers  IEEE standard 754 format  Nonstandard format  Different registers sizes  16-bit register  32-bit register  64-bit register  Different representation in Integers  Big-Endian  Little-Endian

7.1.1 Taxonomy  Data Types  Conversion Strategy  Tags  Stubs

Data Types  Lowest Level - Base Types  Integers  Floating-point numbers  Characters  Medium Level – Flat Types  Structures  Arrays  Highest Level – Complex Types  Those types that are built using pointers

Data Types

Conversion Strategy  Canonical intermediate Form  Sender: internal representation  external representation  Receiver: external representation  internal representation  Receiver-Makes-Right  Sender : Do not convert, send its internal representation directly  receiver : Any representation  internal representation  Combined

Conversion Strategy Debate  Canonical intermediate Form vs. Receiver-Makes-Right

7.2.1 Lossless Compression Techniques  Data Compression  What is it?  Bandwidth vs Throughput  When to compress?  Data Compression Categories  Lossy vs Lossless  Lossless Compression Techniques  Run Length Encoding  Differential Pulse Code Modulation  Dictionary-Based Methods

Tags  Tagged Data  A tag = additional information  Help the receiver decoding data  Untagged Data  How does the receiver know how to decode?  Think any object-oriented language as an example

Stubs  On the Client Side  Marshal the arguments into a message  On the Server Side  Converts the message back into variables

Stubs

7.1.2 Examples  External Data Representation (XDR)  Supports the entire C-type System without function pointers  defines canonical intermediate form  Does not use tags  Uses compiled stubs

7.1.2 Examples  Abstract Syntax notation One (ASN.1)  Supports the C-type system without function pointers  Defines canonical intermediate form  Uses type tags  Uses either interpreted or compiled stubs  Representation 

7.1.2 Examples  Network Data Representation (NDR)  Supports the C-type system  Defines receiver-makes-right  Uses tags  Generates the necessary stubs  Representation

7.1.3 Markup Languages(XML)  Extensible Markup Language – XML  What is xml?  Can be sent as data over internet  Can be configuration file used in frameworks  XML Schema Document – XSD  Defines XML  Namespace  Solve name clashes  URI – Uniform Resource Identifier (detail in Chapter 9)  xmlns: emp = “  head Bottle Washer

XML--Example

XSD--Example

Data Compression  Data Compression: Less data for the same message, increase throughput  Bandwidth vs Throughput  Bandwidth – Physical  Throughput – Logical  When to compress?  Time Cost

Data Compression Categories  Two different categories  Lossy  Lossless  Pros and Cons of each technique  Compression ratio  Exact reconstruction Lossless Lossy

7.2.1 Lossless Compression Techniques  Data Compression  What is it?  Bandwidth vs Throughput  When to compress?  Data Compression Categories  Lossy vs Lossless  Lossless Compression Techniques  Run Length Encoding  Differential Pulse Code Modulation  Dictionary-Based Methods

Data Compression  Data Compression: Less data for the same message, increase throughput  Bandwidth vs Throughput  Bandwidth – Physical  Throughput – Logical  When to compress?  Time Cost

Data Compression Categories  Two different categories  Lossy  Lossless  Pros and Cons of each technique  Compression ratio  Exact reconstruction Lossless Lossy

Lossless Compression Techniques  Run Length Encoding  Differential Pulse Code Modulation  Dictionary-Based Method

Run Length Encoding (RLE)  One of the simplest method of data compression  A lossless compression method  Consecutive data elements saved as one element and a count  Simplified Example AAAAAAAAAABBBBBOOOOOOOOO 10A5B9O  Real world deals with binary instead  Most useful on data that contains repeated elements

Differential Pulse Code Modulation (DPCM)  Another simple lossless compression algorithm  Output a reference symbol  Output the difference between new symbol and the reference  Example  AAABBCDDDD  A  Work better on digital images

Dictionary-Based Method  The last lossless compression algorithm we discuss  The idea is to build a dictionary (common phrases)  Replace common phrases with index  Dictionary constructed during compression sent along with the code  A lot of research on how to build an efficient dictionary

7.2.2 Image Representation and Compression  Focus on GIF & JPEG  Differences between GIF and JPEG  JPEG Compression Phases  DCT Phase  Quantization Phase  Encoding Phase

Difference between GIF and JPEG  Graphic Interchange Format (GIF)  RGB color space  8 bits each dimension = 24 bits total  Instead of sending 24 bits, reduce to 8 bits first  2 8 = 256 color  Picture has more than 256 colors, change it and cut it down  Good compression ratio, but low quality

Difference between GIF and JPEG  Joint Photographic Experts Group (JPEG)  Most widely used  More suited to photographic images  Transforming RGB color to YUV color space (lossless)  Y component represent brightness (luminance)  UV components represent color (chrominance)  Human eyes have separate receptors for brightness and color  By separating brightness and color, we can perform compression separately  Human eyes are less sensitive to color, so we can compress UV component more aggressively (lossy)

GIF Compression Phases  No phases  One single step  Lossless  Each color is represented by 24 bits  Reduce it down to 8 bits  Only 256 color possible  More than 256 color, merge to closest color  Usage  Sharp-edged images (logos)

JPEG Compression Phases  3 different phases  DCT (lossless)  Quantization (lossy)  Encoding

JPEG Compression Phases  Discrete Cosine Transform (DCT) Phase  Closely related to the Fast Fourier Transform (FFT)  8x8 matrix of pixel value => matrix of frequency coefficients  Help Filter out least important pattern  Lossless  Formula

JPEG Compression Phases  Quantization Phase  DCT phases only transform the data into something easier to recognize  Quantization Phase drops the insignificant bits of the frequency Coefficients  Truncate information => Lossy  Dropping the insignificant bits of the frequency coefficients

JPEG Compression Phases  Encoding Phase  Final phase  Encodes the quantized frequency coefficients in a compact form  Coefficients are processed in zigzag sequence  Further compression can be applied e.g. Run Length Encoding

7.2.3 Video Compression  What is a video?  A succession of frames, or images.  Frames can be compressed using DCT  Like JPEG  Compression should take into consideration the redundancy between frames.  Two successive frames likely have a lot of the same information, depending on the moving object.

MPEG  The MPEG format provides standards for multimedia compression.  Includes compression, decompression, processing and coded- representation.  MPEG 1, MPEG 2, MPEG 4  Named after the group that invented it.  Moving Picture Experts Group  Established in 1988 and included experts from ISO and IEC.

How MPEG Works

Frame Types  MPEG compresses frames into three types.  I frames, P frames and B frames.  I frames  Self-dependent.  P frames  Specifies difference from the previous I frame.  B frames  Interpolation between the previous and subsequent I or P frames.

Frame Types, contd.

8 x 8 Macroblock YYYY YYYY YYYY YYYY UUVV UUVV

Effectiveness and Performance  MPEG video can be compressed with up to a 90:1 ratio.  Encoding/Decoding can be performed on software and hardware.  Hardware being the most prominent for encoding.  Software being the most prominent for decoding.

7.2.4 Transmitting MPEG over a Network  MPEG defines video stream.  Does not dictate how stream is stored.  Complex but modular.  Three variations.  MPEG 1, MPEG 2 and MPEG 4.  Focus on Main Profile MPEG 2 stream.  Used by DVD.  Nested Structure

MPEG Format

Transmitting MPEG over a Network, contd.  Allows for trading picture quality for bandwidth.  Need to packetize stream.  Not an issue with TCP.  For UDP, streams are broken at selected points.  Macroblock boundaries.  Application Level Framing.  Need to deal with packet loss.  Mark frames with drop probability.  Need to deal with application latency constraints.

MPEG Video Compression Algorithm

7.2.4 Audio Compression  MPEG provides audio compression standard.  MPEG I/2 Layer III (MP3).  Example:  CD quality audio at 44.1 KHz sampling rate requires 1.41 Mbps bitrate.  4.32 Mbps with synchronization and error correction overhead.  Some compression is in needed for network transfer.  MP3 compression solves this issue.

MP3 Compression Algorithm

Audio Compression, contd.  Optimization lies in the number of subbands used and how many bits are allocated for each subband.  Governed by psychoacoustic models.  Why is this the case?  Take the following for example.  A male voice requires more bits to low-frequency subbands.  A female voice requires more bits to low-frequency subbands.  Change in frequency is done by dynamically changing the quantization tables used for each subband.

Summary  Discussed how application data is encoded in network packets.  Presentation Formatting.  Compression.  Lossy  Lossless.  Provide high quality media.

Q & A

Thank You

References Peterson, Larry L., and Bruce S. Davie. Computer Networks: A Systems Approach. 5th ed. Amsterdam: Morgan Kaufmann, Print. Motion Picture Experts Group. Wikipedia. (accessed February 19, 2013).

Extra Slides

Frame Types, contd. B Frame Macroblock Coordinatec Motion Vector relative to previous reference frame  Motion Vector relative to subsequent reference frame  Delta for each pixel in macroblock 

Frame Types, contd.  Goal: Find the corresponding reference pixel using the past and future reference frames.  Past Reference Frame  F p  Future Reference Frame  F f

Other Video Encoding Standards  ITU-T has defined the H series of codecs for video, audio, control and multiplexing.  H.261, H.263  First and second generation for video encoding.  Targeted for lower speeds.  Available in 64-kbps increments.  H.264  New generation codec.  Part of the MPEG-4 standard.  One of the most popular codecs for HD video on web and mobile platforms.  Used by Blu-ray, iTunes, YouTube, Flash, Silverlight and various HDTV broadcasts.