Data Manipulation. Audio and Image Representation. -Representation, Compression, and Communication Errors. Audio Representation

Similar documents
Data Storage and Manipulation

8/30/2010. Chapter 1: Data Storage. Bits and Bit Patterns. Boolean Operations. Gates. The Boolean operations AND, OR, and XOR (exclusive or)

Chapter 1: Data Storage. Copyright 2015 Pearson Education, Inc.

Advanced Data Structures and Algorithms

Data Representation. signals can vary continuously across an infinite range of values e.g., frequencies on an old-fashioned radio with a dial

How do you make a picture?

Announcements. Project Turn-In Process. and URL for project on a Word doc Upload to Catalyst Collect It

Chapt er 3 Data Representation

Electronic Publishing

1/29/2008. Announcements. Announcements. Announcements. Announcements. Announcements. Announcements. Project Turn-In Process. Quiz 2.

Announcements. Project Turn-In Process. Project 1A: Project 1B. and URL for project on a Word doc Upload to Catalyst Collect It

Understanding Compression Technologies for HD and Megapixel Surveillance

Digital Media. Daniel Fuller ITEC 2110

MULTIMEDIA TECHNOLOGIES

Link download full: Test Bank for Business Data Communications Infrastructure Networking and Security 7th Edition by William

Ch. 1: Audio/Image/Video Fundamentals Multimedia Systems. School of Electrical Engineering and Computer Science Oregon State University

So far. Chapter 4 Color spaces Chapter 3 image representations. Bitmap grayscale. 1/21/09 CSE 40373/60373: Multimedia Systems

Motion Video Compression

Lab 2 Part 1 assigned for lab sessions this week

ELEC 691X/498X Broadcast Signal Transmission Fall 2015

Video 1 Video October 16, 2001

An Overview of Video Coding Algorithms

EMBEDDED ZEROTREE WAVELET CODING WITH JOINT HUFFMAN AND ARITHMETIC CODING

interactive multimedia: allow an end user also known as the viewer of a multimedia project to control what and when the elements are delivered

How Does H.264 Work? SALIENT SYSTEMS WHITE PAPER. Understanding video compression with a focus on H.264

Implementation of an MPEG Codec on the Tilera TM 64 Processor

VIDEO 101: INTRODUCTION:

Example: compressing black and white images 2 Say we are trying to compress an image of black and white pixels: CSC310 Information Theory.

Part 1: Introduction to Computer Graphics

Lecture 23: Digital Video. The Digital World of Multimedia Guest lecture: Jayson Bowen

Information Transmission Chapter 3, image and video

Multimedia Networking

Getting Images of the World

A Big Umbrella. Content Creation: produce the media, compress it to a format that is portable/ deliverable

What You ll Learn Today

decodes it along with the normal intensity signal, to determine how to modulate the three colour beams.

OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

Audio and Video II. Video signal +Color systems Motion estimation Video compression standards +H.261 +MPEG-1, MPEG-2, MPEG-4, MPEG- 7, and MPEG-21

Chapter 10 Basic Video Compression Techniques

CMPT 365 Multimedia Systems. Mid-Term Review

Downloads from:

Multimedia: is any combination of: text, graphic art, sound, animation, video delivered by computer or electronic means.

!"#"$%& Some slides taken shamelessly from Prof. Yao Wang s lecture slides

4 Anatomy of a digital camcorder

Types of CRT Display Devices. DVST-Direct View Storage Tube

Part 1: Introduction to computer graphics 1. Describe Each of the following: a. Computer Graphics. b. Computer Graphics API. c. CG s can be used in

Graphics Concepts. David Cairns

MPEG + Compression of Moving Pictures for Digital Cinema Using the MPEG-2 Toolkit. A Digital Cinema Accelerator

Video coding standards

COMP 249 Advanced Distributed Systems Multimedia Networking. Video Compression Standards

Objectives: Topics covered: Basic terminology Important Definitions Display Processor Raster and Vector Graphics Coordinate Systems Graphics Standards

PAL uncompressed. 768x576 pixels per frame. 31 MB per second 1.85 GB per minute. x 3 bytes per pixel (24 bit colour) x 25 frames per second

Lecture 18: Exam Review

Digital Video Telemetry System

Computer and Machine Vision

A Digital Video Primer

Digital Signage Content Overview

06 Video. Multimedia Systems. Video Standards, Compression, Post Production

ILDA Image Data Transfer Format

EE123 Digital Signal Processing

RTVF TV Producing & Directing - Parts I & II

EEC-682/782 Computer Networks I

Multimedia Communications. Video compression

Monitor and Display Adapters UNIT 4

Chapter 3 Fundamental Concepts in Video. 3.1 Types of Video Signals 3.2 Analog Video 3.3 Digital Video

An Introduction to Image Compression

JPEG2000: An Introduction Part II

UC San Diego UC San Diego Previously Published Works

