mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
80 cols fix
This commit is contained in:
parent
bd2f65f67c
commit
f4c4e416c0
@ -27,7 +27,8 @@ static inline int VP8BitCost(int bit, uint8_t proba) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cost of coding 'nb' 1's and 'total-nb' 0's using 'proba' probability.
|
// Cost of coding 'nb' 1's and 'total-nb' 0's using 'proba' probability.
|
||||||
static inline uint64_t VP8BranchCost(uint64_t nb, uint64_t total, uint8_t proba) {
|
static inline uint64_t VP8BranchCost(uint64_t nb, uint64_t total,
|
||||||
|
uint8_t proba) {
|
||||||
return nb * VP8BitCost(1, proba) + (total - nb) * VP8BitCost(0, proba);
|
return nb * VP8BitCost(1, proba) + (total - nb) * VP8BitCost(0, proba);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,8 @@ void VP8IteratorBytesToNz(VP8EncIterator* const it) {
|
|||||||
nz |= (it->top_nz_[6] << 22) | (it->top_nz_[7] << 23);
|
nz |= (it->top_nz_[6] << 22) | (it->top_nz_[7] << 23);
|
||||||
nz |= (it->top_nz_[8] << 24); // we propagate the _top_ bit, esp. for intra4
|
nz |= (it->top_nz_[8] << 24); // we propagate the _top_ bit, esp. for intra4
|
||||||
// left
|
// left
|
||||||
nz |= (it->left_nz_[0] << 3) | (it->left_nz_[1] << 7) | (it->left_nz_[2] << 11);
|
nz |= (it->left_nz_[0] << 3) | (it->left_nz_[1] << 7);
|
||||||
|
nz |= (it->left_nz_[2] << 11);
|
||||||
nz |= (it->left_nz_[4] << 17) | (it->left_nz_[6] << 21);
|
nz |= (it->left_nz_[4] << 17) | (it->left_nz_[6] << 21);
|
||||||
|
|
||||||
*it->nz_ = nz;
|
*it->nz_ = nz;
|
||||||
|
@ -261,7 +261,7 @@ typedef struct {
|
|||||||
uint8_t* preds_; // intra mode predictors (4x4 blocks)
|
uint8_t* preds_; // intra mode predictors (4x4 blocks)
|
||||||
uint32_t* nz_; // non-zero pattern
|
uint32_t* nz_; // non-zero pattern
|
||||||
uint8_t i4_boundary_[37]; // 32+5 boundary samples needed by intra4x4
|
uint8_t i4_boundary_[37]; // 32+5 boundary samples needed by intra4x4
|
||||||
uint8_t* i4_top_; // pointer to the current *top boundary sample
|
uint8_t* i4_top_; // pointer to the current top boundary sample
|
||||||
int i4_; // current intra4x4 mode being tested
|
int i4_; // current intra4x4 mode being tested
|
||||||
int top_nz_[9]; // top-non-zero context.
|
int top_nz_[9]; // top-non-zero context.
|
||||||
int left_nz_[9]; // left-non-zero. left_nz[8] is independent.
|
int left_nz_[9]; // left-non-zero. left_nz[8] is independent.
|
||||||
|
Loading…
Reference in New Issue
Block a user