mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-12-20 10:25:53 +01:00
c7c1564d9f
- added comments, code alignment for clarity - renamed some decoders for consistency (ex. eaxa > ea_xa, invert_psx > psx_bmdx, vgm_adpcm_cfg > psx_cfg) - removed layout_dkt_interleave (same as nolayout) - removed skip_last_channel (not used anymore) - removed meta_DSP_HALP (not used anymore)
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/*
|
|
* g72x_state.h - internal state used by g721 decoder
|
|
*/
|
|
|
|
|
|
#ifndef _G72X_STATE_H
|
|
#define _G72X_STATE_H
|
|
|
|
struct g72x_state {
|
|
long yl; /* Locked or steady state step size multiplier. */
|
|
short yu; /* Unlocked or non-steady state step size multiplier. */
|
|
short dms; /* Short term energy estimate. */
|
|
short dml; /* Long term energy estimate. */
|
|
short ap; /* Linear weighting coefficient of 'yl' and 'yu'. */
|
|
|
|
short a[2]; /* Coefficients of pole portion of prediction filter. */
|
|
short b[6]; /* Coefficients of zero portion of prediction filter. */
|
|
short pk[2]; /*
|
|
* Signs of previous two samples of a partially
|
|
* reconstructed signal.
|
|
*/
|
|
short dq[6]; /*
|
|
* Previous 6 samples of the quantized difference
|
|
* signal represented in an internal floating point
|
|
* format.
|
|
*/
|
|
short sr[2]; /*
|
|
* Previous 2 samples of the quantized difference
|
|
* signal represented in an internal floating point
|
|
* format.
|
|
*/
|
|
char td; /* delayed tone detect, new in 1988 version */
|
|
};
|
|
|
|
#endif
|