Digital Representation

+ Human method is pattern recognition based upon multiple exposure to known samples.

CS A490 Digital Media and Interactive Systems

CHECKPOINT 2.5 FOUR PORT ARBITER AND USER INTERFACE

MULTIMEDIA COMPRESSION AND COMMUNICATION

Comp 410/510. Computer Graphics Spring Introduction to Graphics Systems

MPEG-2. ISO/IEC (or ITU-T H.262)

Overview: Video Coding Standards

Data Encoding CTPS 2018

CM3106 Solutions. Do not turn this page over until instructed to do so by the Senior Invigilator.

The Development of a Synthetic Colour Test Image for Subjective and Objective Quality Assessment of Digital Codecs

Multimedia Systems Video I (Basics of Analog and Digital Video) Mahdi Amiri April 2011 Sharif University of Technology

Introduction to image compression

Understanding IP Video for

A Study of Encoding and Decoding Techniques for Syndrome-Based Video Coding

ILDA Image Data Transfer Format

Vannevar Bush: As We May Think

P1: OTA/XYZ P2: ABC c01 JWBK457-Richardson March 22, :45 Printer Name: Yet to Come

Content storage architectures

Advanced Computer Networks

Design and Implementation of an AHB VGA Peripheral

Computer Graphics. Raster Scan Display System, Rasterization, Refresh Rate, Video Basics and Scan Conversion

WYNER-ZIV VIDEO CODING WITH LOW ENCODER COMPLEXITY

Chapter 6 & Chapter 7 Digital Video CS3570

Chrominance Subsampling in Digital Images

Video compression principles. Color Space Conversion. Sub-sampling of Chrominance Information. Video: moving pictures and the terms frame and

50i 25p. Characteristics of a digital video file. Definition. Container. Aspect ratio. Codec. Digital media. Color space. Frame rate.

Autosophy data / image compression and encryption

Multimedia Communications. Image and Video compression

CS2401-COMPUTER GRAPHICS QUESTION BANK

Lossless Compression Algorithms for Direct- Write Lithography Systems

Start with some basics: display devices

Transcription:

Audio and Image Representation Data Manipulation -Representation, Compression, and Communication Errors Why should the (wireless) broadcasting channels be RE-LICENSED, and DIGITALIZED? Limited bandwidth ( 頻寬 ) Better technology => less bandwidth/channel (more channels) Data compression (much easier in digital signal) => better quality and more channels Audio Representation Original signal Sound shape of Hello Sampling ( 取樣 ) 1000 samples/sec. 10 gradations http://electronics.howstuffworks.com/analog-digital.htm/printable 1

2000 samples/sec. 20 gradations Sampling from analog signal to digital signal Sampling rate (samples/second) Sampling precision (gradations) (10 grad.) 4000 samples/sec. 40 gradations Precision Rate (1000 samples/sec.) Audio CD Sampling 44.1 khz, 16 bits (2 bytes) per sampling, two channels (stereo) 2 bytes * 2 * 44.1k =176.4 k (~150k) bytes / second Beethoven 9th symphony 74 min. and 42 sec. 176.4 k * (60*74+ 42) ~ 750 M (or 800M) bytes Image Representation MP3 (MPEG-1 Audio layer-3): using data compression to reduce the required storage space to 1/12 to 1/10. 2

Display Devices How does video travel from the processor to a CRT monitor? Video card (also called a graphics card) converts digital output from computer into analog video signal Display Resolution and Required Memory Step 1. The processor sends digital video data to the video card. Step 3. The analog signal is sent through a cable to the CRT monitor. Step 4. The CRT monitor separates the analog signal into red, green, and blue signals. Step 5. Electron guns fire the three color signals to the front of the CRT. Step 2. The video card s digital-to-analog converter (DAC) converts the digital video data to an analog signal. Step 6. An image is displayed on the screen when the electrons hit phosphor dots on the back of the screen. Representing Images Bit map: an image is considered to be a collection of dots, each of which is called a pixel. Facsimile machines, video cameras, scanners. (GIF and JPEG compress such images into more manageable sizes.) can not be easily rescaled to any arbitrary size. Vector: an image is represented as a collection of lines and curves. Scalable fonts. Not able to provide the photographic quality images. Grayscale of 3 bits 3

Data Compression Why the image file size is usually much smaller than the required memory size in the display for the same resolution? Imagine how much memory required to store a image? E.g. 1024x768 full color ~3MB, but it is usully much smaller. => Data compression Data Compression Run-length encoding replacing long sequences of the same value with a code indicating the value that is repeated and the number of times it occurs in the sequence. 253+118+87=458 e.g. 253 ones and 118 zeros and 87 ones = 458 bits Compression rate approx. ~ (3 bytes+3 bits) / 458 bits = (27/458) ~ 6% Times + 0/1 E.g. black-white images, cartoon images Data Compression Relative encoding record the differences between consecutive data blocks rather than entire blocks. Picture differs slightly from the preceding one, e.g. consecutive frames of a motion picture Ex: If only 4% of the two consecutive frames differ, the compression rate ~ 4% 台北市羅斯福路四段一號台大計算機中心 100 室 台北市羅斯福路四段一號台大計算機中心 101 室 台北市羅斯福路四段一號台大計算機中心 102 室 台北市羅斯福路四段一號台大計算機中心 201 室 4

