from analogue to from analogue to digital concepts and
play

FROM ANALOGUE TO FROM ANALOGUE TO DIGITAL: CONCEPTS AND DIGITAL: - PowerPoint PPT Presentation

FROM ANALOGUE TO FROM ANALOGUE TO DIGITAL: CONCEPTS AND DIGITAL: CONCEPTS AND TECHNIQUES TECHNIQUES Fernando Pereira Fernando Pereira Instituto Superior Tcnico Instituto Superior Tcnico Audiovisual Communications, Fernando Pereira,


  1. FROM ANALOGUE TO FROM ANALOGUE TO DIGITAL: CONCEPTS AND DIGITAL: CONCEPTS AND TECHNIQUES TECHNIQUES Fernando Pereira Fernando Pereira Instituto Superior Técnico Instituto Superior Técnico Audiovisual Communications, Fernando Pereira, 2012

  2. An Analogue World … An An Analogue World … An Analogue World … Analogue World … An analog/analogue signal is any variable signal, continuous in both An analog/analogue signal is any variable signal, continuous in both time and amplitude. time and amplitude. � Any information may be conveyed by an analogue signal; often such a signal is a measured response to changes in physical phenomena, such as sound or light, and is achieved using a transducer, e.g. camera or microphone. � A disadvantage of analogue representation is that any system has noise—that is, random variations—in it; as the signal is transmitted over long distances, these random variations may become dominant. Audiovisual Communications, Fernando Pereira, 2012

  3. Digitization Digitization Digitization Digitization Process Process of of expressing expressing analogue analogue data data in in digital digital form form. Analogue data implies ‘continuity’ while digital data is concerned Analogue data implies ‘continuity’ while digital data is concerned with discrete states, e.g. symbols, digits. with discrete states, e.g. symbols, digits. Vantages of digitization: � Easier to process � Easier to compress 134 135 132 12 15... � Easier to multiplex 133 134 133 133 11... 130 133 132 16 12... 137 135 13 14 13... � Easier to protect 140 135 134 14 12... � Lower powers � ... Audiovisual Communications, Fernando Pereira, 2012

  4. Sampling Sampling or Sampling Sampling or or Time or Time Time Discretization Time Discretization Discretization Discretization Sampling is the process of obtaining a periodic sequence of Sampling is the process of obtaining a periodic sequence of samples to represent an analogue signal. samples to represent an analogue signal. Sampling is governed by the Sampling Theorem which states that: An analog signal may be fully reconstructed from a periodic sequence of samples if the sampling frequency is, at least, twice the maximum frequency present in the signal. Audiovisual Communications, Fernando Pereira, 2012

  5. Image Sampling Image Sampling Image Sampling Image Sampling The number of samples The number of samples (resolution) of an image (resolution) of an image is very important to is very important to determine the ‘final determine the ‘final quality’. quality’. Audiovisual Communications, Fernando Pereira, 2012

  6. Quantization or Amplitude Discretization Quantization or Amplitude Discretization Quantization or Amplitude Discretization Quantization or Amplitude Discretization Quantization is the process in which the continuous range of values Quantization is the process in which the continuous range of values of a sampled input analogue signal is divided into non of a sampled input analogue signal is divided into non-overlapping overlapping subranges, and to each subrange a discrete value of the output is subranges, and to each subrange a discrete value of the output is uniquely assigned. uniquely assigned. Output values Discrete output Continuous input 7 5 3 1 0 1 2 3 4 5 6 7 8 9 Input values Audiovisual Communications, Fernando Pereira, 2012

  7. 2 Levels Quantization 2 Levels Quantization 2 Levels Quantization 2 Levels Quantization Reconstruction levels Output values 192 64 1 bit/sample image 0 128 255 Input values (bilevel) Decision thresholds 8 bit/sample image Audiovisual Communications, Fernando Pereira, 2012

  8. 4 Levels Quantization 4 Levels Quantization 4 Levels Quantization 4 Levels Quantization Reconstruction levels Output values 224 160 96 32 2 bit/sample image 0 64 128 192 255 Input values Decision thresholds 8 bit/sample image Audiovisual Communications, Fernando Pereira, 2012

  9. Uniform Quantization Uniform Quantization Uniform Quantization Uniform Quantization 4 bit/sample 2 bit/sample 0000, 0001, 00, 01, 10 , 11 0010, 0011, … 1 bit/sample 3 bit/sample 0, 1 000, 001, 010, 011, 100, 101, 110, 111 Audiovisual Communications, Fernando Pereira, 2012

  10. Non-Uniform Quantization Non Non-Uniform Quantization Non Uniform Quantization Uniform Quantization For many signals, e.g., speech, uniform or linear quantization is not a good solution in terms of minimizing the mean square error (and thus the � Para muitos sinais, p.e. voz, a Signal to Quantization quantificação linear ou uniforme não é noise Ratio, SQR) due to a melhor escolha em termos da the non-uniform statistics minimização do erro quadrático médio of the signal. (e logo da maximização de SQR) em virtude da estatística não uniforme do Also to get a certain SQR, sinal. Output Saída lower quantization steps have to be used for lower 7 7 5 5 signal amplitudes and 3 3 vice-versa. 1 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 Entrada Input Audiovisual Communications, Fernando Pereira, 2012

  11. Pulse Code Modulation Pulse Code Modulation (PCM) Pulse Code Modulation Pulse Code Modulation (PCM) (PCM) (PCM) PCM is the simplest form of digital source representation/coding PCM is the simplest form of digital source representation/coding where each sample is independently where each sample is independently represented with the same represented with the same number of bits. number of bits. � Example 1: Image with 200×100 samples at 8 bit/sample takes 200 × 100 × 8 = 160000 bits with PCM coding � Example 2: 11 kHz bandwidth audio at 8 bit/sample takes 11000 × 2 × 8 = 176 kbit/s kbit/s with PCM coding Being the simplest form of coding, as well as the least efficient, PCM is typically taken as the reference/benchmark coding method to evaluate the performance of more powerful (source) coding algorithms. Audiovisual Communications, Fernando Pereira, 2012

  12. Image, Samples and Bits … Image, Samples and Bits … Image, Samples and Bits … Image, Samples and Bits … Luminance =   87 89 101 106 118 130 142 155   85 91 101 105 116 129 135 149     Binary representation Binary representation 86 92 96 105 112 128 131 144   > 256 (2 8 ) levels 8 bit/sample -> 256 (2 8 bit/sample ) levels 92 88 102 101 116 129 135 147     88 94 94 98 113 122 130 139     88 95 98 97 113 119 133 141 87 = 0101 0111 87 = 0101 0111   92 99 98 106 107 118 135 145 130 = 130 = 1000 0010 1000 0010       89 95 98 107 104 112 130 144 Audiovisual Communications, Fernando Pereira, 2012

  13. Why Compressing ? Why Compressing ? Why Compressing ? Why Compressing ? � � Speech Speech – e.g. 8000 samples/s with 8 bit/sample e.g. 8000 samples/s with 8 bit/sample – 64000 bit/s = 64 kbit/s 64000 bit/s = 64 kbit/s � Music � Music – e.g. 44000 samples/s with 16 bit/sample e.g. 44000 samples/s with 16 bit/sample – 704000 bit/s=704 704000 bit/s=704 kbit/s kbit/s � � Standard Video Standard Video – e.g. (576 e.g. (576×720+2 720+2×576 576×360 360) )×25 (20736000) 25 (20736000) samples/s samples/s with 8 bit/sample with 8 bit/sample – 166000000 bit/s = 166 Mbit/s 166000000 bit/s = 166 Mbit/s � Full HD 1080p � Full HD 1080p - - (1080 (1080×1920+2 1920+2× ×1080 1080×960 960) )×25 (103680000) 25 (103680000) samples/s samples/s with 8 bit/sample – 829440000 bit/s = 830 Mbit/s with 8 bit/sample 829440000 bit/s = 830 Mbit/s Audiovisual Communications, Fernando Pereira, 2012

  14. How Much is Enough ? How Much is Enough ? How Much is Enough ? How Much is Enough ? � Recommendation ITU-R 601: 25 images/s with 720×576 luminance samples and 360×576 samples for each chrominance with 8 bit/sample [(720 × 576) + 2 × (360 × 576)] × 8 × 25 = 166 Mbit/s � Acceptable rate, p.e. using H.264/MPEG-4 AVC: 2 Mbit/s => => Compression Compression Factor: Factor: 166/2 166/2 ≈ ≈ 80 80 ≈ ≈ ≈ ≈ ≈ ≈ The difference between the resources requested by compressed and non-compressed formats may lead to the emergence or not of new industries, e.g., DVD, digital TV. Audiovisual Communications, Fernando Pereira, 2012

  15. Digital Source Coding/Compression Digital Source Coding/Compression Digital Source Coding/Compression Digital Source Coding/Compression Process through which a source, e.g., images, audio, video, is digitally represented considering relevant requirements such as compression efficiency, error resilience, random access, complexity, etc. � Example 1: Maximizing the quality for the available rate � Example 2: Minimizing the rate for a target quality Audiovisual Communications, Fernando Pereira, 2012

  16. Source Codi Source Source Codi Source Coding Coding ng: ng: : Original Data, Symbols and : Original Data, Symbols and Original Data, Symbols and Original Data, Symbols and Bits Bits Bits Bits Encoder Compressed Original data, Symbols bits e.g. PCM bits Symbol Generator Entropy Coder (Model) The encoder represents the original digital data (PCM) as a sequence of symbols, and later bits, using in the best way the set of available coding tools, to satisfy the relevant requirements. The encoder extracts from the original data ‘its best’ ... The encoder extracts from the original data ‘its best’ ... Audiovisual Communications, Fernando Pereira, 2012

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend