SlideShare una empresa de Scribd logo
1 de 29
Descargar para leer sin conexión
®




                   The DCT/IDCT Solution
                      Customer Tutorial

                         February 2000


File Number Here
Agenda
                        Introduction
                        DCT/IDCT Concepts
                        DCT/IDCT Applications
                        Spartan-II DCT/IDCT IP Solutions
                        Summary




Xilinx at Work in High Volume Applications                 ®

                                        www.xilinx.com
Introduction
         Spartan-II FPGAs
           —    100,000 System Gates at under $10
           —    Extensive features: Block RAM, DLL, Select I/O
           —    Vast IP Portfolio
           —    Provide Density, Features, Performance at ASIC prices




Xilinx at Work in High Volume Applications                              ®

                                        www.xilinx.com
DCT/IDCT Compression
    Compression allows increased throughput through
    transmission medium
      — Video and audio compression makes multimedia systems very
        efficient
             –   Increases CPU bandwidth
             –   Higher video frame rates
             –   Better audio quality
             –   Enables multimedia interactivity

    DCT and IDCT are widely used in video and audio
    compression


Xilinx at Work in High Volume Applications                      ®

                                        www.xilinx.com
DCT/IDCT Overview

   DCT - Discrete Cosine Transform
IDCT -Inverse Discrete Cosine Transform




                                          ®
DCT/IDCT Concept
       What is DCT?
        — X= DCT(video/audio input)
               – Returns the discrete cosine transform of ‘video/audio input’
               – Can be referred to as the even part of the Fourier series
               – Converts an image or audio block into it’s equivalent frequency
                 coefficients

       What is IDCT?
        — The IDCT function is the inverse of the DCT function
        — The IDCT reconstructs a sequence from its discrete cosine
          transform (DCT) coefficients



Xilinx at Work in High Volume Applications                                         ®

                                        www.xilinx.com
DCT/IDCT Concept
      The DCT transform of an image brings out a set of
      numbers called coefficients.
      A coefficient’s usefulness is determined by its variance
      over a set of images as in video’s case.
      If a coefficient has a lot of variance over a set, then it
      cannot be removed without affecting the picture quality.




Xilinx at Work in High Volume Applications                         ®

                                        www.xilinx.com
DCT/IDCT Concept

                                                                                                            DCT
                                                                                                                Frequency
                                                                                                                Coefficients
                                                                                                                Compared to
                                                                                                                Magnitude
     Original Image                                                                                             Thresholds
                                                                                                                Resulting in
                                                                                                                Compressed
                                                                                                        IDCT    Data Streams



                                                                              The image is broken into 8x8
                                                                              groups, each containing 64
                                                                              pixels. Three of these 8x8
                                                                              groups are enlarged in this
  Recovered Image
                                                                              figure, showing the values of
  (Notice Lesser Image Quality)                                               the individual pixels, a single
                                                                              byte value between 0 and 255.
         Courtesy: The Scientist and Engineer's Guide to Digital Signal Processing by Steven W. Smith
Xilinx at Work in High Volume Applications                                                                                 ®

                                        www.xilinx.com
DCT/IDCT Concept


                    Divide picture into
                    16 by 16 blocks.
                    (macroblocks)                                        Each block is 8
                                                                         pixels by 8 lines.
                                             Each macroblock is
                                             16 pixels by 16 lines.
                                             (4 blocks)




                                             DCT


                         8 X 8 Block                                  Frequency
                                                                      Coefficients




Xilinx at Work in High Volume Applications                                                    ®

                                        www.xilinx.com
DCT/IDCT Usage
                        Areas of Use:
                          — One-Dimensional DCT/IDCT
                                 – Dolby AC2 & AC3
                                 – Biomedical signals like EEG & ECG
                                 – Speech information compression

                          — Two-Dimensional DCT/IDCT
                                 – JPEG Encoders
                                 – MPEG-1 & MPEG-2
                                 – Image & Pattern Recognition




