filtering: precompute ilimit and hev_threshold

no speed change, just simplifying the logic

Change-Id: I518800494428596733d4fbae69072049828aec3c
This commit is contained in:
skal
2013-10-28 13:37:33 +01:00
parent 18f992ec0f
commit 43148b6cd2
2 changed files with 24 additions and 27 deletions

View File

@ -164,10 +164,10 @@ typedef struct {
// Informations about the macroblocks.
typedef struct { // filter specs
uint8_t f_level_; // filter strength: 0..63
uint8_t f_ilevel_; // inner limit: 1..63
uint8_t f_limit_; // filter limit in [3..189], or 0 if no filtering
uint8_t f_ilevel_; // inner limit in [1..63]
uint8_t f_inner_; // do inner filtering?
uint8_t pad_; // mostly needed for struct aligning on ARM
uint8_t hev_thresh_; // high edge variance threshold in [0..2]
} VP8FInfo;
typedef struct { // Top/Left Contexts used for syntax-parsing