• Home
  • Raw
  • Download

Lines Matching refs: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 memset(pix->reserved, 0, sizeof(pix->reserved)); in __vpe_try_fmt()
1687 for (i = 0; i < pix->num_planes; i++) { in __vpe_try_fmt()
1688 plane_fmt = &pix->plane_fmt[i]; in __vpe_try_fmt()
1691 stride = (pix->width * fmt->vpdma_fmt[VPE_LUMA]->depth) >> 3; in __vpe_try_fmt()
1703 plane_fmt->sizeimage = pix->height * in __vpe_try_fmt()
1706 if (pix->num_planes == 1 && fmt->coplanar) in __vpe_try_fmt()
1707 plane_fmt->sizeimage += pix->height * in __vpe_try_fmt()
1712 plane_fmt->sizeimage = (pix->height * in __vpe_try_fmt()
1735 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in __vpe_s_fmt() local
1759 q_data->c_rect.width = pix->width; in __vpe_s_fmt()
1760 q_data->c_rect.height = pix->height; in __vpe_s_fmt()
1776 f->type, pix->width, pix->height, pix->pixelformat, in __vpe_s_fmt()
1777 pix->plane_fmt[0].bytesperline); in __vpe_s_fmt()
1778 if (pix->num_planes == 2) in __vpe_s_fmt()
1780 pix->plane_fmt[1].bytesperline); in __vpe_s_fmt()
1809 struct v4l2_pix_format_mplane *pix; in __vpe_try_selection() local
1820 pix = &q_data->format.fmt.pix_mp; in __vpe_try_selection()
1852 height = pix->height / 2; in __vpe_try_selection()
1854 height = pix->height; in __vpe_try_selection()
1861 v4l_bound_align_image(&s->r.width, MIN_W, pix->width, 1, in __vpe_try_selection()
1865 if (s->r.left + s->r.width > pix->width) in __vpe_try_selection()
1866 s->r.left = pix->width - s->r.width; in __vpe_try_selection()
1867 if (s->r.top + s->r.height > pix->height) in __vpe_try_selection()
1868 s->r.top = pix->height - s->r.height; in __vpe_try_selection()
1878 struct v4l2_pix_format_mplane *pix; in vpe_g_selection() local
1889 pix = &q_data->format.fmt.pix_mp; in vpe_g_selection()
1929 s->r.width = pix->width; in vpe_g_selection()
1930 s->r.height = pix->height; in vpe_g_selection()
2033 struct v4l2_pix_format_mplane *pix; in vpe_queue_setup() local
2039 pix = &q_data->format.fmt.pix_mp; in vpe_queue_setup()
2040 *nplanes = pix->num_planes; in vpe_queue_setup()
2043 sizes[i] = pix->plane_fmt[i].sizeimage; in vpe_queue_setup()
2058 struct v4l2_pix_format_mplane *pix; in vpe_buf_prepare() local
2067 pix = &q_data->format.fmt.pix_mp; in vpe_buf_prepare()
2081 for (i = 0; i < pix->num_planes; i++) { in vpe_buf_prepare()
2082 if (vb2_plane_size(vb, i) < pix->plane_fmt[i].sizeimage) { in vpe_buf_prepare()
2086 (long)pix->plane_fmt[i].sizeimage); in vpe_buf_prepare()
2091 for (i = 0; i < pix->num_planes; i++) in vpe_buf_prepare()
2092 vb2_set_plane_payload(vb, i, pix->plane_fmt[i].sizeimage); in vpe_buf_prepare()
2277 struct v4l2_pix_format_mplane *pix; in vpe_open() local
2326 pix = &s_q_data->format.fmt.pix_mp; in vpe_open()
2328 pix->pixelformat = s_q_data->fmt->fourcc; in vpe_open()
2330 pix->width = 1920; in vpe_open()
2331 pix->height = 1080; in vpe_open()
2332 pix->num_planes = 1; in vpe_open()
2333 pix->plane_fmt[VPE_LUMA].bytesperline = (pix->width * in vpe_open()
2335 pix->plane_fmt[VPE_LUMA].sizeimage = in vpe_open()
2336 pix->plane_fmt[VPE_LUMA].bytesperline * in vpe_open()
2337 pix->height; in vpe_open()
2338 pix->colorspace = V4L2_COLORSPACE_REC709; in vpe_open()
2339 pix->xfer_func = V4L2_XFER_FUNC_DEFAULT; in vpe_open()
2340 pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in vpe_open()
2341 pix->quantization = V4L2_QUANTIZATION_DEFAULT; in vpe_open()
2342 pix->field = V4L2_FIELD_NONE; in vpe_open()
2345 s_q_data->c_rect.width = pix->width; in vpe_open()
2346 s_q_data->c_rect.height = pix->height; in vpe_open()