adpcm_e
| Directory | DOS Name | Type |
| Compress |
adpcm_e |
mex-file |
Purpose
ADPCM (adaptive differential pulse code modulation) encoding
Calling Sequence
I = adpcm_e(x, M)
or
[I, pn, Gn] = adpcm_e(x, [M, mu], p1, G1)
INPUTS
|
Input |
Description |
|
x
|
data
|
|
M
|
number of bits
|
|
mu
|
mu-law companding parameter (>= 0, 0 - no companding)
|
|
p1
|
starting prediction
|
|
G1
|
starting gain
|
OUTPUTS
|
Output |
Description |
|
I
|
encoding of x (range 0:2^M-1)
|
|
pn
|
ending prediction
|
|
Gn
|
ending gain
|
Notes
Also: [y, pn, Gn, GV] = adpcm_e(x, M, p1, G1, A)
where:
A - gain adaption numbers (must be a power of 2 in length)
GV - all the gain values (a vector)
DigComT Licensee: Chris Heegard
Native Intelligence
Last modified: Tuesday, January 11, 2000
Date created: Tuesday, January 11, 2000
Copyright © 1997-2000, Native Intelligence, All rights reserved.