Lines Matching refs:it
52 // use for coding it (in [][0]) as well as the bit value to use for each
494 // should be prob[VP8EncBands[n]], but it's equivalent for n=0 or 1
498 // (as required by the syntax). For ctx0 == 0, we need to add it here or it'll
599 int VP8GetCostLuma4(VP8EncIterator* const it, const int16_t levels[16]) {
600 const int x = (it->i4_ & 3), y = (it->i4_ >> 2);
602 VP8Encoder* const enc = it->enc_;
607 ctx = it->top_nz_[x] + it->left_nz_[y];
613 int VP8GetCostLuma16(VP8EncIterator* const it, const VP8ModeScore* const rd) {
615 VP8Encoder* const enc = it->enc_;
619 VP8IteratorNzToBytes(it); // re-import the non-zero context
624 R += VP8GetResidualCost(it->top_nz_[8] + it->left_nz_[8], &res);
630 const int ctx = it->top_nz_[x] + it->left_nz_[y];
633 it->top_nz_[x] = it->left_nz_[y] = (res.last >= 0);
639 int VP8GetCostUV(VP8EncIterator* const it, const VP8ModeScore* const rd) {
641 VP8Encoder* const enc = it->enc_;
645 VP8IteratorNzToBytes(it); // re-import the non-zero context
651 const int ctx = it->top_nz_[4 + ch + x] + it->left_nz_[4 + ch + y];
654 it->top_nz_[4 + ch + x] = it->left_nz_[4 + ch + y] = (res.last >= 0);
684 // should be stats[VP8EncBands[n]], but it's equivalent for n=0 or 1