Lines Matching defs:image

764 int ipu_cpmem_set_image(struct ipuv3_channel *ch, struct ipu_image *image)
766 struct v4l2_pix_format *pix = &image->pix;
774 ipu_cpmem_set_resolution(ch, image->rect.width, image->rect.height);
781 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
782 u_offset = image->u_offset ?
783 image->u_offset : U_OFFSET(pix, image->rect.left,
784 image->rect.top) - offset;
785 v_offset = image->v_offset ?
786 image->v_offset : V_OFFSET(pix, image->rect.left,
787 image->rect.top) - offset;
793 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
794 u_offset = image->u_offset ?
795 image->u_offset : V_OFFSET(pix, image->rect.left,
796 image->rect.top) - offset;
797 v_offset = image->v_offset ?
798 image->v_offset : U_OFFSET(pix, image->rect.left,
799 image->rect.top) - offset;
805 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
806 u_offset = image->u_offset ?
807 image->u_offset : U2_OFFSET(pix, image->rect.left,
808 image->rect.top) - offset;
809 v_offset = image->v_offset ?
810 image->v_offset : V2_OFFSET(pix, image->rect.left,
811 image->rect.top) - offset;
817 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
818 u_offset = image->u_offset ?
819 image->u_offset : UV_OFFSET(pix, image->rect.left,
820 image->rect.top) - offset;
821 v_offset = image->v_offset ? image->v_offset : 0;
827 offset = Y_OFFSET(pix, image->rect.left, image->rect.top);
828 u_offset = image->u_offset ?
829 image->u_offset : UV2_OFFSET(pix, image->rect.left,
830 image->rect.top) - offset;
831 v_offset = image->v_offset ? image->v_offset : 0;
839 offset = image->rect.left * 2 +
840 image->rect.top * pix->bytesperline;
852 offset = image->rect.left * 4 +
853 image->rect.top * pix->bytesperline;
857 offset = image->rect.left * 3 +
858 image->rect.top * pix->bytesperline;
865 offset = image->rect.left + image->rect.top * pix->bytesperline;
872 offset = image->rect.left * 2 +
873 image->rect.top * pix->bytesperline;
882 ipu_cpmem_set_buffer(ch, 0, image->phys0 + offset);
883 ipu_cpmem_set_buffer(ch, 1, image->phys1 + offset);