Lines Matching refs:pix

565 #define Y_OFFSET(pix, x, y)	((x) + pix->bytesperline * (y))
566 #define U_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
567 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2)
568 #define V_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
569 (pix->bytesperline * pix->height / 4) + \
570 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2)
571 #define U2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
572 (pix->bytesperline * (y) / 2) + (x) / 2)
573 #define V2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
574 (pix->bytesperline * pix->height / 2) + \
575 (pix->bytesperline * (y) / 2) + (x) / 2)
576 #define UV_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
577 (pix->bytesperline * ((y) / 2)) + (x))
578 #define UV2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
579 (pix->bytesperline * y) + (x))
623 /* pix format */
630 /* pix format */
637 /* pix format */
643 /* pix format */
649 /* pix format */
657 /* pix format */
665 /* pix format */
743 struct v4l2_pix_format *pix = &image->pix;
748 __func__, pix->width, pix->height,
749 pix->bytesperline);
752 ipu_cpmem_set_stride(ch, pix->bytesperline);
754 ipu_cpmem_set_fmt(ch, v4l2_pix_fmt_to_drm_fourcc(pix->pixelformat));
756 switch (pix->pixelformat) {
758 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
760 image->u_offset : U_OFFSET(pix, image->rect.left,
763 image->v_offset : V_OFFSET(pix, image->rect.left,
766 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2,
770 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
772 image->u_offset : V_OFFSET(pix, image->rect.left,
775 image->v_offset : U_OFFSET(pix, image->rect.left,
778 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2,
782 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
784 image->u_offset : U2_OFFSET(pix, image->rect.left,
787 image->v_offset : V2_OFFSET(pix, image->rect.left,
790 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2,
794 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
796 image->u_offset : UV_OFFSET(pix, image->rect.left,
800 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline,
804 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
806 image->u_offset : UV2_OFFSET(pix, image->rect.left,
810 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline,
817 image->rect.top * pix->bytesperline;
830 image->rect.top * pix->bytesperline;
835 image->rect.top * pix->bytesperline;
842 offset = image->rect.left + image->rect.top * pix->bytesperline;
850 image->rect.top * pix->bytesperline;