Xilinx at Work in High Volume Applications                             ®

                                        www.xilinx.com
DCT/IDCT Concept
                      One-Dimensional DCT Equation
                                                   N-1
                              Xc(k) = (1/N) Σ xn cos(k2πn/N),
                                                   n=0

                              where
                                         k = 0, 1, 2, …, N-1




Xilinx at Work in High Volume Applications                      ®

                                        www.xilinx.com
DCT/IDCT Concept
    One-Dimensional IDCT Equation
                       N-1
            xc(k) = Σ c[u] Xn cos(k2πn/N),
                       n=0

             where
                       k = 0, 1, 2, …, N-1,

                       Xn is the DCT result, and

                       c[u] = 1 for u=0, and c[u] = 2 for u=1,2,3,…N-1
Xilinx at Work in High Volume Applications                           ®

                                        www.xilinx.com
DCT/IDCT Concept
       Two-Dimensional DCT Equation
                               N-1 N-1

              F[u, v] = 1/N2   Σ Σ       f[m, n] cos[ (2m + 1)uπ/ 2N] cos[ (2n + 1)vπ/2N ]
                               m=0 n=0

              where:
                       u, v = discrete frequency variables (0, 1, 2, …, N - 1),
                       f[m, n] = N by N image pixels(0, 1, 2, …, N - 1), and
                       F[u, v] = the DCT result




Xilinx at Work in High Volume Applications                                                   ®

                                        www.xilinx.com
DCT/IDCT Concept
     Two-Dimensional IDCT Equation
                       N-1 N-1
             f[m, n] = Σ Σ c[u] c[v] F[u, v] cos[ (2m + 1)uπ/ 2N] cos[ (2n + 1)vπ/2N ]
                       m=0 n=0

             where:
                      m, n = image result pixel indices( 0, 1, 2, …, N – 1 ),
                      F[u, v] = N by N DCT result,
                      c[λ] = 1 for λ=0 and c[λ]=2 for λ=1,2,3,…N-1
                      f[m, n] = N by N IDCT result




Xilinx at Work in High Volume Applications                                               ®

                                        www.xilinx.com
DCT/IDCT Concept
    Example of a Simplistic one-Dimensional DCT
      — Data is transformed first and the newly calculated values are
        threshold limited to a magnitude of 0.375
      — Assuming a data sequence to be {1, 2, 0, 5}
    Applying the one-Dimensional DCT formula,the resultant DCT
    sequence is {2, 0.25, -6, 0.25}
    The values that above the threshold (|values| > 0.375) are 2 and –6
    This results in a 50% reduction in data size with minimal loss in
    quality



Xilinx at Work in High Volume Applications                              ®

                                        www.xilinx.com
DCT/IDCT
Applications




               ®
DCT/IDCT Applications
                        List of Some End Applications
                         —     DVD/Video CD Players
                         —     Cable TV
                         —     DBS Systems
                         —     HDTV
                         —     Graphics/Image Processing Cards
                         —     Ultrasound/MRI Systems
                         —     Digital VCRs
                         —     Set-Top Boxes
                         —     Digital Camera


Xilinx at Work in High Volume Applications                       ®

                                        www.xilinx.com
DCT/IDCT in JPEG
                                        Encoding
                                                                                Compressed
                                                  Zig-Zag                       Data
    Pixel Data                 Coefficient        Run-Length         Huffman
                   DCT
                                                  Encoding           Encoding
                               Quantization




                                        Decoding                                 Reconstructed

   Compressed    Huffman       Zig-Zag                                           Pixel Data
                               Run-Length          Coefficient
   Data          Decoding                                               IDCT
                               Expansion           Denormalization




                         JPEG Codec Block Diagram

Xilinx at Work in High Volume Applications                                                       ®

                                        www.xilinx.com
DCT/IDCT in Bio-Medical




      1-D DCT is commonly used on a sequence of digital
   information like voice or heartbeat information in an ECG
Xilinx at Work in High Volume Applications                     ®

                                        www.xilinx.com
DCT/IDCT in DVD/VCD
               Reconstructed (Decoded) Frame


                                                              Inverse
                                      IDCT
                                                              Quantizer



    Video to                                                                          Coded Video
    be Coded                                                              Bitstream   Bitstream
                                       DCT                    Quantizer   Coder
                      + -


                       Motion                  Motion
                       Estimator               Compensator




                                               Anchor Frame
                                               Storage
      Courtesy: C-Cube Corporation


          MPEG-2 Block Diagram in a Typical DVD System
Xilinx at Work in High Volume Applications                                                          ®

                                        www.xilinx.com
DCT/IDCT in DVD/VCD


  Master        Variable Bit Rate or
  Video Tape    MPEG-2 Audio Encoder
                                             Quality
                                             Control
                                                         Multiplexing
                                                                          Emulation
                                             Human       and Formatting
                                             Assist                                   Master
                                             Recoding                                 Disc
 Master         Dolby AC3 or
 Audio Tape     MPEG-2 Audio Encoder




     Courtesy: C-Cube Corporation

                                    DVD/VCD Mastering

Xilinx at Work in High Volume Applications                                                 ®

                                        www.xilinx.com
DCT/IDCT in DVD/VCD
                          Digital Audio/Video Decoder



                                               MPEG-2 Video Decoder

                                                                                NTSC/
                                                                                PAL            To TV
               DVD                            Subpicture        OSD             Encoder
               DSP            DEMUX           Processing        Graphics


                                                                                          To Audio System
                                               Dolby AC3 or
                                               MPEG-2 Audio Decoder




                                                  Front Panel

                 Microcontroller                 10:00:23                  ||


      Courtesy: C-Cube Corporation
                                          DVD Player
Xilinx at Work in High Volume Applications                                                                  ®

                                        www.xilinx.com
DCT/IDCT in DVD/VCD




                                     DVD Players
Xilinx at Work in High Volume Applications               ®

                                        www.xilinx.com
DCT/IDCT
                       in Digital Cameras

 2-D DCT/IDCT is applied generally on data sets that have a
 naturally two-dimensional characteristic, like a digital image




                                   Digital Cameras
Xilinx at Work in High Volume Applications                    ®

                                        www.xilinx.com
Spartan-II DCT/IDCT
                        Solution
                      DCT/IDCT Cores
                       — Available Separately or Combined




                  AllianceCORE Xentec DCT/IDCT Core
Xilinx at Work in High Volume Applications                  ®

                                        www.xilinx.com
Spartan-II DCT/IDCT
                    Solution Features

                                Features     Spartan-II
                                 Device      XC2S100-6
                                  CLBs         1026
                               Clock IOBs         1
                                  IOBs           28
                           Performance (MHz)    33.3


                  AllianceCORE Xentec DCT/IDCT Core

Xilinx at Work in High Volume Applications                ®

                                        www.xilinx.com
Spartan-II DCT/IDCT
                  Solution Performance
       Low cost Spartan-II FPGA with soft IP from Xentec has
       High Performance
        — 180 times faster 32-bit mainstream processor operating at
          266MHz




Xilinx at Work in High Volume Applications                            ®

                                        www.xilinx.com
Spartan-II DCT/IDCT
                   Solution - Features
    The Xilinx solution is efficient and cost-effective compared
    to DCT/IDCT software solution being run by a high
    performance 32-bit processor
    The Xilinx Xentec core solution is capable of operating
    either as DCT or IDCT by the use of a single mode pin




Xilinx at Work in High Volume Applications                     ®

                                        www.xilinx.com
Summary
         DCT/IDCT Solutions are Widely Used in Multimedia,
         Video, Audio, and Imaging Applications
         The Spartan-II Family has Significant Strengths in its
         DCT/IDCT Solution:
          —     Features
          —     Performance
          —     Scalability and Flexibility
          —     Cost effectiveness




Xilinx at Work in High Volume Applications                        ®

                                        www.xilinx.com

