comparison 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
comparison
equal deleted inserted replaced
9646:b8b9ff6fa077 9647:d0fe5dc427f0
71 /** filter data */ 71 /** filter data */
72 typedef struct { 72 typedef struct {
73 uint8_t order; ///< number of taps in filter 73 uint8_t order; ///< number of taps in filter
74 uint8_t shift; ///< Right shift to apply to output of filter. 74 uint8_t shift; ///< Right shift to apply to output of filter.
75 75
76 int32_t coeff[MAX_FIR_ORDER];
77 int32_t state[MAX_FIR_ORDER]; 76 int32_t state[MAX_FIR_ORDER];
78 } FilterParams; 77 } FilterParams;
79 78
80 /** sample data coding information */ 79 /** sample data coding information */
81 typedef struct { 80 typedef struct {
82 FilterParams filter_params[NUM_FILTERS]; 81 FilterParams filter_params[NUM_FILTERS];
82 int32_t coeff[NUM_FILTERS][MAX_FIR_ORDER];
83 83
84 int16_t huff_offset; ///< Offset to apply to residual values. 84 int16_t huff_offset; ///< Offset to apply to residual values.
85 int32_t sign_huff_offset; ///< sign/rounding-corrected version of huff_offset 85 int32_t sign_huff_offset; ///< sign/rounding-corrected version of huff_offset
86 uint8_t codebook; ///< Which VLC codebook to use to read residuals. 86 uint8_t codebook; ///< Which VLC codebook to use to read residuals.
87 uint8_t huff_lsbs; ///< Size of residual suffix not encoded using VLC. 87 uint8_t huff_lsbs; ///< Size of residual suffix not encoded using VLC.