mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
Refactor VP8IteratorNext().
Change-Id: I7055d3ee3bd7ed5e78e94ae82cb858fa7db3ddc0
This commit is contained in:
parent
c27d821096
commit
ffd01929f1
@ -309,14 +309,14 @@ void VP8IteratorSaveBoundary(VP8EncIterator* const it) {
|
||||
}
|
||||
|
||||
int VP8IteratorNext(VP8EncIterator* const it) {
|
||||
if (++it->x_ == it->enc_->mb_w_) {
|
||||
VP8IteratorSetRow(it, ++it->y_);
|
||||
} else {
|
||||
it->preds_ += 4;
|
||||
it->mb_ += 1;
|
||||
it->nz_ += 1;
|
||||
it->y_top_ += 16;
|
||||
it->uv_top_ += 16;
|
||||
it->x_ += 1;
|
||||
if (it->x_ == it->enc_->mb_w_) {
|
||||
VP8IteratorSetRow(it, ++it->y_);
|
||||
}
|
||||
return (0 < --it->count_down_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user