Más contenido relacionado

La actualidad más candente

Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Erosion and dilation
Erosion and dilationErosion and dilation
Erosion and dilationAkhil .B
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restorationMd Shabir Alam
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Video Compression Basics
Video Compression BasicsVideo Compression Basics
Video Compression BasicsSanjiv Malik
 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingDHIVYADEVAKI
 
Noise filtering
Noise filteringNoise filtering
Noise filteringAlaa Ahmed
 
Chapter 10 - Multimedia Over Atm
Chapter 10 - Multimedia Over AtmChapter 10 - Multimedia Over Atm
Chapter 10 - Multimedia Over AtmPratik Pradhan
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentationramya marichamy
 
Lossless predictive coding in Digital Image Processing
Lossless predictive coding in Digital Image ProcessingLossless predictive coding in Digital Image Processing
Lossless predictive coding in Digital Image Processingpriyadharshini murugan
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and SegmentationA B Shinde
 
10 color image processing
10 color image processing10 color image processing
10 color image processingbabak danyal
 

La actualidad más candente (20)

Gaussian noise
Gaussian noiseGaussian noise
Gaussian noise
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Erosion and dilation
Erosion and dilationErosion and dilation
Erosion and dilation
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Video Compression Basics
Video Compression BasicsVideo Compression Basics
Video Compression Basics
 
Lzw coding technique for image compression
Lzw coding technique for image compressionLzw coding technique for image compression
Lzw coding technique for image compression
 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image Processing
 
Jpeg standards
Jpeg   standardsJpeg   standards
Jpeg standards
 
JPEG
JPEGJPEG
JPEG
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Noise filtering
Noise filteringNoise filtering
Noise filtering
 
Chapter 10 - Multimedia Over Atm
Chapter 10 - Multimedia Over AtmChapter 10 - Multimedia Over Atm
Chapter 10 - Multimedia Over Atm
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Lossless predictive coding in Digital Image Processing
Lossless predictive coding in Digital Image ProcessingLossless predictive coding in Digital Image Processing
Lossless predictive coding in Digital Image Processing
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
10 color image processing
10 color image processing10 color image processing
10 color image processing
 

Destacado

DWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency Band
DWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency BandDWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency Band
DWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency BandIOSR Journals
 
Digital watermarking
Digital watermarkingDigital watermarking
Digital watermarkingAnkush Kr
 
discrete wavelet transform
discrete wavelet transformdiscrete wavelet transform
discrete wavelet transformpiyush_11
 
Introduction to wavelet transform
Introduction to wavelet transformIntroduction to wavelet transform
Introduction to wavelet transformRaj Endiran
 

Destacado (10)

Dct and adaptive filters
Dct and adaptive filtersDct and adaptive filters
Dct and adaptive filters
 
Adaptive filter
Adaptive filterAdaptive filter
Adaptive filter
 
Adaptive filter
Adaptive filterAdaptive filter
Adaptive filter
 
Dual Band Watermarking using 2-D DWT and 2-Level SVD for Robust Watermarking ...
Dual Band Watermarking using 2-D DWT and 2-Level SVD for Robust Watermarking ...Dual Band Watermarking using 2-D DWT and 2-Level SVD for Robust Watermarking ...
Dual Band Watermarking using 2-D DWT and 2-Level SVD for Robust Watermarking ...
 
DWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency Band
DWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency BandDWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency Band
DWT-DCT-SVD Based Semi Blind Image Watermarking Using Middle Frequency Band
 
Digital watermarking
Digital watermarkingDigital watermarking
Digital watermarking
 
Watermarking
WatermarkingWatermarking
Watermarking
 
Digital Watermarking
Digital WatermarkingDigital Watermarking
Digital Watermarking
 
discrete wavelet transform
discrete wavelet transformdiscrete wavelet transform
discrete wavelet transform
 
Introduction to wavelet transform
Introduction to wavelet transformIntroduction to wavelet transform
Introduction to wavelet transform
 

