Lines Matching refs:pix
460 ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0xA);/* pix fmt */
465 ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0x8);/* pix fmt */
588 #define Y_OFFSET(pix, x, y) ((x) + pix->bytesperline * (y))
589 #define U_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
590 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2)
591 #define V_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
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) + \
595 (pix->bytesperline * (y) / 2) + (x) / 2)
596 #define V2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
597 (pix->bytesperline * pix->height / 2) + \
598 (pix->bytesperline * (y) / 2) + (x) / 2)
599 #define UV_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
600 (pix->bytesperline * ((y) / 2)) + (x))
601 #define UV2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \
602 (pix->bytesperline * y) + (x))
646 /* pix format */
653 /* pix format */
660 /* pix format */
666 /* pix format */
672 /* pix format */
680 /* pix format */
688 /* pix format */
766 struct v4l2_pix_format *pix = &image->pix;
771 __func__, pix->width, pix->height,
772 pix->bytesperline);
775 ipu_cpmem_set_stride(ch, pix->bytesperline);
777 ipu_cpmem_set_fmt(ch, v4l2_pix_fmt_to_drm_fourcc(pix->pixelformat));
779 switch (pix->pixelformat) {
781 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
783 image->u_offset : U_OFFSET(pix, image->rect.left,
786 image->v_offset : V_OFFSET(pix, image->rect.left,
789 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2,
793 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
795 image->u_offset : V_OFFSET(pix, image->rect.left,
798 image->v_offset : U_OFFSET(pix, image->rect.left,
801 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2,
805 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
807 image->u_offset : U2_OFFSET(pix, image->rect.left,
810 image->v_offset : V2_OFFSET(pix, image->rect.left,
813 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2,
817 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
819 image->u_offset : UV_OFFSET(pix, image->rect.left,
823 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline,
827 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
829 image->u_offset : UV2_OFFSET(pix, image->rect.left,
833 ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline,
840 image->rect.top * pix->bytesperline;
853 image->rect.top * pix->bytesperline;
858 image->rect.top * pix->bytesperline;
865 offset = image->rect.left + image->rect.top * pix->bytesperline;
873 image->rect.top * pix->bytesperline;