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 Image, audio & video compression explained

Lecture 6 -_presentation_layer
Lecture 6 -_presentation_layerLecture 6 -_presentation_layer
Lecture 6 -_presentation_layerSerious_SamSoul
 
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_compreLuisa Francisco
 
Data Communication & Computer network: Data compression
Data Communication & Computer network: Data compressionData Communication & Computer network: Data compression
Data Communication & Computer network: Data compressionDr Rajiv Srivastava
 
10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdf10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdfPUSHKAR ARYA
 
Data representation
Data representationData representation
Data representationChingTing
 
Image Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSEImage Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSEBRNSSPublicationHubI
 
FINAL PROJECT REPORT
FINAL PROJECT REPORTFINAL PROJECT REPORT
FINAL PROJECT REPORTDhrumil Shah
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compressionPradip Kumar
 
Data compression algorithms
Data compression  algorithmsData compression  algorithms
Data compression algorithmsMohnishReddy1
 
data compression technique
data compression techniquedata compression technique
data compression techniqueCHINMOY PAUL
 
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 gamesJames-003
 
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 vlsiTejeswar Tej
 
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 CompressionEditor IJMTER
 

Similar to Image, audio & video compression explained (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

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 

Recently uploaded (20)

Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 

Image, audio & video compression explained

  • 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.