Searched refs:pixmp (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.6/drivers/staging/media/meson/vdec/ |
D | vdec.c | 495 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_try_fmt_common() local 496 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in vdec_try_fmt_common() 502 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in vdec_try_fmt_common() 506 fmt_out = find_format(fmts, size, pixmp->pixelformat); in vdec_try_fmt_common() 508 pixmp->pixelformat = V4L2_PIX_FMT_MPEG2; in vdec_try_fmt_common() 509 fmt_out = find_format(fmts, size, pixmp->pixelformat); in vdec_try_fmt_common() 519 pixmp->width = clamp(pixmp->width, (u32)256, fmt_out->max_width); in vdec_try_fmt_common() 520 pixmp->height = clamp(pixmp->height, (u32)144, fmt_out->max_height); in vdec_try_fmt_common() 521 output_size = get_output_size(pixmp->width, pixmp->height); in vdec_try_fmt_common() 527 pixmp->num_planes = 1; in vdec_try_fmt_common() [all …]
|
/Linux-v6.6/drivers/media/platform/qcom/venus/ |
D | venc.c | 174 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in venc_try_fmt_common() local 175 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in venc_try_fmt_common() 180 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in venc_try_fmt_common() 182 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common() 185 pixmp->pixelformat = V4L2_PIX_FMT_H264; in venc_try_fmt_common() 187 pixmp->pixelformat = V4L2_PIX_FMT_NV12; in venc_try_fmt_common() 190 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common() 195 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in venc_try_fmt_common() 197 pixmp->height = clamp(pixmp->height, frame_height_min(inst), in venc_try_fmt_common() 200 pixmp->width = ALIGN(pixmp->width, 128); in venc_try_fmt_common() [all …]
|
D | vdec.c | 187 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_try_fmt_common() local 188 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in vdec_try_fmt_common() 193 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in vdec_try_fmt_common() 195 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common() 198 pixmp->pixelformat = V4L2_PIX_FMT_NV12; in vdec_try_fmt_common() 200 pixmp->pixelformat = V4L2_PIX_FMT_H264; in vdec_try_fmt_common() 203 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common() 208 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in vdec_try_fmt_common() 210 pixmp->height = clamp(pixmp->height, frame_height_min(inst), in vdec_try_fmt_common() 214 pixmp->height = ALIGN(pixmp->height, 32); in vdec_try_fmt_common() [all …]
|
/Linux-v6.6/drivers/media/platform/amphion/ |
D | vpu_v4l2.c | 154 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vpu_calc_fmt_bytesperline() local 162 if (pixmp->num_planes == fmt->comp_planes) { in vpu_calc_fmt_bytesperline() 164 fmt->bytesperline[i] = pixmp->plane_fmt[i].bytesperline; in vpu_calc_fmt_bytesperline() 167 if (pixmp->num_planes > 1) in vpu_calc_fmt_bytesperline() 174 fmt->bytesperline[i] = pixmp->plane_fmt[0].bytesperline; in vpu_calc_fmt_bytesperline() 231 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vpu_try_fmt_common() local 235 fmt->pixfmt = pixmp->pixelformat; in vpu_try_fmt_common() 241 fmt->width = pixmp->width; in vpu_try_fmt_common() 242 fmt->height = pixmp->height; in vpu_try_fmt_common() 247 fmt->field = pixmp->field == V4L2_FIELD_ANY ? V4L2_FIELD_NONE : pixmp->field; in vpu_try_fmt_common() [all …]
|
D | vdec.c | 368 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_g_fmt() local 375 pixmp->pixelformat = cur_fmt->pixfmt; in vdec_g_fmt() 376 pixmp->num_planes = cur_fmt->mem_planes; in vdec_g_fmt() 377 pixmp->width = cur_fmt->width; in vdec_g_fmt() 378 pixmp->height = cur_fmt->height; in vdec_g_fmt() 379 pixmp->field = cur_fmt->field; in vdec_g_fmt() 380 pixmp->flags = cur_fmt->flags; in vdec_g_fmt() 381 for (i = 0; i < pixmp->num_planes; i++) { in vdec_g_fmt() 382 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in vdec_g_fmt() 383 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(cur_fmt, i); in vdec_g_fmt() [all …]
|
D | venc.c | 180 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in venc_g_fmt() local 186 pixmp->pixelformat = cur_fmt->pixfmt; in venc_g_fmt() 187 pixmp->num_planes = cur_fmt->mem_planes; in venc_g_fmt() 188 pixmp->width = cur_fmt->width; in venc_g_fmt() 189 pixmp->height = cur_fmt->height; in venc_g_fmt() 190 pixmp->field = cur_fmt->field; in venc_g_fmt() 191 pixmp->flags = cur_fmt->flags; in venc_g_fmt() 192 for (i = 0; i < pixmp->num_planes; i++) { in venc_g_fmt() 193 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in venc_g_fmt() 194 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(cur_fmt, i); in venc_g_fmt()
|