Main Content

Source Coding

Format signals for processing

Apply various source coding to format signals according to representative partitions, specific codebook mapping, compressing, expanding, companding, and quantization.

Functions

arithdecoDecode binary code by arithmetic decoding
arithencoEncode sequence of symbols by arithmetic encoding
compandSource coding mu-law or A-law compressor or expander
dpcmdecoDecode using differential pulse code modulation
dpcmencoEncode using differential pulse code modulation
dpcmoptOptimize differential pulse code modulation parameters
huffmandecoDecode binary code by Huffman decoding
huffmandictGenerate Huffman code dictionary for source with known probability model
huffmanencoEncode sequence of symbols by Huffman encoding
lloydsOptimize quantization parameters using Lloyd algorithm
quantizProduce quantization index and quantized output value

Objects

comm.DifferentialDecoderDecode binary signal using differential decoding
comm.DifferentialEncoderEncode binary signal using differential coding

Blocks

A-Law CompressorImplement A-law compressor for source coding
A-Law ExpanderImplement A-law expander for source coding
Differential DecoderDecode binary signal using differential coding
Differential EncoderEncode binary signal using differential coding
Mu-Law CompressorImplement µ-law compressor for source coding
Mu-Law ExpanderImplement µ-law expander for source coding
Quantizing DecoderDecode quantization index according to codebook
Quantizing EncoderQuantize signal using partition and codebook

Topics

  • Source Coding

    Scalar quantization is a process that maps all inputs within a specified range to a common value.

  • Quantize and Compand an Exponential Signal

    When transmitting signals with a high dynamic range, quantization using equal length intervals can result in loss of precision and signal distortion.

  • Differential Pulse Code Modulation

    Learn about differential pulse code modulation (DPCM) and how it is used as a predictive quantization method.

  • Quantization

    Scalar quantization is a process that maps all inputs within a specified range to a common value.