mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
use 32bit for storing dequant coeffs, instead of 16b.
is a tad faster Change-Id: Ibef8f3b4f3f04a9a647098e5946f616e211a61cd
This commit is contained in:
parent
b9600308e8
commit
f73947f41d
@ -460,7 +460,7 @@ typedef const uint8_t (*ProbaArray)[NUM_CTX][NUM_PROBAS]; // for const-casting
|
||||
// Returns the position of the last non-zero coeff plus one
|
||||
// (and 0 if there's no coeff at all)
|
||||
static int GetCoeffs(VP8BitReader* const br, ProbaArray prob,
|
||||
int ctx, const uint16_t dq[2], int n, int16_t* out) {
|
||||
int ctx, const quant_t dq, int n, int16_t* out) {
|
||||
const uint8_t* p = prob[kBands[n]][ctx];
|
||||
if (!VP8GetBit(br, p[0])) { // first EOB is more a 'CBP' bit.
|
||||
return 0;
|
||||
|
@ -162,8 +162,9 @@ typedef struct { // used for syntax-parsing
|
||||
} VP8MB;
|
||||
|
||||
// Dequantization matrices
|
||||
typedef int quant_t[2]; // [DC / AC]. Can be 'uint16_t[2]' too (~slower).
|
||||
typedef struct {
|
||||
uint16_t y1_mat_[2], y2_mat_[2], uv_mat_[2]; // [DC / AC]
|
||||
quant_t y1_mat_, y2_mat_, uv_mat_;
|
||||
} VP8QuantMatrix;
|
||||
|
||||
// Persistent information needed by the parallel processing
|
||||
|
Loading…
Reference in New Issue
Block a user