Lines Matching full:pix

365 	return __find_format(f->fmt.pix.pixelformat);  in find_format()
1024 struct v4l2_pix_format_mplane *pix; in add_out_dtd() local
1034 pix = &q_data->format.fmt.pix_mp; in add_out_dtd()
1035 stride = ALIGN((pix->width * vpdma_fmt->depth) >> 3, in add_out_dtd()
1041 pix = &q_data->format.fmt.pix_mp; in add_out_dtd()
1047 if (pix->num_planes == 1 && plane) { in add_out_dtd()
1050 offset = pix->plane_fmt[0].bytesperline * pix->height; in add_out_dtd()
1064 stride = pix->plane_fmt[VPE_LUMA].bytesperline; in add_out_dtd()
1075 vpdma_add_out_dtd(&ctx->desc_list, pix->width, in add_out_dtd()
1088 struct v4l2_pix_format_mplane *pix; in add_in_dtd() local
1098 pix = &q_data->format.fmt.pix_mp; in add_in_dtd()
1102 stride = ALIGN((pix->width * vpdma_fmt->depth) >> 3, in add_in_dtd()
1113 if (pix->num_planes == 1 && plane) { in add_in_dtd()
1116 offset = pix->plane_fmt[0].bytesperline * pix->height; in add_in_dtd()
1130 stride = pix->plane_fmt[VPE_LUMA].bytesperline; in add_in_dtd()
1150 int height = pix->height / 2; in add_in_dtd()
1162 dma_addr += pix->width * height * bpp; in add_in_dtd()
1179 vpdma_add_in_dtd(&ctx->desc_list, pix->width, stride, in add_in_dtd()
1564 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in vpe_g_fmt() local
1587 pix->colorspace = spix->colorspace; in vpe_g_fmt()
1588 pix->xfer_func = spix->xfer_func; in vpe_g_fmt()
1589 pix->ycbcr_enc = spix->ycbcr_enc; in vpe_g_fmt()
1590 pix->quantization = spix->quantization; in vpe_g_fmt()
1599 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in __vpe_try_fmt() local
1608 pix->pixelformat); in __vpe_try_fmt()
1612 if (pix->field != V4L2_FIELD_NONE && in __vpe_try_fmt()
1613 pix->field != V4L2_FIELD_ALTERNATE && in __vpe_try_fmt()
1614 pix->field != V4L2_FIELD_SEQ_TB && in __vpe_try_fmt()
1615 pix->field != V4L2_FIELD_SEQ_BT) in __vpe_try_fmt()
1616 pix->field = V4L2_FIELD_NONE; in __vpe_try_fmt()
1654 v4l_bound_align_image(&pix->width, MIN_W, MAX_W, w_align, in __vpe_try_fmt()
1655 &pix->height, MIN_H, MAX_H, H_ALIGN, in __vpe_try_fmt()
1658 if (!pix->num_planes || pix->num_planes > 2) in __vpe_try_fmt()
1659 pix->num_planes = fmt->coplanar ? 2 : 1; in __vpe_try_fmt()
1660 else if (pix->num_planes > 1 && !fmt->coplanar) in __vpe_try_fmt()
1661 pix->num_planes = 1; in __vpe_try_fmt()
1663 pix->pixelformat = fmt->fourcc; in __vpe_try_fmt()
1670 if (pix->field == V4L2_FIELD_SEQ_TB || pix->field == V4L2_FIELD_SEQ_BT) in __vpe_try_fmt()
1671 height = pix->height / 2; in __vpe_try_fmt()
1673 height = pix->height; in __vpe_try_fmt()
1675 if (!pix->colorspace) { in __vpe_try_fmt()
1677 pix->colorspace = V4L2_COLORSPACE_SRGB; in __vpe_try_fmt()
1680 pix->colorspace = V4L2_COLORSPACE_REC709; in __vpe_try_fmt()
1682 pix->colorspace = V4L2_COLORSPACE_SMPTE170M; in __vpe_try_fmt()
1686 for (i = 0; i < pix->num_planes; i++) { in __vpe_try_fmt()
1687 plane_fmt = &pix->plane_fmt[i]; in __vpe_try_fmt()
1690 stride = (pix->width * fmt->vpdma_fmt[VPE_LUMA]->depth) >> 3; in __vpe_try_fmt()
1702 plane_fmt->sizeimage = pix->height * in __vpe_try_fmt()
1705 if (pix->num_planes == 1 && fmt->coplanar) in __vpe_try_fmt()
1706 plane_fmt->sizeimage += pix->height * in __vpe_try_fmt()
1711 plane_fmt->sizeimage = (pix->height * in __vpe_try_fmt()
1733 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in __vpe_s_fmt() local
1757 q_data->c_rect.width = pix->width; in __vpe_s_fmt()
1758 q_data->c_rect.height = pix->height; in __vpe_s_fmt()
1774 f->type, pix->width, pix->height, pix->pixelformat, in __vpe_s_fmt()
1775 pix->plane_fmt[0].bytesperline); in __vpe_s_fmt()
1776 if (pix->num_planes == 2) in __vpe_s_fmt()
1778 pix->plane_fmt[1].bytesperline); in __vpe_s_fmt()
1807 struct v4l2_pix_format_mplane *pix; in __vpe_try_selection() local
1818 pix = &q_data->format.fmt.pix_mp; in __vpe_try_selection()
1850 height = pix->height / 2; in __vpe_try_selection()
1852 height = pix->height; in __vpe_try_selection()
1859 v4l_bound_align_image(&s->r.width, MIN_W, pix->width, 1, in __vpe_try_selection()
1863 if (s->r.left + s->r.width > pix->width) in __vpe_try_selection()
1864 s->r.left = pix->width - s->r.width; in __vpe_try_selection()
1865 if (s->r.top + s->r.height > pix->height) in __vpe_try_selection()
1866 s->r.top = pix->height - s->r.height; in __vpe_try_selection()
1876 struct v4l2_pix_format_mplane *pix; in vpe_g_selection() local
1887 pix = &q_data->format.fmt.pix_mp; in vpe_g_selection()
1927 s->r.width = pix->width; in vpe_g_selection()
1928 s->r.height = pix->height; in vpe_g_selection()
2031 struct v4l2_pix_format_mplane *pix; in vpe_queue_setup() local
2037 pix = &q_data->format.fmt.pix_mp; in vpe_queue_setup()
2038 *nplanes = pix->num_planes; in vpe_queue_setup()
2041 sizes[i] = pix->plane_fmt[i].sizeimage; in vpe_queue_setup()
2056 struct v4l2_pix_format_mplane *pix; in vpe_buf_prepare() local
2065 pix = &q_data->format.fmt.pix_mp; in vpe_buf_prepare()
2079 for (i = 0; i < pix->num_planes; i++) { in vpe_buf_prepare()
2080 if (vb2_plane_size(vb, i) < pix->plane_fmt[i].sizeimage) { in vpe_buf_prepare()
2084 (long)pix->plane_fmt[i].sizeimage); in vpe_buf_prepare()
2089 for (i = 0; i < pix->num_planes; i++) in vpe_buf_prepare()
2090 vb2_set_plane_payload(vb, i, pix->plane_fmt[i].sizeimage); in vpe_buf_prepare()
2275 struct v4l2_pix_format_mplane *pix; in vpe_open() local
2324 pix = &s_q_data->format.fmt.pix_mp; in vpe_open()
2326 pix->pixelformat = s_q_data->fmt->fourcc; in vpe_open()
2328 pix->width = 1920; in vpe_open()
2329 pix->height = 1080; in vpe_open()
2330 pix->num_planes = 1; in vpe_open()
2331 pix->plane_fmt[VPE_LUMA].bytesperline = (pix->width * in vpe_open()
2333 pix->plane_fmt[VPE_LUMA].sizeimage = in vpe_open()
2334 pix->plane_fmt[VPE_LUMA].bytesperline * in vpe_open()
2335 pix->height; in vpe_open()
2336 pix->colorspace = V4L2_COLORSPACE_REC709; in vpe_open()
2337 pix->xfer_func = V4L2_XFER_FUNC_DEFAULT; in vpe_open()
2338 pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in vpe_open()
2339 pix->quantization = V4L2_QUANTIZATION_DEFAULT; in vpe_open()
2340 pix->field = V4L2_FIELD_NONE; in vpe_open()
2343 s_q_data->c_rect.width = pix->width; in vpe_open()
2344 s_q_data->c_rect.height = pix->height; in vpe_open()