Lines Matching refs:plane
237 PlaneEnc plane[4];
282 s->plane[i].dwt_buf =
283 av_calloc(height * stride, sizeof(*s->plane[i].dwt_buf));
284 s->plane[i].dwt_tmp =
285 av_malloc_array(height * stride, sizeof(*s->plane[i].dwt_tmp));
286 if (!s->plane[i].dwt_buf || !s->plane[i].dwt_tmp)
289 s->plane[i].subband[0] = s->plane[i].dwt_buf;
290 s->plane[i].subband[1] = s->plane[i].dwt_buf + 2 * w8 * h8;
291 s->plane[i].subband[2] = s->plane[i].dwt_buf + 1 * w8 * h8;
292 s->plane[i].subband[3] = s->plane[i].dwt_buf + 3 * w8 * h8;
293 s->plane[i].subband[4] = s->plane[i].dwt_buf + 2 * w4 * h4;
294 s->plane[i].subband[5] = s->plane[i].dwt_buf + 1 * w4 * h4;
295 s->plane[i].subband[6] = s->plane[i].dwt_buf + 3 * w4 * h4;
296 s->plane[i].subband[7] = s->plane[i].dwt_buf + 2 * w2 * h2;
297 s->plane[i].subband[8] = s->plane[i].dwt_buf + 1 * w2 * h2;
298 s->plane[i].subband[9] = s->plane[i].dwt_buf + 3 * w2 * h2;
301 for (int k = 0; k < FF_ARRAY_ELEMS(s->plane[i].band[j]); k++) {
302 s->plane[i].band[j][k].width = (width / 8) << j;
303 s->plane[i].band[j][k].height = (height / 8) << j;
304 s->plane[i].band[j][k].a_width = w8 << j;
305 s->plane[i].band[j][k].a_height = h8 << j;
310 s->plane[i].l_h[0] = s->plane[i].dwt_tmp;
311 s->plane[i].l_h[1] = s->plane[i].dwt_tmp + 2 * w8 * h8;
312 // s->plane[i].l_h[2] = ll2;
313 s->plane[i].l_h[3] = s->plane[i].dwt_tmp;
314 s->plane[i].l_h[4] = s->plane[i].dwt_tmp + 2 * w4 * h4;
315 // s->plane[i].l_h[5] = ll1;
316 s->plane[i].l_h[6] = s->plane[i].dwt_tmp;
317 s->plane[i].l_h[7] = s->plane[i].dwt_tmp + 2 * w2 * h2;
435 for (int plane = 0; plane < s->planes; plane++) {
436 int width = s->plane[plane].band[2][0].width;
437 int a_width = s->plane[plane].band[2][0].a_width;
438 int height = s->plane[plane].band[2][0].height;
439 int act_plane = plane == 1 ? 2 : plane == 2 ? 1 : plane;
441 int16_t *low = s->plane[plane].l_h[6];
442 int16_t *high = s->plane[plane].l_h[7];
446 if (plane == 3) {
457 input = s->plane[plane].l_h[7];
458 low = s->plane[plane].subband[7];
459 low_stride = s->plane[plane].band[2][0].a_width;
460 high = s->plane[plane].subband[9];
461 high_stride = s->plane[plane].band[2][0].a_width;
467 input = s->plane[plane].l_h[6];
468 low = s->plane[plane].l_h[7];
469 high = s->plane[plane].subband[8];
475 a_width = s->plane[plane].band[1][0].a_width;
476 width = s->plane[plane].band[1][0].width;
477 height = s->plane[plane].band[1][0].height;
478 input = s->plane[plane].l_h[7];
479 low = s->plane[plane].l_h[3];
480 low_stride = s->plane[plane].band[1][0].a_width;
481 high = s->plane[plane].l_h[4];
482 high_stride = s->plane[plane].band[1][0].a_width;
490 input = s->plane[plane].l_h[7];
495 input = s->plane[plane].l_h[4];
496 low = s->plane[plane].subband[4];
497 high = s->plane[plane].subband[6];
503 input = s->plane[plane].l_h[3];
504 low = s->plane[plane].l_h[4];
505 high = s->plane[plane].subband[5];
511 a_width = s->plane[plane].band[0][0].a_width;
512 width = s->plane[plane].band[0][0].width;
513 height = s->plane[plane].band[0][0].height;
514 input = s->plane[plane].l_h[4];
515 low = s->plane[plane].l_h[0];
516 low_stride = s->plane[plane].band[0][0].a_width;
517 high = s->plane[plane].l_h[1];
518 high_stride = s->plane[plane].band[0][0].a_width;
528 input = s->plane[plane].l_h[4];
533 low = s->plane[plane].subband[1];
534 high = s->plane[plane].subband[3];
535 input = s->plane[plane].l_h[1];
541 low = s->plane[plane].subband[0];
542 high = s->plane[plane].subband[2];
543 input = s->plane[plane].l_h[0];
608 int width = s->plane[p].band[0][0].width;
609 int a_width = s->plane[p].band[0][0].a_width;
610 int height = s->plane[p].band[0][0].height;
611 int16_t *data = s->plane[p].subband[0];
661 s->plane[p].quantization[1 + l * 3 + i] = quantization_per_subband[avctx->pix_fmt != AV_PIX_FMT_YUV422P10][p >= 3 ? 0 : p][s->quality][l * 3 + i];
666 int a_width = s->plane[p].band[l][0].a_width;
667 int width = s->plane[p].band[l][0].width;
669 int height = s->plane[p].band[l][0].height;
705 int16_t *data = s->plane[p].subband[1 + l * 3 + i];
730 bytestream2_put_be16(pby, s->plane[p].quantization[1 + l * 3 + i]);
739 s->plane[p].quantization[1 + l * 3 + i]);
782 s->plane[p].size = bytestream2_tell_p(pby) - pos;
794 bytestream2_put_be32(pby, s->plane[i].size);
806 av_freep(&s->plane[i].dwt_buf);
807 av_freep(&s->plane[i].dwt_tmp);
810 s->plane[i].subband[j] = NULL;
813 s->plane[i].l_h[j] = NULL;