Similar a Discrete cosine transform

Design and implementation of DADCT
Design and implementation of DADCTDesign and implementation of DADCT
Design and implementation of DADCTSatish Kumar
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
2008 brokerage 04 smart vision system [compatibility mode]
2008 brokerage 04 smart vision system [compatibility mode]2008 brokerage 04 smart vision system [compatibility mode]
2008 brokerage 04 smart vision system [compatibility mode]imec.archive
 
2008 brokerage 04 smart vision system [compatibility mode]
2008 brokerage 04 smart vision system [compatibility mode]2008 brokerage 04 smart vision system [compatibility mode]
2008 brokerage 04 smart vision system [compatibility mode]imec.archive
 
Scrambling For Video Surveillance
Scrambling For Video SurveillanceScrambling For Video Surveillance
Scrambling For Video SurveillanceKobi Magnezi
 
Toshiba 65nm Flyer
Toshiba 65nm FlyerToshiba 65nm Flyer
Toshiba 65nm FlyerSven Hegner
 
Ibtc dwt hybrid coding of digital images
Ibtc dwt hybrid coding of digital imagesIbtc dwt hybrid coding of digital images
Ibtc dwt hybrid coding of digital imagesZakaria Zubi
 
3D Televisions: Forecasting their emergence
3D Televisions: Forecasting their emergence3D Televisions: Forecasting their emergence
3D Televisions: Forecasting their emergenceJeffrey Funk
 
Optimisation and Compression Intro
Optimisation and Compression IntroOptimisation and Compression Intro
Optimisation and Compression IntroJames Uren
 
Battle of the Codecs
Battle of the CodecsBattle of the Codecs
Battle of the CodecsJames Uren
 
Wavelet video processing tecnology
Wavelet video processing tecnologyWavelet video processing tecnology
Wavelet video processing tecnologyPrashant Madnavat
 
“High-fidelity Conversion of Floating-point Networks for Low-precision Infere...
“High-fidelity Conversion of Floating-point Networks for Low-precision Infere...“High-fidelity Conversion of Floating-point Networks for Low-precision Infere...
“High-fidelity Conversion of Floating-point Networks for Low-precision Infere...Edge AI and Vision Alliance
 
Proyector CP-A222WNM
Proyector CP-A222WNMProyector CP-A222WNM
Proyector CP-A222WNMAsesoraTIC
 
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...Edge AI and Vision Alliance
 
“Enabling Ultra-low Power Edge Inference and On-device Learning with Akida,” ...
“Enabling Ultra-low Power Edge Inference and On-device Learning with Akida,” ...“Enabling Ultra-low Power Edge Inference and On-device Learning with Akida,” ...
“Enabling Ultra-low Power Edge Inference and On-device Learning with Akida,” ...Edge AI and Vision Alliance
 
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...IRJET Journal
 

Similar a Discrete cosine transform (20)

Design and implementation of DADCT
Design and implementation of DADCTDesign and implementation of DADCT
Design and implementation of DADCT
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
2008 brokerage 04 smart vision system [compatibility mode]
2008 brokerage 04 smart vision system [compatibility mode]2008 brokerage 04 smart vision system [compatibility mode]
2008 brokerage 04 smart vision system [compatibility mode]
 
2008 brokerage 04 smart vision system [compatibility mode]
2008 brokerage 04 smart vision system [compatibility mode]2008 brokerage 04 smart vision system [compatibility mode]
2008 brokerage 04 smart vision system [compatibility mode]
 
Scrambling For Video Surveillance
Scrambling For Video SurveillanceScrambling For Video Surveillance
Scrambling For Video Surveillance
 
Toshiba 65nm Flyer
Toshiba 65nm FlyerToshiba 65nm Flyer
Toshiba 65nm Flyer
 
H0545156
H0545156H0545156
H0545156
 
Ibtc dwt hybrid coding of digital images
Ibtc dwt hybrid coding of digital imagesIbtc dwt hybrid coding of digital images
Ibtc dwt hybrid coding of digital images
 
robust image watermarking
robust image watermarkingrobust image watermarking
robust image watermarking
 
Introduction to video compression
Introduction to video compressionIntroduction to video compression
Introduction to video compression
 
3D Televisions: Forecasting their emergence
3D Televisions: Forecasting their emergence3D Televisions: Forecasting their emergence
3D Televisions: Forecasting their emergence
 
Optimisation and Compression Intro
Optimisation and Compression IntroOptimisation and Compression Intro
Optimisation and Compression Intro
 
Battle of the Codecs
Battle of the CodecsBattle of the Codecs
Battle of the Codecs
 
Wavelet video processing tecnology
Wavelet video processing tecnologyWavelet video processing tecnology
Wavelet video processing tecnology
 
G0523444
G0523444G0523444
G0523444
 
“High-fidelity Conversion of Floating-point Networks for Low-precision Infere...
“High-fidelity Conversion of Floating-point Networks for Low-precision Infere...“High-fidelity Conversion of Floating-point Networks for Low-precision Infere...
“High-fidelity Conversion of Floating-point Networks for Low-precision Infere...
 
Proyector CP-A222WNM
Proyector CP-A222WNMProyector CP-A222WNM
Proyector CP-A222WNM
 
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
 
“Enabling Ultra-low Power Edge Inference and On-device Learning with Akida,” ...
“Enabling Ultra-low Power Edge Inference and On-device Learning with Akida,” ...“Enabling Ultra-low Power Edge Inference and On-device Learning with Akida,” ...
“Enabling Ultra-low Power Edge Inference and On-device Learning with Akida,” ...
 
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
 

Más de aniruddh Tyagi

Más de aniruddh Tyagi (20)

whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4
 
BUC BLOCK UP CONVERTER
BUC BLOCK UP CONVERTERBUC BLOCK UP CONVERTER
BUC BLOCK UP CONVERTER
 
digital_set_top_box2
digital_set_top_box2digital_set_top_box2
digital_set_top_box2
 
Discrete cosine transform
Discrete cosine transformDiscrete cosine transform
Discrete cosine transform
 
DCT
DCTDCT
DCT
 
EBU_DVB_S2 READY TO LIFT OFF
EBU_DVB_S2 READY TO LIFT OFFEBU_DVB_S2 READY TO LIFT OFF
EBU_DVB_S2 READY TO LIFT OFF
 
ADVANCED DVB-C,DVB-S STB DEMOD
ADVANCED DVB-C,DVB-S STB DEMODADVANCED DVB-C,DVB-S STB DEMOD
ADVANCED DVB-C,DVB-S STB DEMOD
 
DVB_Arch
DVB_ArchDVB_Arch
DVB_Arch
 
haffman coding DCT transform
haffman coding DCT transformhaffman coding DCT transform
haffman coding DCT transform
 
Classification
ClassificationClassification
Classification
 
tyagi 's doc
tyagi 's doctyagi 's doc
tyagi 's doc
 
quantization_PCM
quantization_PCMquantization_PCM
quantization_PCM
 
ECMG & EMMG protocol
ECMG & EMMG protocolECMG & EMMG protocol
ECMG & EMMG protocol
 
7015567A
7015567A7015567A
7015567A
 
Basic of BISS
Basic of BISSBasic of BISS
Basic of BISS
 
euler theorm
euler theormeuler theorm
euler theorm
 
fundamentals_satellite_communication_part_1
fundamentals_satellite_communication_part_1fundamentals_satellite_communication_part_1
fundamentals_satellite_communication_part_1
 
quantization
quantizationquantization
quantization
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomon
 
DVBSimulcrypt2
DVBSimulcrypt2DVBSimulcrypt2
DVBSimulcrypt2
 

Último

Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 

Último (20)

Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 

