Lines Matching refs:pix
588 #define Y_OFFSET(pix, x, y) ((x) + pix->bytesperline * (y)) argument
589 #define U_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument
590 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2)
591 #define V_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument
592 (pix->bytesperline * pix->height / 4) + \
593 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2)
594 #define U2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument
595 (pix->bytesperline * (y) / 2) + (x) / 2)
596 #define V2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument
597 (pix->bytesperline * pix->height / 2) + \
598 (pix->bytesperline * (y) / 2) + (x) / 2)
599 #define UV_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument
600 (pix->bytesperline * ((y) / 2)) + (x))
601 #define UV2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ argument
602 (pix->bytesperline * y) + (x))
766 struct v4l2_pix_format *pix = &image->pix; in ipu_cpmem_set_image() local
771 __func__, pix->width, pix->height, in ipu_cpmem_set_image()
772 pix->bytesperline); in ipu_cpmem_set_image()
775 ipu_cpmem_set_stride(ch, pix->bytesperline); in ipu_cpmem_set_image()
777 ipu_cpmem_set_fmt(ch, v4l2_pix_fmt_to_drm_fourcc(pix->pixelformat)); in ipu_cpmem_set_image()
779 switch (pix->pixelformat) { in ipu_cpmem_set_image()
781 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
783 image->u_offset : U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
786 image->v_offset : V_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
789 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2, in ipu_cpmem_set_image()
793 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
795 image->u_offset : V_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
798 image->v_offset : U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
801 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2, in ipu_cpmem_set_image()
805 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
807 image->u_offset : U2_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
810 image->v_offset : V2_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
813 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2, in ipu_cpmem_set_image()
817 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
819 image->u_offset : UV_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
823 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline, in ipu_cpmem_set_image()
827 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
829 image->u_offset : UV2_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
833 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline, in ipu_cpmem_set_image()
840 image->rect.top * pix->bytesperline; in ipu_cpmem_set_image()
853 image->rect.top * pix->bytesperline; in ipu_cpmem_set_image()
858 image->rect.top * pix->bytesperline; in ipu_cpmem_set_image()
865 offset = image->rect.left + image->rect.top * pix->bytesperline; in ipu_cpmem_set_image()
873 image->rect.top * pix->bytesperline; in ipu_cpmem_set_image()