Lines Matching refs:plane

94     int i, plane;
102 for (plane = 0; plane < 3; plane++) {
103 unsigned shift = plane > 0;
107 ctx->band[plane][0].width = w >> NB_LEVELS;
108 ctx->band[plane][0].height = h >> NB_LEVELS;
109 ctx->band[plane][0].size = (w >> NB_LEVELS) * (h >> NB_LEVELS);
114 ctx->band[plane][i + 1].width = w >> scale;
115 ctx->band[plane][i + 1].height = h >> scale;
116 ctx->band[plane][i + 1].size = (w >> scale) * (h >> scale);
118 ctx->band[plane][i + 1].x = (w >> scale) * (((i + 1) % 3) != 2);
119 ctx->band[plane][i + 1].y = (h >> scale) * (((i + 1) % 3) != 1);
317 int plane, AVFrame *frame)
320 ptrdiff_t stride = frame->linesize[plane] / 2;
328 int16_t *dest = (int16_t *)frame->data[plane] +
329 ctx->band[plane][i + 1].x +
330 ctx->band[plane][i + 1].y * stride;
331 unsigned size = ctx->band[plane][i + 1].size;
336 "wrong magic number: 0x%08"PRIX32" for plane %d, band %d\n",
337 magic, plane, i);
346 ctx->band[plane][i + 1].width, stride);
349 "error in highpass coefficients for plane %d, band %d\n",
350 plane, i);
528 static int decode_plane(AVCodecContext *avctx, int plane,
532 ptrdiff_t stride = frame->linesize[plane] / 2;
533 unsigned shift = plane > 0;
544 ctx->scaling[plane][H][i] = (1000000ULL << 32) / h;
545 ctx->scaling[plane][V][i] = (1000000ULL << 32) / v;
550 dst = (int16_t *)frame->data[plane];
558 ret = read_low_coeffs(avctx, dst + 1, ctx->band[plane][0].width - 1,
559 ctx->band[plane][0].width - 1, 0);
562 "error in lowpass coefficients for plane %d, top row\n", plane);
567 ctx->band[plane][0].height - 1, 1, stride);
570 "error in lowpass coefficients for plane %d, left column\n",
571 plane);
576 (ctx->band[plane][0].width - 1) * (ctx->band[plane][0].height - 1),
577 ctx->band[plane][0].width - 1, stride);
580 "error in lowpass coefficients for plane %d, rest\n", plane);
590 ret = read_highpass(avctx, avpkt->data, plane, frame);
594 lowpass_prediction(dst, ctx->prediction, ctx->band[plane][0].width,
595 ctx->band[plane][0].height, stride);
597 reconstruction(avctx, (int16_t *)frame->data[plane], ctx->w >> shift,
598 ctx->h >> shift, stride, ctx->scaling[plane][H],
599 ctx->scaling[plane][V]);