summaryrefslogtreecommitdiff
path: root/libavcodec/mlp.h
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-05-15 15:34:22 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-05-15 15:34:22 +0000
commit13bd2044d3887b7f0008168c5173a274b5247488 (patch)
tree28efb00200745da115d578ef8d9743eb32872cfd /libavcodec/mlp.h
parent42e64bf874ee7dae7cf78773e12fbb35571948e3 (diff)
mlp: Simplify adressing of state and coeffs arrays for both filters by making
the arrays sequential. Originally committed as revision 18841 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlp.h')
-rw-r--r--libavcodec/mlp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlp.h b/libavcodec/mlp.h
index c1c0abd7c2..b83881653c 100644
--- a/libavcodec/mlp.h
+++ b/libavcodec/mlp.h
@@ -73,13 +73,13 @@ typedef struct {
uint8_t order; ///< number of taps in filter
uint8_t shift; ///< Right shift to apply to output of filter.
- int32_t coeff[MAX_FIR_ORDER];
int32_t state[MAX_FIR_ORDER];
} FilterParams;
/** sample data coding information */
typedef struct {
FilterParams filter_params[NUM_FILTERS];
+ int32_t coeff[NUM_FILTERS][MAX_FIR_ORDER];
int16_t huff_offset; ///< Offset to apply to residual values.
int32_t sign_huff_offset; ///< sign/rounding-corrected version of huff_offset