mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-15 21:39:59 +02:00
Unify the API between VP8BitWriter and VP8LBitWriter
BitReader will be next... Change-Id: Icd9e7ab2e3890131e664c0523627d9b8c5399a74
This commit is contained in:
@ -491,14 +491,14 @@ void VP8WriteProbas(VP8BitWriter* const bw, const VP8Proba* const probas) {
|
||||
const uint8_t p0 = probas->coeffs_[t][b][c][p];
|
||||
const int update = (p0 != VP8CoeffsProba0[t][b][c][p]);
|
||||
if (VP8PutBit(bw, update, VP8CoeffsUpdateProba[t][b][c][p])) {
|
||||
VP8PutValue(bw, p0, 8);
|
||||
VP8PutBits(bw, p0, 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (VP8PutBitUniform(bw, probas->use_skip_proba_)) {
|
||||
VP8PutValue(bw, probas->skip_proba_, 8);
|
||||
VP8PutBits(bw, probas->skip_proba_, 8);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user