1 / 16

Source Coding

Source Coding. Jean Walrand EECS. Outline. Compression Losless: Huffman Lempel-Ziv Audio: Examples Differential ADPCM SUBBAND CELP Video: Discrete Cosine Transform Motion Compensation. Compression. Goal:. Reduce the number of bits to encode source. Approaches:.

talib
Download Presentation

Source Coding

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Source Coding Jean WalrandEECS

  2. Outline • Compression • Losless: • Huffman • Lempel-Ziv • Audio: • Examples • Differential • ADPCM • SUBBAND • CELP • Video: • Discrete Cosine Transform • Motion Compensation

  3. Compression • Goal: • Reduce the number of bits to encode source • Approaches: • Lossless: For data • Lossy: For voice, video

  4. Lossless Key Idea: Use shorter code words for more frequent symbols EX1: Huffman Encoding

  5. EX2: Huffman Encoding(continued)

  6. If the symbols are independent and identically distributed, the Huffman encoding is the prefix-free code with the minimum average number of bits. Note: The Shannon encoding requires fewer bits, but requires encoding large blocks of symbols. Both codes assume that the distribution is known. Huffman Encoding(continued)

  7. Lempel-Ziv • Lossless • Symbols are not independent • Distribution is not known • Want to minimize the average number of bits • Typical application: any file • Approach: Build dictionary and replace string with location of prefix in the dictionary

  8. Example: Lempel-Ziv(continued)

  9. Audio • Examples: • Speech: • PCM 64kbps • ADPCM 32-64kbps • SBC 16-32kbps • VSELP-CELP 2.4-8kbps • Audio: • PCM 1400kbps • MPEG 48-384kbps

  10. Differential Encoding (also used for Video): Key Idea is that differences between successive samples may be small Difficulty: Error Propagation Audio (c’d)

  11. Differential Encoding (c’d) Audio (c’d)

  12. ADPCM: Adaptive Differential PCMPredict next value, encode error Audio (c’d)

  13. Sub-Band Coding: Improves performance Audio (c’d)

  14. CELP (Code Excited Linear Predictor) Audio (c’d)

  15. Discrete Cosine Transform Objective: Extract “Visible Information” Video f(x, y) = Sm,n F(m, n) cos(mx) cos(ny)

  16. Motion Compensation Idea: Track motion of picture Encode (motion vector, modification) Video (cd)

More Related