Searched refs:pixmp (Results 1 – 8 of 8) sorted by relevance
| /linux-6.15/drivers/staging/media/meson/vdec/ |
| H A D | vdec.c | 501 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in vdec_try_fmt_common() 518 pixmp->width = clamp(pixmp->width, (u32)256, fmt_out->max_width); in vdec_try_fmt_common() 519 pixmp->height = clamp(pixmp->height, (u32)144, fmt_out->max_height); in vdec_try_fmt_common() 520 output_size = get_output_size(pixmp->width, pixmp->height); in vdec_try_fmt_common() 526 pixmp->num_planes = 1; in vdec_try_fmt_common() 539 pixmp->num_planes = 2; in vdec_try_fmt_common() 549 pixmp->num_planes = 3; in vdec_try_fmt_common() 581 pixmp->width = sess->width; in vdec_g_fmt() 582 pixmp->height = sess->height; in vdec_g_fmt() 588 pixmp->width = sess->width; in vdec_g_fmt() [all …]
|
| /linux-6.15/drivers/media/platform/qcom/venus/ |
| H A D | venc.c | 180 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); 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() 201 pixmp->height = ALIGN(pixmp->height, 32); in venc_try_fmt_common() 203 pixmp->width = ALIGN(pixmp->width, 2); in venc_try_fmt_common() 204 pixmp->height = ALIGN(pixmp->height, 2); in venc_try_fmt_common() 209 pixmp->flags = 0; in venc_try_fmt_common() 212 pixmp->width, in venc_try_fmt_common() 213 pixmp->height); in venc_try_fmt_common() [all …]
|
| H A D | vdec.c | 193 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); 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() 217 pixmp->field = V4L2_FIELD_NONE; in vdec_try_fmt_common() 219 pixmp->flags = 0; in vdec_try_fmt_common() 221 szimage = venus_helper_get_framesz(pixmp->pixelformat, pixmp->width, in vdec_try_fmt_common() 222 pixmp->height); in vdec_try_fmt_common() 305 pixmp->width = inst->width; in vdec_g_fmt() 306 pixmp->height = inst->height; in vdec_g_fmt() [all …]
|
| /linux-6.15/drivers/media/platform/amphion/ |
| H A D | vpu_v4l2.c | 174 if (pixmp->num_planes > 1) in vpu_calc_fmt_bytesperline() 242 fmt->pixfmt = pixmp->pixelformat; in vpu_try_fmt_common() 248 fmt->width = pixmp->width; in vpu_try_fmt_common() 249 fmt->height = pixmp->height; in vpu_try_fmt_common() 254 fmt->field = pixmp->field == V4L2_FIELD_ANY ? V4L2_FIELD_NONE : pixmp->field; in vpu_try_fmt_common() 261 pixmp->width = fmt->width; in vpu_try_fmt_common() 262 pixmp->height = fmt->height; in vpu_try_fmt_common() 263 pixmp->flags = fmt->flags; in vpu_try_fmt_common() 265 pixmp->field = fmt->field; in vpu_try_fmt_common() 266 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in vpu_try_fmt_common() [all …]
|
| H A D | vdec.c | 373 pixmp->pixelformat = cur_fmt->pixfmt; in vdec_g_fmt() 375 pixmp->width = cur_fmt->width; in vdec_g_fmt() 376 pixmp->height = cur_fmt->height; in vdec_g_fmt() 377 pixmp->field = cur_fmt->field; in vdec_g_fmt() 378 pixmp->flags = cur_fmt->flags; in vdec_g_fmt() 461 pixmp->pixelformat = cur_fmt->pixfmt; in vdec_s_fmt_common() 463 pixmp->width = cur_fmt->width; in vdec_s_fmt_common() 464 pixmp->height = cur_fmt->height; in vdec_s_fmt_common() 469 pixmp->field = cur_fmt->field; in vdec_s_fmt_common() 517 fc.fmt.pix_mp.width = pixmp->width; in vdec_s_fmt() [all …]
|
| H A D | venc.c | 181 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in venc_g_fmt() local 187 pixmp->pixelformat = cur_fmt->pixfmt; in venc_g_fmt() 188 pixmp->num_planes = cur_fmt->mem_planes; in venc_g_fmt() 189 pixmp->width = cur_fmt->width; in venc_g_fmt() 190 pixmp->height = cur_fmt->height; in venc_g_fmt() 191 pixmp->field = cur_fmt->field; in venc_g_fmt() 192 pixmp->flags = cur_fmt->flags; in venc_g_fmt() 193 for (i = 0; i < pixmp->num_planes; i++) { in venc_g_fmt() 194 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in venc_g_fmt() 195 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(cur_fmt, i); in venc_g_fmt()
|
| /linux-6.15/drivers/media/platform/qcom/iris/ |
| H A D | iris_hfi_gen2_command.c | 255 struct v4l2_pix_format_mplane *pixmp = &inst->fmt_src->fmt.pix_mp; in iris_hfi_gen2_set_colorspace() local 264 if (pixmp->colorspace != V4L2_COLORSPACE_DEFAULT || in iris_hfi_gen2_set_colorspace() 265 pixmp->ycbcr_enc != V4L2_YCBCR_ENC_DEFAULT || in iris_hfi_gen2_set_colorspace() 266 pixmp->xfer_func != V4L2_XFER_FUNC_DEFAULT) { in iris_hfi_gen2_set_colorspace() 269 primaries = iris_hfi_gen2_get_color_primaries(pixmp->colorspace); in iris_hfi_gen2_set_colorspace() 270 matrix_coeff = iris_hfi_gen2_get_matrix_coefficients(pixmp->ycbcr_enc); in iris_hfi_gen2_set_colorspace() 271 transfer_char = iris_hfi_gen2_get_transfer_char(pixmp->xfer_func); in iris_hfi_gen2_set_colorspace() 274 if (pixmp->quantization != V4L2_QUANTIZATION_DEFAULT) { in iris_hfi_gen2_set_colorspace() 276 full_range = pixmp->quantization == V4L2_QUANTIZATION_FULL_RANGE ? 1 : 0; in iris_hfi_gen2_set_colorspace()
|
| H A D | iris_vdec.c | 89 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in iris_vdec_try_fmt() local 94 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in iris_vdec_try_fmt() 123 if (pixmp->field == V4L2_FIELD_ANY) in iris_vdec_try_fmt() 124 pixmp->field = V4L2_FIELD_NONE; in iris_vdec_try_fmt() 126 pixmp->num_planes = 1; in iris_vdec_try_fmt()
|