Discrete cosine transform

  • 1. ® The DCT/IDCT Solution Customer Tutorial February 2000 File Number Here
  • 2. Agenda Introduction DCT/IDCT Concepts DCT/IDCT Applications Spartan-II DCT/IDCT IP Solutions Summary Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 3. Introduction Spartan-II FPGAs — 100,000 System Gates at under $10 — Extensive features: Block RAM, DLL, Select I/O — Vast IP Portfolio — Provide Density, Features, Performance at ASIC prices Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 4. DCT/IDCT Compression Compression allows increased throughput through transmission medium — Video and audio compression makes multimedia systems very efficient – Increases CPU bandwidth – Higher video frame rates – Better audio quality – Enables multimedia interactivity DCT and IDCT are widely used in video and audio compression Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 5. DCT/IDCT Overview DCT - Discrete Cosine Transform IDCT -Inverse Discrete Cosine Transform ®
  • 6. DCT/IDCT Concept What is DCT? — X= DCT(video/audio input) – Returns the discrete cosine transform of ‘video/audio input’ – Can be referred to as the even part of the Fourier series – Converts an image or audio block into it’s equivalent frequency coefficients What is IDCT? — The IDCT function is the inverse of the DCT function — The IDCT reconstructs a sequence from its discrete cosine transform (DCT) coefficients Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 7. DCT/IDCT Concept The DCT transform of an image brings out a set of numbers called coefficients. A coefficient’s usefulness is determined by its variance over a set of images as in video’s case. If a coefficient has a lot of variance over a set, then it cannot be removed without affecting the picture quality. Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 8. DCT/IDCT Concept DCT Frequency Coefficients Compared to Magnitude Original Image Thresholds Resulting in Compressed IDCT Data Streams The image is broken into 8x8 groups, each containing 64 pixels. Three of these 8x8 groups are enlarged in this Recovered Image figure, showing the values of (Notice Lesser Image Quality) the individual pixels, a single byte value between 0 and 255. Courtesy: The Scientist and Engineer's Guide to Digital Signal Processing by Steven W. Smith Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 9. DCT/IDCT Concept Divide picture into 16 by 16 blocks. (macroblocks) Each block is 8 pixels by 8 lines. Each macroblock is 16 pixels by 16 lines. (4 blocks) DCT 8 X 8 Block Frequency Coefficients Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 10. DCT/IDCT Usage Areas of Use: — One-Dimensional DCT/IDCT – Dolby AC2 & AC3 – Biomedical signals like EEG & ECG – Speech information compression — Two-Dimensional DCT/IDCT – JPEG Encoders – MPEG-1 & MPEG-2 – Image & Pattern Recognition Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 11. DCT/IDCT Concept One-Dimensional DCT Equation N-1 Xc(k) = (1/N) Σ xn cos(k2πn/N), n=0 where k = 0, 1, 2, …, N-1 Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 12. DCT/IDCT Concept One-Dimensional IDCT Equation N-1 xc(k) = Σ c[u] Xn cos(k2πn/N), n=0 where k = 0, 1, 2, …, N-1, Xn is the DCT result, and c[u] = 1 for u=0, and c[u] = 2 for u=1,2,3,…N-1 Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 13. DCT/IDCT Concept Two-Dimensional DCT Equation N-1 N-1 F[u, v] = 1/N2 Σ Σ f[m, n] cos[ (2m + 1)uπ/ 2N] cos[ (2n + 1)vπ/2N ] m=0 n=0 where: u, v = discrete frequency variables (0, 1, 2, …, N - 1), f[m, n] = N by N image pixels(0, 1, 2, …, N - 1), and F[u, v] = the DCT result Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 14. DCT/IDCT Concept Two-Dimensional IDCT Equation N-1 N-1 f[m, n] = Σ Σ c[u] c[v] F[u, v] cos[ (2m + 1)uπ/ 2N] cos[ (2n + 1)vπ/2N ] m=0 n=0 where: m, n = image result pixel indices( 0, 1, 2, …, N – 1 ), F[u, v] = N by N DCT result, c[λ] = 1 for λ=0 and c[λ]=2 for λ=1,2,3,…N-1 f[m, n] = N by N IDCT result Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 15. DCT/IDCT Concept Example of a Simplistic one-Dimensional DCT — Data is transformed first and the newly calculated values are threshold limited to a magnitude of 0.375 — Assuming a data sequence to be {1, 2, 0, 5} Applying the one-Dimensional DCT formula,the resultant DCT sequence is {2, 0.25, -6, 0.25} The values that above the threshold (|values| > 0.375) are 2 and –6 This results in a 50% reduction in data size with minimal loss in quality Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 17. DCT/IDCT Applications List of Some End Applications — DVD/Video CD Players — Cable TV — DBS Systems — HDTV — Graphics/Image Processing Cards — Ultrasound/MRI Systems — Digital VCRs — Set-Top Boxes — Digital Camera Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 18. DCT/IDCT in JPEG Encoding Compressed Zig-Zag Data Pixel Data Coefficient Run-Length Huffman DCT Encoding Encoding Quantization Decoding Reconstructed Compressed Huffman Zig-Zag Pixel Data Run-Length Coefficient Data Decoding IDCT Expansion Denormalization JPEG Codec Block Diagram Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 19. DCT/IDCT in Bio-Medical 1-D DCT is commonly used on a sequence of digital information like voice or heartbeat information in an ECG Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 20. DCT/IDCT in DVD/VCD Reconstructed (Decoded) Frame Inverse IDCT Quantizer Video to Coded Video be Coded Bitstream Bitstream DCT Quantizer Coder + - Motion Motion Estimator Compensator Anchor Frame Storage Courtesy: C-Cube Corporation MPEG-2 Block Diagram in a Typical DVD System Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 21. DCT/IDCT in DVD/VCD Master Variable Bit Rate or Video Tape MPEG-2 Audio Encoder Quality Control Multiplexing Emulation Human and Formatting Assist Master Recoding Disc Master Dolby AC3 or Audio Tape MPEG-2 Audio Encoder Courtesy: C-Cube Corporation DVD/VCD Mastering Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 22. DCT/IDCT in DVD/VCD Digital Audio/Video Decoder MPEG-2 Video Decoder NTSC/ PAL To TV DVD Subpicture OSD Encoder DSP DEMUX Processing Graphics To Audio System Dolby AC3 or MPEG-2 Audio Decoder Front Panel Microcontroller 10:00:23 || Courtesy: C-Cube Corporation DVD Player Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 23. DCT/IDCT in DVD/VCD DVD Players Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 24. DCT/IDCT in Digital Cameras 2-D DCT/IDCT is applied generally on data sets that have a naturally two-dimensional characteristic, like a digital image Digital Cameras Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 25. Spartan-II DCT/IDCT Solution DCT/IDCT Cores — Available Separately or Combined AllianceCORE Xentec DCT/IDCT Core Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 26. Spartan-II DCT/IDCT Solution Features Features Spartan-II Device XC2S100-6 CLBs 1026 Clock IOBs 1 IOBs 28 Performance (MHz) 33.3 AllianceCORE Xentec DCT/IDCT Core Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 27. Spartan-II DCT/IDCT Solution Performance Low cost Spartan-II FPGA with soft IP from Xentec has High Performance — 180 times faster 32-bit mainstream processor operating at 266MHz Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 28. Spartan-II DCT/IDCT Solution - Features The Xilinx solution is efficient and cost-effective compared to DCT/IDCT software solution being run by a high performance 32-bit processor The Xilinx Xentec core solution is capable of operating either as DCT or IDCT by the use of a single mode pin Xilinx at Work in High Volume Applications ® www.xilinx.com
  • 29. Summary DCT/IDCT Solutions are Widely Used in Multimedia, Video, Audio, and Imaging Applications The Spartan-II Family has Significant Strengths in its DCT/IDCT Solution: — Features — Performance — Scalability and Flexibility — Cost effectiveness Xilinx at Work in High Volume Applications ® www.xilinx.com