unroll the kBands[] indirection to remove a dereference in GetCoeffs()

speed-up is small but visible.

Change-Id: Icff546adc3276f3c3d46b147c4a735b5eb8ff22e
This commit is contained in:
Pascal Massimino
2014-12-11 08:06:20 +01:00
parent 8ed9c00d5e
commit 1c4e3efea0
3 changed files with 16 additions and 12 deletions

View File

@ -141,6 +141,7 @@ typedef struct {
uint8_t segments_[MB_FEATURE_TREE_PROBS];
// Type: 0:Intra16-AC 1:Intra16-DC 2:Chroma 3:Intra4
VP8BandProbas bands_[NUM_TYPES][NUM_BANDS];
const VP8BandProbas* bands_ptr_[NUM_TYPES][16 + 1];
} VP8Proba;
// Filter parameters