Data Compression (*) Frequency-dependent encoding the length of the bit pattern used to represent a data item is inversely related to the frequency of the item s use. Huffman codes e.g. use less space for (e, t, a), and more space for (z, q, x) Ex: an article with 1000 characters (including symbols) ~ 8 bits*1000 = 8,000 bits (e, t, a) with 3 bits, and the rest with 9 bits 700 characters of (e, t,a) and 300 characters of the rest. ~ 3 bits * 700 + 9 bits * 300 = 4,800 bits => Compression rate ~ 4,800/8,000 = 60% Lempel-Ziv encoding Adaptive dictionary encoding the dictionary is allowed to change during the encoding process. LZ77 start by actually quoting the initial part of the message, but at some point we would shift to representing future segments by triples, each consisting of two integers followed by a symbol from the message. Figure 1.28: Decompressing xyxxyzy (5, 4, x) LZ77 encoding xyxxyzy(5,4,x)(0,0,w)(8,6,y) xyxxyzyxxyzx(0,0,w)(8,6,y) xyxxyzyxxyzxw(8,6,y) xyxxyzy xxyzx w zyxxyzy xyxxyzyxxyzxwzyxxyzy 5

Compressing Images Three-byte-per-pixel GIF (Graphic Interchange Format) reducing the number of colors that can be assigned to a pixel to only 256 (good for cartoon images) Each of the 256 potential pixel values is associated with a red-green-blue combination by means of a table known as the palette. Comparison: Chinese characters reference table -> another method of data compression JPEG (Joint Photographic Experts Group) Encompasses several methods of image representation, each with is own goals. Lossless mode Implying that no information is lost in the process of encoding the picture. Space is saved by storing the difference between consecutive pixels rather than the pixel intensities themselves. (relative encoding) These differences are then coded using a variablelength code to further conserve storage space. JPEG (lossy mode) Each pixel is represented by three components - a brightness component and two color components The human eye is more sensitive to changes in brightness than to changes in color. Encode each brightness component but averaging the values of the color components over the four pixel blocks and recording only these 4 block averages. 4-pixel block is presented by only 6 values (4 brightness values and 2 color values) The compression rate is in the range of 1/20. Additional space is saved by recording data that indicate how the various brightness and color components change (difference) rather than their actual values. The degree to which nearby pixel values differ can be recorded using fewer bits than would be required if the actual values were recorded. (discrete cosine transform) 6

~200 k bytes ~60 k bytes MPEG Motion Picture Experts Group Start a picture sequence with an image similar to JPEG s baseline and then to represent the rest of the sequence using relative encoding techniques. The relative encoding is taken within one picture and two or more consecutive pictures. (Mostly, only small fraction of the image varies, while the rest keeps the same.) e.g. internet movie (Due to different compression rates, you may see a blurred image in some fast or drastically changing motion due to limited bandwidth.) See the cartoon Communication Errors Parity bits Long bit patterns are often accompanied by a collection of parity bits making up a checkbyte. 7

Figure 1.29: The ASCII codes for the letters A and F adjusted for odd parity An error in any one of the check bits will cause exactly one parity check violation, while an error in any one of the message it will cause violations of a distinct pair of parity checks. Communication Errors The parity can be either even or odd. If the received data are different from the assigned parity, there exist some communication errors. ->Redo the action to get correct data. Note: Parity check does not ensure the correctness of communication, e.g. even number of erroneous bits. (but the possibility is usually much lower than that of single erroneous bit.) Error-Correcting Codes: Hamming distance between two patterns to be the number of bits in which the two differ. X = 1000 1011 and Y = 0100 1001 Z = 1000 0111 Hamming distance of (X,Y) = 3 Hamming distance of (Y,Z) = 5 8

An error-correcting code Decoding the pattern 010100 using the code The closest character is D. Single-error-correcting code M 1 M 2 M 3 C 1 C 2 C 3 0 0 0 0 0 0 0 0 1 1 1 0 : exclusive OR (XOR) 0 1 0 0 1 1 0 1 1 1 0 1 1 0 0 1 0 1 C 1 = M 1 M 3 1 0 1 0 1 1 C 2 = M 2 M 3 1 1 0 1 1 0 C 3 = M 1 M 2 1 1 1 0 0 0 ECC with Hamming distance of three allows us to detect two errors per pattern and correct one error, while EEC with Hamming distance of five, to detect four errors and correct two errors. 9