• Home
  • Raw
  • Download

Lines Matching refs:it

24 static void InitLeft(VP8EncIterator* const it) {  in InitLeft()  argument
25 const VP8Encoder* const enc = it->enc_; in InitLeft()
27 (it->y_) > 0 ? 129 : 127; in InitLeft()
31 it->left_nz_[8] = 0; in InitLeft()
34 static void InitTop(VP8EncIterator* const it) { in InitTop() argument
35 const VP8Encoder* const enc = it->enc_; in InitTop()
41 void VP8IteratorReset(VP8EncIterator* const it) { in VP8IteratorReset() argument
42 VP8Encoder* const enc = it->enc_; in VP8IteratorReset()
43 it->x_ = 0; in VP8IteratorReset()
44 it->y_ = 0; in VP8IteratorReset()
45 it->y_offset_ = 0; in VP8IteratorReset()
46 it->uv_offset_ = 0; in VP8IteratorReset()
47 it->mb_ = enc->mb_info_; in VP8IteratorReset()
48 it->preds_ = enc->preds_; in VP8IteratorReset()
49 it->nz_ = enc->nz_; in VP8IteratorReset()
50 it->bw_ = &enc->parts_[0]; in VP8IteratorReset()
51 it->done_ = enc->mb_w_* enc->mb_h_; in VP8IteratorReset()
52 InitTop(it); in VP8IteratorReset()
53 InitLeft(it); in VP8IteratorReset()
54 memset(it->bit_count_, 0, sizeof(it->bit_count_)); in VP8IteratorReset()
55 it->do_trellis_ = 0; in VP8IteratorReset()
58 void VP8IteratorInit(VP8Encoder* const enc, VP8EncIterator* const it) { in VP8IteratorInit() argument
59 it->enc_ = enc; in VP8IteratorInit()
60 it->y_stride_ = enc->pic_->y_stride; in VP8IteratorInit()
61 it->uv_stride_ = enc->pic_->uv_stride; in VP8IteratorInit()
63 it->yuv_in_ = enc->yuv_in_; in VP8IteratorInit()
64 it->yuv_out_ = enc->yuv_out_; in VP8IteratorInit()
65 it->yuv_out2_ = enc->yuv_out2_; in VP8IteratorInit()
66 it->yuv_p_ = enc->yuv_p_; in VP8IteratorInit()
67 it->lf_stats_ = enc->lf_stats_; in VP8IteratorInit()
68 VP8IteratorReset(it); in VP8IteratorInit()
75 void VP8IteratorImport(const VP8EncIterator* const it) { in VP8IteratorImport() argument
76 const VP8Encoder* const enc = it->enc_; in VP8IteratorImport()
77 const int x = it->x_, y = it->y_; in VP8IteratorImport()
82 uint8_t* ydst = it->yuv_in_ + Y_OFF; in VP8IteratorImport()
83 uint8_t* udst = it->yuv_in_ + U_OFF; in VP8IteratorImport()
84 uint8_t* vdst = it->yuv_in_ + V_OFF; in VP8IteratorImport()
128 void VP8IteratorExport(const VP8EncIterator* const it) { in VP8IteratorExport() argument
129 const VP8Encoder* const enc = it->enc_; in VP8IteratorExport()
131 const int x = it->x_, y = it->y_; in VP8IteratorExport()
132 const uint8_t* const ysrc = it->yuv_out_ + Y_OFF; in VP8IteratorExport()
133 const uint8_t* const usrc = it->yuv_out_ + U_OFF; in VP8IteratorExport()
134 const uint8_t* const vsrc = it->yuv_out_ + V_OFF; in VP8IteratorExport()
179 void VP8IteratorNzToBytes(VP8EncIterator* const it) { in VP8IteratorNzToBytes() argument
180 const int tnz = it->nz_[0], lnz = it->nz_[-1]; in VP8IteratorNzToBytes()
183 it->top_nz_[0] = BIT(tnz, 12); in VP8IteratorNzToBytes()
184 it->top_nz_[1] = BIT(tnz, 13); in VP8IteratorNzToBytes()
185 it->top_nz_[2] = BIT(tnz, 14); in VP8IteratorNzToBytes()
186 it->top_nz_[3] = BIT(tnz, 15); in VP8IteratorNzToBytes()
188 it->top_nz_[4] = BIT(tnz, 18); in VP8IteratorNzToBytes()
189 it->top_nz_[5] = BIT(tnz, 19); in VP8IteratorNzToBytes()
191 it->top_nz_[6] = BIT(tnz, 22); in VP8IteratorNzToBytes()
192 it->top_nz_[7] = BIT(tnz, 23); in VP8IteratorNzToBytes()
194 it->top_nz_[8] = BIT(tnz, 24); in VP8IteratorNzToBytes()
197 it->left_nz_[0] = BIT(lnz, 3); in VP8IteratorNzToBytes()
198 it->left_nz_[1] = BIT(lnz, 7); in VP8IteratorNzToBytes()
199 it->left_nz_[2] = BIT(lnz, 11); in VP8IteratorNzToBytes()
200 it->left_nz_[3] = BIT(lnz, 15); in VP8IteratorNzToBytes()
202 it->left_nz_[4] = BIT(lnz, 17); in VP8IteratorNzToBytes()
203 it->left_nz_[5] = BIT(lnz, 19); in VP8IteratorNzToBytes()
205 it->left_nz_[6] = BIT(lnz, 21); in VP8IteratorNzToBytes()
206 it->left_nz_[7] = BIT(lnz, 23); in VP8IteratorNzToBytes()
210 void VP8IteratorBytesToNz(VP8EncIterator* const it) { in VP8IteratorBytesToNz() argument
213 nz |= (it->top_nz_[0] << 12) | (it->top_nz_[1] << 13); in VP8IteratorBytesToNz()
214 nz |= (it->top_nz_[2] << 14) | (it->top_nz_[3] << 15); in VP8IteratorBytesToNz()
215 nz |= (it->top_nz_[4] << 18) | (it->top_nz_[5] << 19); in VP8IteratorBytesToNz()
216 nz |= (it->top_nz_[6] << 22) | (it->top_nz_[7] << 23); in VP8IteratorBytesToNz()
217 nz |= (it->top_nz_[8] << 24); // we propagate the _top_ bit, esp. for intra4 in VP8IteratorBytesToNz()
219 nz |= (it->left_nz_[0] << 3) | (it->left_nz_[1] << 7); in VP8IteratorBytesToNz()
220 nz |= (it->left_nz_[2] << 11); in VP8IteratorBytesToNz()
221 nz |= (it->left_nz_[4] << 17) | (it->left_nz_[6] << 21); in VP8IteratorBytesToNz()
223 *it->nz_ = nz; in VP8IteratorBytesToNz()
231 int VP8IteratorNext(VP8EncIterator* const it, in VP8IteratorNext() argument
233 VP8Encoder* const enc = it->enc_; in VP8IteratorNext()
235 const int x = it->x_, y = it->y_; in VP8IteratorNext()
258 it->mb_++; in VP8IteratorNext()
259 it->preds_ += 4; in VP8IteratorNext()
260 it->nz_++; in VP8IteratorNext()
261 it->x_++; in VP8IteratorNext()
262 if (it->x_ == enc->mb_w_) { in VP8IteratorNext()
263 it->x_ = 0; in VP8IteratorNext()
264 it->y_++; in VP8IteratorNext()
265 it->bw_ = &enc->parts_[it->y_ & (enc->num_parts_ - 1)]; in VP8IteratorNext()
266 it->preds_ = enc->preds_ + it->y_ * 4 * enc->preds_w_; in VP8IteratorNext()
267 it->nz_ = enc->nz_; in VP8IteratorNext()
268 InitLeft(it); in VP8IteratorNext()
270 return (0 < --it->done_); in VP8IteratorNext()
276 void VP8SetIntra16Mode(const VP8EncIterator* const it, int mode) { in VP8SetIntra16Mode() argument
278 uint8_t* preds = it->preds_; in VP8SetIntra16Mode()
281 preds += it->enc_->preds_w_; in VP8SetIntra16Mode()
283 it->mb_->type_ = 1; in VP8SetIntra16Mode()
286 void VP8SetIntra4Mode(const VP8EncIterator* const it, int modes[16]) { in VP8SetIntra4Mode() argument
288 uint8_t* preds = it->preds_; in VP8SetIntra4Mode()
293 preds += it->enc_->preds_w_; in VP8SetIntra4Mode()
295 it->mb_->type_ = 0; in VP8SetIntra4Mode()
298 void VP8SetIntraUVMode(const VP8EncIterator* const it, int mode) { in VP8SetIntraUVMode() argument
299 it->mb_->uv_mode_ = mode; in VP8SetIntraUVMode()
302 void VP8SetSkip(const VP8EncIterator* const it, int skip) { in VP8SetSkip() argument
303 it->mb_->skip_ = skip; in VP8SetSkip()
306 void VP8SetSegment(const VP8EncIterator* const it, int segment) { in VP8SetSegment() argument
307 it->mb_->segment_ = segment; in VP8SetSegment()
349 void VP8IteratorStartI4(VP8EncIterator* const it) { in VP8IteratorStartI4() argument
350 VP8Encoder* const enc = it->enc_; in VP8IteratorStartI4()
353 it->i4_ = 0; // first 4x4 sub-block in VP8IteratorStartI4()
354 it->i4_top_ = it->i4_boundary_ + VP8TopLeftI4[0]; in VP8IteratorStartI4()
358 it->i4_boundary_[i] = enc->y_left_[15 - i]; in VP8IteratorStartI4()
361 it->i4_boundary_[17 + i] = enc->y_top_[it->x_ * 16 + i]; in VP8IteratorStartI4()
364 if (it->x_ < enc->mb_w_ - 1) { in VP8IteratorStartI4()
366 it->i4_boundary_[17 + i] = enc->y_top_[it->x_ * 16 + i]; in VP8IteratorStartI4()
370 it->i4_boundary_[17 + i] = it->i4_boundary_[17 + 15]; in VP8IteratorStartI4()
373 VP8IteratorNzToBytes(it); // import the non-zero context in VP8IteratorStartI4()
376 int VP8IteratorRotateI4(VP8EncIterator* const it, in VP8IteratorRotateI4() argument
378 const uint8_t* const blk = yuv_out + VP8Scan[it->i4_]; in VP8IteratorRotateI4()
379 uint8_t* const top = it->i4_top_; in VP8IteratorRotateI4()
386 if ((it->i4_ & 3) != 3) { // if not on the right sub-blocks #3, #7, #11, #15 in VP8IteratorRotateI4()
396 it->i4_++; in VP8IteratorRotateI4()
397 if (it->i4_ == 16) { // we're done in VP8IteratorRotateI4()
401 it->i4_top_ = it->i4_boundary_ + VP8TopLeftI4[it->i4_]; in VP8IteratorRotateI4()