Lines Matching refs:pix

340 		if (fmt->fourcc == f->fmt.pix.pixelformat)  in find_format()
1390 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in vpe_g_fmt() local
1402 pix->width = q_data->width; in vpe_g_fmt()
1403 pix->height = q_data->height; in vpe_g_fmt()
1404 pix->pixelformat = q_data->fmt->fourcc; in vpe_g_fmt()
1405 pix->field = q_data->field; in vpe_g_fmt()
1408 pix->colorspace = q_data->colorspace; in vpe_g_fmt()
1415 pix->colorspace = s_q_data->colorspace; in vpe_g_fmt()
1418 pix->num_planes = q_data->fmt->coplanar ? 2 : 1; in vpe_g_fmt()
1420 for (i = 0; i < pix->num_planes; i++) { in vpe_g_fmt()
1421 pix->plane_fmt[i].bytesperline = q_data->bytesperline[i]; in vpe_g_fmt()
1422 pix->plane_fmt[i].sizeimage = q_data->sizeimage[i]; in vpe_g_fmt()
1431 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in __vpe_try_fmt() local
1438 pix->pixelformat); in __vpe_try_fmt()
1442 if (pix->field != V4L2_FIELD_NONE && pix->field != V4L2_FIELD_ALTERNATE) in __vpe_try_fmt()
1443 pix->field = V4L2_FIELD_NONE; in __vpe_try_fmt()
1469 v4l_bound_align_image(&pix->width, MIN_W, MAX_W, w_align, in __vpe_try_fmt()
1470 &pix->height, MIN_H, MAX_H, H_ALIGN, in __vpe_try_fmt()
1473 pix->num_planes = fmt->coplanar ? 2 : 1; in __vpe_try_fmt()
1474 pix->pixelformat = fmt->fourcc; in __vpe_try_fmt()
1476 if (!pix->colorspace) { in __vpe_try_fmt()
1481 pix->colorspace = V4L2_COLORSPACE_SRGB; in __vpe_try_fmt()
1483 if (pix->height > 1280) /* HD */ in __vpe_try_fmt()
1484 pix->colorspace = V4L2_COLORSPACE_REC709; in __vpe_try_fmt()
1486 pix->colorspace = V4L2_COLORSPACE_SMPTE170M; in __vpe_try_fmt()
1490 memset(pix->reserved, 0, sizeof(pix->reserved)); in __vpe_try_fmt()
1491 for (i = 0; i < pix->num_planes; i++) { in __vpe_try_fmt()
1492 plane_fmt = &pix->plane_fmt[i]; in __vpe_try_fmt()
1496 plane_fmt->bytesperline = (pix->width * depth) >> 3; in __vpe_try_fmt()
1498 plane_fmt->bytesperline = pix->width; in __vpe_try_fmt()
1501 (pix->height * pix->width * depth) >> 3; in __vpe_try_fmt()
1522 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in __vpe_s_fmt() local
1542 q_data->width = pix->width; in __vpe_s_fmt()
1543 q_data->height = pix->height; in __vpe_s_fmt()
1544 q_data->colorspace = pix->colorspace; in __vpe_s_fmt()
1545 q_data->field = pix->field; in __vpe_s_fmt()
1547 for (i = 0; i < pix->num_planes; i++) { in __vpe_s_fmt()
1548 plane_fmt = &pix->plane_fmt[i]; in __vpe_s_fmt()