Table of Contents

NAME

QccPackSQ - QccPack module for scalar quantization

DESCRIPTION

QccPackSQ provides a collection of library routines and utility programs for scalar quantization.

LIBRARY ROUTINES

- no documentation at this time -

UTILITY PROGRAMS

squniform(1)
make uniform scalar quantizer
sqlloyd(1)
design Lloyd optimal mean-square scalar quantizer for Gaussian and Laplacian densities
sqencode(1)
encoding using scalar quantization
sqdecode(1)
scalar-quantization decoding

FILE FORMATS

In general, each file format starts with an ASCII header followed by ASCII or binary data. The ASCII header starts with a magic number, and can be followed with any amount of white space (blanks, `\t' (tab), `\n' (newline), `\r' (carriage return)) and/or comments lines (lines starting with "#"). Following this white space, each format has a varying amount of header information in ASCII. This ASCII header information is separated by blanks and newlines. The data follows this ASCII header information. The data is in binary, and one (and only one) newline must immediately follow the last component of ASCII header information.
SQ - scalar-quantizer format

SQX.X
<white space>
<type>
<data>...

where SQ is the magic number, X.X is the revision number, <white space> is white space and/or comment lines, and <type> is an ASCII integer specifying one three possible formats.

For the general scalar quantizer (<type> = 0), <data> is of the following form:

N
l1 l2 l3...
p1 p2 p3...
b1 b2 b3...
.
.
.

where N is the number of reproduction levels the file contains, li are the reproduction levels, pi are the level probabilities, and bi are the boundaries between reproduction levels. N is an ASCII integer; li, pi, and bi are doubles, stored as binary (4 bytes, MSB first). The files contains N values each for li and pi; the file contains N - 1 bi values.

For the uniform quantizer, (<type> = 1), <data> is a single double value stored as binary giving the stepsize of the uniform scalar quantizer.

For the deadzone quantizer, (<type> = 2), <data> is a double value stored as binary giving the stepsize of the uniform scalar quantizer, followed by another double giving the size of the deadzone.

SEE ALSO

squniform(1) , sqlloyd(1) , sqencode(1) , sqdecode(1) , QccPackENT(3) , QccPackVQ(3) , QccPackAVQ(3) , QccPackIMG(3) , QccPackWAV(3) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads