Optimize VP8SetResidualCoeffs.

Brings down WebP lossy encoding timings by 5%

Change-Id: Ia4a2fab0a887aaaf7841ce6d9ee16270d3e15489
This commit is contained in:
skal
2014-06-03 06:44:04 +02:00
parent ac591cf22e
commit 6679f8996f
6 changed files with 107 additions and 44 deletions

View File

@ -37,7 +37,13 @@ typedef struct {
void VP8InitResidual(int first, int coeff_type,
VP8Encoder* const enc, VP8Residual* const res);
void VP8SetResidualCoeffs(const int16_t* const coeffs, VP8Residual* const res);
typedef void (*VP8SetResidualCoeffsFunc)(const int16_t* const coeffs,
VP8Residual* const res);
extern VP8SetResidualCoeffsFunc VP8SetResidualCoeffs;
extern void VP8SetResidualCoeffsInit(void); // must be called first
int VP8RecordCoeffs(int ctx, const VP8Residual* const res);
// approximate cost per level: