Searched refs:pixmp (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.1/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.1/drivers/media/platform/qcom/venus/ |
D | venc.c | 169 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in venc_try_fmt_common() local 170 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in venc_try_fmt_common() 175 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in venc_try_fmt_common() 177 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common() 180 pixmp->pixelformat = V4L2_PIX_FMT_H264; in venc_try_fmt_common() 182 pixmp->pixelformat = V4L2_PIX_FMT_NV12; in venc_try_fmt_common() 185 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common() 190 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in venc_try_fmt_common() 192 pixmp->height = clamp(pixmp->height, frame_height_min(inst), in venc_try_fmt_common() 195 pixmp->width = ALIGN(pixmp->width, 128); in venc_try_fmt_common() [all …]
|
D | vdec.c | 169 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_try_fmt_common() local 170 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in vdec_try_fmt_common() 175 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in vdec_try_fmt_common() 177 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common() 180 pixmp->pixelformat = V4L2_PIX_FMT_NV12; in vdec_try_fmt_common() 182 pixmp->pixelformat = V4L2_PIX_FMT_H264; in vdec_try_fmt_common() 185 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common() 190 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in vdec_try_fmt_common() 192 pixmp->height = clamp(pixmp->height, frame_height_min(inst), in vdec_try_fmt_common() 196 pixmp->height = ALIGN(pixmp->height, 32); in vdec_try_fmt_common() [all …]
|
/Linux-v6.1/drivers/media/platform/amphion/ |
D | vpu_v4l2.c | 145 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vpu_try_fmt_common() local 154 fmt = vpu_helper_find_format(inst, type, pixmp->pixelformat); in vpu_try_fmt_common() 159 pixmp->pixelformat = fmt->pixfmt; in vpu_try_fmt_common() 165 if (pixmp->width) in vpu_try_fmt_common() 166 pixmp->width = vpu_helper_valid_frame_width(inst, pixmp->width); in vpu_try_fmt_common() 167 if (pixmp->height) in vpu_try_fmt_common() 168 pixmp->height = vpu_helper_valid_frame_height(inst, pixmp->height); in vpu_try_fmt_common() 169 pixmp->flags = fmt->flags; in vpu_try_fmt_common() 170 pixmp->num_planes = fmt->num_planes; in vpu_try_fmt_common() 171 if (pixmp->field == V4L2_FIELD_ANY) in vpu_try_fmt_common() [all …]
|
D | vdec.c | 285 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_g_fmt() local 291 pixmp->pixelformat = cur_fmt->pixfmt; in vdec_g_fmt() 292 pixmp->num_planes = cur_fmt->num_planes; in vdec_g_fmt() 293 pixmp->width = cur_fmt->width; in vdec_g_fmt() 294 pixmp->height = cur_fmt->height; in vdec_g_fmt() 295 pixmp->field = cur_fmt->field; in vdec_g_fmt() 296 pixmp->flags = cur_fmt->flags; in vdec_g_fmt() 297 for (i = 0; i < pixmp->num_planes; i++) { in vdec_g_fmt() 298 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in vdec_g_fmt() 299 pixmp->plane_fmt[i].sizeimage = cur_fmt->sizeimage[i]; in vdec_g_fmt() [all …]
|
D | venc.c | 169 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in venc_g_fmt() local 175 pixmp->pixelformat = cur_fmt->pixfmt; in venc_g_fmt() 176 pixmp->num_planes = cur_fmt->num_planes; in venc_g_fmt() 177 pixmp->width = cur_fmt->width; in venc_g_fmt() 178 pixmp->height = cur_fmt->height; in venc_g_fmt() 179 pixmp->field = cur_fmt->field; in venc_g_fmt() 180 pixmp->flags = cur_fmt->flags; in venc_g_fmt() 181 for (i = 0; i < pixmp->num_planes; i++) { in venc_g_fmt() 182 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in venc_g_fmt() 183 pixmp->plane_fmt[i].sizeimage = cur_fmt->sizeimage[i]; in venc_g_fmt()
|