Lines Matching refs:pix
340 if (fmt->fourcc == f->fmt.pix.pixelformat) in find_format()
1392 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in vpe_g_fmt() local
1404 pix->width = q_data->width; in vpe_g_fmt()
1405 pix->height = q_data->height; in vpe_g_fmt()
1406 pix->pixelformat = q_data->fmt->fourcc; in vpe_g_fmt()
1407 pix->field = q_data->field; in vpe_g_fmt()
1410 pix->colorspace = q_data->colorspace; in vpe_g_fmt()
1417 pix->colorspace = s_q_data->colorspace; in vpe_g_fmt()
1420 pix->num_planes = q_data->fmt->coplanar ? 2 : 1; in vpe_g_fmt()
1422 for (i = 0; i < pix->num_planes; i++) { in vpe_g_fmt()
1423 pix->plane_fmt[i].bytesperline = q_data->bytesperline[i]; in vpe_g_fmt()
1424 pix->plane_fmt[i].sizeimage = q_data->sizeimage[i]; in vpe_g_fmt()
1433 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in __vpe_try_fmt() local
1440 pix->pixelformat); in __vpe_try_fmt()
1444 if (pix->field != V4L2_FIELD_NONE && pix->field != V4L2_FIELD_ALTERNATE) in __vpe_try_fmt()
1445 pix->field = V4L2_FIELD_NONE; in __vpe_try_fmt()
1471 v4l_bound_align_image(&pix->width, MIN_W, MAX_W, w_align, in __vpe_try_fmt()
1472 &pix->height, MIN_H, MAX_H, H_ALIGN, in __vpe_try_fmt()
1475 pix->num_planes = fmt->coplanar ? 2 : 1; in __vpe_try_fmt()
1476 pix->pixelformat = fmt->fourcc; in __vpe_try_fmt()
1478 if (!pix->colorspace) { in __vpe_try_fmt()
1483 pix->colorspace = V4L2_COLORSPACE_SRGB; in __vpe_try_fmt()
1485 if (pix->height > 1280) /* HD */ in __vpe_try_fmt()
1486 pix->colorspace = V4L2_COLORSPACE_REC709; in __vpe_try_fmt()
1488 pix->colorspace = V4L2_COLORSPACE_SMPTE170M; in __vpe_try_fmt()
1492 memset(pix->reserved, 0, sizeof(pix->reserved)); in __vpe_try_fmt()
1493 for (i = 0; i < pix->num_planes; i++) { in __vpe_try_fmt()
1494 plane_fmt = &pix->plane_fmt[i]; in __vpe_try_fmt()
1498 plane_fmt->bytesperline = (pix->width * depth) >> 3; in __vpe_try_fmt()
1500 plane_fmt->bytesperline = pix->width; in __vpe_try_fmt()
1503 (pix->height * pix->width * depth) >> 3; in __vpe_try_fmt()
1524 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in __vpe_s_fmt() local
1544 q_data->width = pix->width; in __vpe_s_fmt()
1545 q_data->height = pix->height; in __vpe_s_fmt()
1546 q_data->colorspace = pix->colorspace; in __vpe_s_fmt()
1547 q_data->field = pix->field; in __vpe_s_fmt()
1549 for (i = 0; i < pix->num_planes; i++) { in __vpe_s_fmt()
1550 plane_fmt = &pix->plane_fmt[i]; in __vpe_s_fmt()