SlideShare a Scribd company logo
1 of 10
 Explain the theory of image, audio and video compression.
In This Chapter, you’ll learn on:
 Describe raw multimedia data representation
 Describe data compression for image, audio and
video
 Describe lossy and lossless compression
 Raw Multimedia Data Representation
 What exactly is Raw Multimedia Data
Representation? In simple terms with reference to
Digital Imaging it literally means "raw" as in
"unprocessed". A RAW file contains the original
image information as it comes off the sensor before
in-camera processing so you can do that processing
afterwards on your PC with special software. RAW
files are huge in file size and contain redundant data
 Compression for Image, Audio and Video
 Data compression is the removal of redundant data. This,
therefore, reduces the number of binary ‘bits’ necessary to
represent the information contained within that data. To
achieve the best possible compression requires not only an
understanding of the nature of data in its binary
representation but also how we as humans interpret the
information that the data represents.
 Data compression is the general term for the various
algorithms and programs developed to address this
problem. A compression program is used to convert data
from an easy-to-use format to one optimized for
compactness.
 There are a few different techniques involved in data
compression such as Run-Length, LZW & JPEG.
 Lossy and Lossless Compression

 The above techniques are either lossless or lossy
compression techniques.
 LOSSLESS
 Lossless Compression is used when it is important that
the original and the decompressed data are exactly
identical, or when no assumption can be made on
whether certain deviation is uncritical.
 LOSSLESS
 Run-Length Encoding
 This is a very simplistic approach that counts
sequences of repeating symbols — storing the
symbol’s value and the number of repeats.

 Consider the following example:

 LOSSLESS
 Image 1 – Run-Length Encoding - Illustrates run-length
encoding for a data sequence having frequent runs of
zeros. Each time a zero is encountered in the input data,
two values are written to the output file. The first of these
values is a zero, a flag to indicate that run-length
compression is beginning. The second value is the
number of zeros in the run. If the average run-length is
longer than two, compression will take place. On the
other hand, many single zeros in the data can make the
encoded file larger than the original.
 Another example of Lossless compression is LZW
Compression.

 LOSSLESS
 LZW Compression
 LZW compression is named after its developers, A. Lempel and
J. Ziv, with later modifications by Terry A. Welch. It is the
foremost technique for general purpose data compression due
to its simplicity and versatility. Typically, you can expect LZW to
compress text, executable code, and similar data files to about
one-half their original size.

 LZW compression is always used in GIF image files, and offered
as an option in TIFF and PostScript.

 LOSSLESS
 LZW Compression
 Image 2 – LZW Compression - Illustrates in the table the values
between 0-255, from 256 to 4095 any sequence of data is
translated to that number in the table.

 As the image above applies the compression method to a
series of numbers, in image compression the LZW method works
by finding patterns of data to which it assigns codes. It works
best on highly patterned images.
 LOSSY
 Lossy Compression reduces a file by permanently eliminating
certain information, especially redundant information. When
the file is uncompressed, only a part of the original information
is still there (although the user may not notice it). Lossy
compression is generally used for video and sound, where a
certain amount of information loss will not be detected by most
users. The JPEG image file, commonly used for photographs
and other complex still images on the Web, is an image that
has lossy compression. Using JPEG compression, the creator
can decide how much loss to introduce and make a trade-off
between file size and image quality.

More Related Content

Viewers also liked (10)

Chap11
Chap11Chap11
Chap11
 
Chap60
Chap60Chap60
Chap60
 
Chap22
Chap22Chap22
Chap22
 
Chap48
Chap48Chap48
Chap48
 
Chap6
Chap6Chap6
Chap6
 
Chap2
 Chap2 Chap2
Chap2
 
Chap46
Chap46Chap46
Chap46
 
Chap36
Chap36Chap36
Chap36
 
Chap38
Chap38Chap38
Chap38
 
Chap16
Chap16Chap16
Chap16
 

Similar to Chap54

A research paper_on_lossless_data_compre
A research paper_on_lossless_data_compreA research paper_on_lossless_data_compre
A research paper_on_lossless_data_compre
Luisa Francisco
 
10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdf10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdf
PUSHKAR ARYA
 
Data representation
Data representationData representation
Data representation
ChingTing
 
Image Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSEImage Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSE
BRNSSPublicationHubI
 
FINAL PROJECT REPORT
FINAL PROJECT REPORTFINAL PROJECT REPORT
FINAL PROJECT REPORT
Dhrumil Shah
 
Task 1 – digital graphics for computer games
Task 1 – digital graphics for computer gamesTask 1 – digital graphics for computer games
Task 1 – digital graphics for computer games
James-003
 

Similar to Chap54 (20)

Presentation on Image Compression
Presentation on Image Compression Presentation on Image Compression
Presentation on Image Compression
 
Data compression
Data compression Data compression
Data compression
 
Lecture 6 -_presentation_layer
Lecture 6 -_presentation_layerLecture 6 -_presentation_layer
Lecture 6 -_presentation_layer
 
A research paper_on_lossless_data_compre
A research paper_on_lossless_data_compreA research paper_on_lossless_data_compre
A research paper_on_lossless_data_compre
 
Data Communication & Computer network: Data compression
Data Communication & Computer network: Data compressionData Communication & Computer network: Data compression
Data Communication & Computer network: Data compression
 
lecture on data compression
lecture on data compressionlecture on data compression
lecture on data compression
 
10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdf10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdf
 
DIP.pptx
DIP.pptxDIP.pptx
DIP.pptx
 
