diff mlp.h @ 9647:d0fe5dc427f0 libavcodec

mlp: Simplify adressing of state and coeffs arrays for both filters by making the arrays sequential.
author ramiro
date Fri, 15 May 2009 15:34:22 +0000
parents b724134599eb
children 38147f0f94cc
line wrap: on
line diff
--- a/mlp.h	Fri May 15 15:30:43 2009 +0000
+++ b/mlp.h	Fri May 15 15:34:22 2009 +0000
@@ -73,13 +73,13 @@
     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