Home | History | Annotate | Download | only in enc

Lines Matching refs:enc

27   const VP8Encoder* const enc = it->enc_;
28 enc->y_left_[-1] = enc->u_left_[-1] = enc->v_left_[-1] =
30 memset(enc->y_left_, 129, 16);
31 memset(enc->u_left_, 129, 8);
32 memset(enc->v_left_, 129, 8);
37 const VP8Encoder* const enc = it->enc_;
38 const size_t top_size = enc->mb_w_ * 16;
39 memset(enc->y_top_, 127, 2 * top_size);
40 memset(enc->nz_, 0, enc->mb_w_ * sizeof(*enc->nz_));
44 VP8Encoder* const enc = it->enc_;
49 it->mb_ = enc->mb_info_;
50 it->preds_ = enc->preds_;
51 it->nz_ = enc->nz_;
52 it->bw_ = &enc->parts_[0];
53 it->done_ = enc->mb_w_* enc->mb_h_;
60 void VP8IteratorInit(VP8Encoder* const enc, VP8EncIterator* const it) {
61 it->enc_ = enc;
62 it->y_stride_ = enc->pic_->y_stride;
63 it->uv_stride_ = enc->pic_->uv_stride;
65 it->yuv_in_ = enc->yuv_in_;
66 it->yuv_out_ = enc->yuv_out_;
67 it->yuv_out2_ = enc->yuv_out2_;
68 it->yuv_p_ = enc->yuv_p_;
69 it->lf_stats_ = enc->lf_stats_;
70 it->percent0_ = enc->percent_;
75 VP8Encoder* const enc = it->enc_;
76 if (delta && enc->pic_->progress_hook) {
77 const int percent = (enc->mb_h_ <= 1)
79 : it->percent0_ + delta * it->y_ / (enc->mb_h_ - 1);
80 return WebPReportProgress(enc->pic_, percent, &enc->percent_);
107 const VP8Encoder* const enc = it->enc_;
109 const WebPPicture* const pic = enc->pic_;
146 const VP8Encoder* const enc = it->enc_;
147 if (enc->config_->show_compressed) {
152 const WebPPicture* const pic = enc->pic_;
249 VP8Encoder* const enc = it->enc_;
254 if (x < enc->mb_w_ - 1) { // left
257 enc->y_left_[i] = ysrc[15 + i * BPS];
260 enc->u_left_[i] = usrc[7 + i * BPS];
261 enc->v_left_[i] = usrc[15 + i * BPS];
264 enc->y_left_[-1] = enc->y_top_[x * 16 + 15];
265 enc->u_left_[-1] = enc->uv_top_[x * 16 + 0 + 7];
266 enc->v_left_[-1] = enc->uv_top_[x * 16 + 8 + 7];
268 if (y < enc->mb_h_ - 1) { // top
269 memcpy(enc->y_top_ + x * 16, ysrc + 15 * BPS, 16);
270 memcpy(enc->uv_top_ + x * 16, usrc + 7 * BPS, 8 + 8);
278 if (it->x_ == enc->mb_w_) {
281 it->bw_ = &enc->parts_[it->y_ & (enc->num_parts_ - 1)];
282 it->preds_ = enc->preds_ + it->y_ * 4 * enc->preds_w_;
283 it->nz_ = enc->nz_;
365 const VP8Encoder* const enc = it->enc_;
373 it->i4_boundary_[i] = enc->y_left_[15 - i];
376 it->i4_boundary_[17 + i] = enc->y_top_[it->x_ * 16 + i];
379 if (it->x_ < enc->mb_w_ - 1) {
381 it->i4_boundary_[17 + i] = enc->y_top_[it->x_ * 16 + i];