Lines Matching refs:pix_mp
1571 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mxc_jpeg_try_fmt() local
1573 u32 w = (pix_mp->width < MXC_JPEG_MAX_WIDTH) ? in mxc_jpeg_try_fmt()
1574 pix_mp->width : MXC_JPEG_MAX_WIDTH; in mxc_jpeg_try_fmt()
1575 u32 h = (pix_mp->height < MXC_JPEG_MAX_HEIGHT) ? in mxc_jpeg_try_fmt()
1576 pix_mp->height : MXC_JPEG_MAX_HEIGHT; in mxc_jpeg_try_fmt()
1580 memset(pix_mp->reserved, 0, sizeof(pix_mp->reserved)); in mxc_jpeg_try_fmt()
1581 pix_mp->field = V4L2_FIELD_NONE; in mxc_jpeg_try_fmt()
1582 pix_mp->num_planes = fmt->colplanes; in mxc_jpeg_try_fmt()
1583 pix_mp->pixelformat = fmt->fourcc; in mxc_jpeg_try_fmt()
1599 pix_mp->width = w; /* negotiate the width */ in mxc_jpeg_try_fmt()
1600 pix_mp->height = h; /* negotiate the height */ in mxc_jpeg_try_fmt()
1606 for (i = 0; i < pix_mp->num_planes; i++) { in mxc_jpeg_try_fmt()
1607 pfmt = &pix_mp->plane_fmt[i]; in mxc_jpeg_try_fmt()
1617 for (i = 0; i < pix_mp->num_planes; i++) { in mxc_jpeg_try_fmt()
1618 pfmt = &pix_mp->plane_fmt[i]; in mxc_jpeg_try_fmt()
1625 pix_mp->colorspace = V4L2_COLORSPACE_SRGB; in mxc_jpeg_try_fmt()
1626 pix_mp->ycbcr_enc = V4L2_YCBCR_ENC_601; in mxc_jpeg_try_fmt()
1627 pix_mp->xfer_func = V4L2_XFER_FUNC_SRGB; in mxc_jpeg_try_fmt()
1633 pix_mp->quantization = V4L2_QUANTIZATION_FULL_RANGE; in mxc_jpeg_try_fmt()
1645 u32 fourcc = f->fmt.pix_mp.pixelformat; in mxc_jpeg_try_fmt_vid_cap()
1662 f->fmt.pix_mp.pixelformat = (jpeg->mode == MXC_JPEG_DECODE) ? in mxc_jpeg_try_fmt_vid_cap()
1664 fmt = mxc_jpeg_find_format(ctx, f->fmt.pix_mp.pixelformat); in mxc_jpeg_try_fmt_vid_cap()
1676 u32 fourcc = f->fmt.pix_mp.pixelformat; in mxc_jpeg_try_fmt_vid_out()
1693 f->fmt.pix_mp.pixelformat = (jpeg->mode == MXC_JPEG_ENCODE) ? in mxc_jpeg_try_fmt_vid_out()
1695 fmt = mxc_jpeg_find_format(ctx, f->fmt.pix_mp.pixelformat); in mxc_jpeg_try_fmt_vid_out()
1705 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mxc_jpeg_s_fmt() local
1720 q_data->fmt = mxc_jpeg_find_format(ctx, pix_mp->pixelformat); in mxc_jpeg_s_fmt()
1721 q_data->w = pix_mp->width; in mxc_jpeg_s_fmt()
1722 q_data->h = pix_mp->height; in mxc_jpeg_s_fmt()
1756 for (i = 0; i < pix_mp->num_planes; i++) { in mxc_jpeg_s_fmt()
1757 q_data->bytesperline[i] = pix_mp->plane_fmt[i].bytesperline; in mxc_jpeg_s_fmt()
1758 q_data->sizeimage[i] = pix_mp->plane_fmt[i].sizeimage; in mxc_jpeg_s_fmt()
1794 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mxc_jpeg_g_fmt_vid() local
1803 pix_mp->pixelformat = q_data->fmt->fourcc; in mxc_jpeg_g_fmt_vid()
1804 pix_mp->width = q_data->w; in mxc_jpeg_g_fmt_vid()
1805 pix_mp->height = q_data->h; in mxc_jpeg_g_fmt_vid()
1806 pix_mp->field = V4L2_FIELD_NONE; in mxc_jpeg_g_fmt_vid()
1809 pix_mp->colorspace = V4L2_COLORSPACE_SRGB; in mxc_jpeg_g_fmt_vid()
1810 pix_mp->ycbcr_enc = V4L2_YCBCR_ENC_601; in mxc_jpeg_g_fmt_vid()
1811 pix_mp->xfer_func = V4L2_XFER_FUNC_SRGB; in mxc_jpeg_g_fmt_vid()
1812 pix_mp->quantization = V4L2_QUANTIZATION_FULL_RANGE; in mxc_jpeg_g_fmt_vid()
1814 pix_mp->num_planes = q_data->fmt->colplanes; in mxc_jpeg_g_fmt_vid()
1815 for (i = 0; i < pix_mp->num_planes; i++) { in mxc_jpeg_g_fmt_vid()
1816 pix_mp->plane_fmt[i].bytesperline = q_data->bytesperline[i]; in mxc_jpeg_g_fmt_vid()
1817 pix_mp->plane_fmt[i].sizeimage = q_data->sizeimage[i]; in mxc_jpeg_g_fmt_vid()