Lines Matching refs:pix

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