Lzw coding technique for image compression
Lzw coding technique for image compressionLzw coding technique for image compression
Lzw coding technique for image compression
 
Data representation
Data representationData representation
Data representation
 
Data compression
Data  compressionData  compression
Data compression
 
Image Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSEImage Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSE
 
FINAL PROJECT REPORT
FINAL PROJECT REPORTFINAL PROJECT REPORT
FINAL PROJECT REPORT
 
Topics:LZ77 & LZ78
Topics:LZ77 & LZ78Topics:LZ77 & LZ78
Topics:LZ77 & LZ78
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
 
Data compression algorithms
Data compression  algorithmsData compression  algorithms
Data compression algorithms
 
data compression technique
data compression techniquedata compression technique
data compression technique
 
Task 1 – digital graphics for computer games
Task 1 – digital graphics for computer gamesTask 1 – digital graphics for computer games
Task 1 – digital graphics for computer games
 
A new algorithm for data compression technique using vlsi
A new algorithm for data compression technique using vlsiA new algorithm for data compression technique using vlsi
A new algorithm for data compression technique using vlsi
 
A Critical Review of Well Known Method For Image Compression
A Critical Review of Well Known Method For Image CompressionA Critical Review of Well Known Method For Image Compression
A Critical Review of Well Known Method For Image Compression
 

More from dkd_woohoo (20)

Chap72&73
Chap72&73Chap72&73
Chap72&73
 
Chap70
Chap70Chap70
Chap70
 
Chap67
Chap67Chap67
Chap67
 
Chap66
Chap66Chap66
Chap66
 
Chap65
Chap65Chap65
Chap65
 
Chap62
Chap62Chap62
Chap62
 
Chap69
Chap69Chap69
Chap69
 
Chap59
Chap59Chap59
Chap59
 
Chap55
Chap55Chap55
Chap55
 
Chap50
Chap50Chap50
Chap50
 
Chap49
Chap49Chap49
Chap49
 
Chap45
Chap45Chap45
Chap45
 
Chap44
Chap44Chap44
Chap44
 
Chap43
Chap43Chap43
Chap43
 
Chap42
Chap42Chap42
Chap42
 
Chap40
Chap40Chap40
Chap40
 
Chap39
Chap39Chap39
Chap39
 
Chap35
Chap35Chap35
Chap35
 
Chap32
Chap32Chap32
Chap32
 
Chap30
Chap30Chap30
Chap30
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Chap54

  • 1.  Explain the theory of image, audio and video compression.
  • 2. In This Chapter, you’ll learn on:  Describe raw multimedia data representation  Describe data compression for image, audio and video  Describe lossy and lossless compression
  • 3.  Raw Multimedia Data Representation  What exactly is Raw Multimedia Data Representation? In simple terms with reference to Digital Imaging it literally means "raw" as in "unprocessed". A RAW file contains the original image information as it comes off the sensor before in-camera processing so you can do that processing afterwards on your PC with special software. RAW files are huge in file size and contain redundant data
  • 4.  Compression for Image, Audio and Video  Data compression is the removal of redundant data. This, therefore, reduces the number of binary ‘bits’ necessary to represent the information contained within that data. To achieve the best possible compression requires not only an understanding of the nature of data in its binary representation but also how we as humans interpret the information that the data represents.  Data compression is the general term for the various algorithms and programs developed to address this problem. A compression program is used to convert data from an easy-to-use format to one optimized for compactness.  There are a few different techniques involved in data compression such as Run-Length, LZW & JPEG.
  • 5.  Lossy and Lossless Compression   The above techniques are either lossless or lossy compression techniques.  LOSSLESS  Lossless Compression is used when it is important that the original and the decompressed data are exactly identical, or when no assumption can be made on whether certain deviation is uncritical.
  • 6.  LOSSLESS  Run-Length Encoding  This is a very simplistic approach that counts sequences of repeating symbols — storing the symbol’s value and the number of repeats.   Consider the following example: 
  • 7.  LOSSLESS  Image 1 – Run-Length Encoding - Illustrates run-length encoding for a data sequence having frequent runs of zeros. Each time a zero is encountered in the input data, two values are written to the output file. The first of these values is a zero, a flag to indicate that run-length compression is beginning. The second value is the number of zeros in the run. If the average run-length is longer than two, compression will take place. On the other hand, many single zeros in the data can make the encoded file larger than the original.  Another example of Lossless compression is LZW Compression. 
  • 8.  LOSSLESS  LZW Compression  LZW compression is named after its developers, A. Lempel and J. Ziv, with later modifications by Terry A. Welch. It is the foremost technique for general purpose data compression due to its simplicity and versatility. Typically, you can expect LZW to compress text, executable code, and similar data files to about one-half their original size.   LZW compression is always used in GIF image files, and offered as an option in TIFF and PostScript. 
  • 9.  LOSSLESS  LZW Compression  Image 2 – LZW Compression - Illustrates in the table the values between 0-255, from 256 to 4095 any sequence of data is translated to that number in the table.   As the image above applies the compression method to a series of numbers, in image compression the LZW method works by finding patterns of data to which it assigns codes. It works best on highly patterned images.
  • 10.  LOSSY  Lossy Compression reduces a file by permanently eliminating certain information, especially redundant information. When the file is uncompressed, only a part of the original information is still there (although the user may not notice it). Lossy compression is generally used for video and sound, where a certain amount of information loss will not be detected by most users. The JPEG image file, commonly used for photographs and other complex still images on the Web, is an image that has lossy compression. Using JPEG compression, the creator can decide how much loss to introduce and make a trade-off between file size and image quality.