pix_fmt_mp 655 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; pix_fmt_mp 658 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->field = V4L2_FIELD_NONE; pix_fmt_mp 661 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->num_planes = 1; pix_fmt_mp 662 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->plane_fmt[0].bytesperline = 0; pix_fmt_mp 666 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->height = clamp(pix_fmt_mp->height, pix_fmt_mp 669 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->width = clamp(pix_fmt_mp->width, pix_fmt_mp 679 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c tmp_w = pix_fmt_mp->width; pix_fmt_mp 680 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c tmp_h = pix_fmt_mp->height; pix_fmt_mp 681 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c v4l_bound_align_image(&pix_fmt_mp->width, pix_fmt_mp 684 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c &pix_fmt_mp->height, pix_fmt_mp 688 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (pix_fmt_mp->width < tmp_w && pix_fmt_mp 689 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c (pix_fmt_mp->width + 64) <= MTK_VDEC_MAX_W) pix_fmt_mp 690 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->width += 64; pix_fmt_mp 691 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (pix_fmt_mp->height < tmp_h && pix_fmt_mp 692 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c (pix_fmt_mp->height + 64) <= MTK_VDEC_MAX_H) pix_fmt_mp 693 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->height += 64; pix_fmt_mp 697 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c tmp_w, tmp_h, pix_fmt_mp->width, pix_fmt_mp 698 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->height, pix_fmt_mp 699 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->width * pix_fmt_mp->height); pix_fmt_mp 701 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->num_planes = fmt->num_planes; pix_fmt_mp 702 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->plane_fmt[0].sizeimage = pix_fmt_mp 703 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->width * pix_fmt_mp->height; pix_fmt_mp 704 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; pix_fmt_mp 706 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (pix_fmt_mp->num_planes == 2) { pix_fmt_mp 707 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->plane_fmt[1].sizeimage = pix_fmt_mp 708 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c (pix_fmt_mp->width * pix_fmt_mp->height) / 2; pix_fmt_mp 709 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->plane_fmt[1].bytesperline = pix_fmt_mp 710 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->width; pix_fmt_mp 714 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c for (i = 0; i < pix_fmt_mp->num_planes; i++) pix_fmt_mp 715 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c memset(&(pix_fmt_mp->plane_fmt[i].reserved[0]), 0x0, pix_fmt_mp 716 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c sizeof(pix_fmt_mp->plane_fmt[0].reserved)); pix_fmt_mp 718 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_fmt_mp->flags = 0; pix_fmt_mp 719 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c memset(&pix_fmt_mp->reserved, 0x0, sizeof(pix_fmt_mp->reserved)); pix_fmt_mp 740 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; pix_fmt_mp 749 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (pix_fmt_mp->plane_fmt[0].sizeimage == 0) { pix_fmt_mp 289 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; pix_fmt_mp 292 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->field = V4L2_FIELD_NONE; pix_fmt_mp 295 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->num_planes = 1; pix_fmt_mp 296 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[0].bytesperline = 0; pix_fmt_mp 300 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->height = clamp(pix_fmt_mp->height, pix_fmt_mp 303 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->width = clamp(pix_fmt_mp->width, pix_fmt_mp 310 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c tmp_w = pix_fmt_mp->width; pix_fmt_mp 311 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c tmp_h = pix_fmt_mp->height; pix_fmt_mp 312 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c v4l_bound_align_image(&pix_fmt_mp->width, pix_fmt_mp 315 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c &pix_fmt_mp->height, pix_fmt_mp 319 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c if (pix_fmt_mp->width < tmp_w && pix_fmt_mp 320 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c (pix_fmt_mp->width + 16) <= MTK_VENC_MAX_W) pix_fmt_mp 321 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->width += 16; pix_fmt_mp 322 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c if (pix_fmt_mp->height < tmp_h && pix_fmt_mp 323 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c (pix_fmt_mp->height + 32) <= MTK_VENC_MAX_H) pix_fmt_mp 324 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->height += 32; pix_fmt_mp 328 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c tmp_w, tmp_h, pix_fmt_mp->width, pix_fmt_mp 329 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->height, pix_fmt_mp 330 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[0].sizeimage, pix_fmt_mp 331 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[1].sizeimage); pix_fmt_mp 333 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->num_planes = fmt->num_planes; pix_fmt_mp 334 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[0].sizeimage = pix_fmt_mp 335 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->width * pix_fmt_mp->height + pix_fmt_mp 336 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ((ALIGN(pix_fmt_mp->width, 16) * 2) * 16); pix_fmt_mp 337 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; pix_fmt_mp 339 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c if (pix_fmt_mp->num_planes == 2) { pix_fmt_mp 340 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[1].sizeimage = pix_fmt_mp 341 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c (pix_fmt_mp->width * pix_fmt_mp->height) / 2 + pix_fmt_mp 342 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c (ALIGN(pix_fmt_mp->width, 16) * 16); pix_fmt_mp 343 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[2].sizeimage = 0; pix_fmt_mp 344 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[1].bytesperline = pix_fmt_mp 345 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->width; pix_fmt_mp 346 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[2].bytesperline = 0; pix_fmt_mp 347 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c } else if (pix_fmt_mp->num_planes == 3) { pix_fmt_mp 348 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[1].sizeimage = pix_fmt_mp 349 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[2].sizeimage = pix_fmt_mp 350 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c (pix_fmt_mp->width * pix_fmt_mp->height) / 4 + pix_fmt_mp 351 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ((ALIGN(pix_fmt_mp->width, 16) / 2) * 16); pix_fmt_mp 352 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[1].bytesperline = pix_fmt_mp 353 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->plane_fmt[2].bytesperline = pix_fmt_mp 354 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->width / 2; pix_fmt_mp 358 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c for (i = 0; i < pix_fmt_mp->num_planes; i++) pix_fmt_mp 359 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c memset(&(pix_fmt_mp->plane_fmt[i].reserved[0]), 0x0, pix_fmt_mp 360 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c sizeof(pix_fmt_mp->plane_fmt[0].reserved)); pix_fmt_mp 362 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->flags = 0; pix_fmt_mp 363 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c memset(&pix_fmt_mp->reserved, 0x0, pix_fmt_mp 364 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c sizeof(pix_fmt_mp->reserved)); pix_fmt_mp 486 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; pix_fmt_mp 511 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->height = clamp(pix_fmt_mp->height, pix_fmt_mp 514 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix_fmt_mp->width = clamp(pix_fmt_mp->width, pix_fmt_mp 1349 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; pix_fmt_mp 1354 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->width = 0; pix_fmt_mp 1355 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->height = 0; pix_fmt_mp 1356 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->field = V4L2_FIELD_NONE; pix_fmt_mp 1357 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->pixelformat = ctx->dst_fmt->fourcc; pix_fmt_mp 1358 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->num_planes = ctx->dst_fmt->num_planes; pix_fmt_mp 1360 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[0].bytesperline = ctx->enc_dst_buf_size; pix_fmt_mp 1361 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[0].sizeimage = ctx->enc_dst_buf_size; pix_fmt_mp 1364 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->width = ctx->img_width; pix_fmt_mp 1365 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->height = ctx->img_height; pix_fmt_mp 1367 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->field = V4L2_FIELD_NONE; pix_fmt_mp 1368 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->pixelformat = ctx->src_fmt->fourcc; pix_fmt_mp 1369 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->num_planes = ctx->src_fmt->num_planes; pix_fmt_mp 1371 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[0].bytesperline = ctx->buf_width; pix_fmt_mp 1372 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[0].sizeimage = ctx->luma_size; pix_fmt_mp 1373 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[1].bytesperline = ctx->buf_width; pix_fmt_mp 1374 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[1].sizeimage = ctx->chroma_size; pix_fmt_mp 1386 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; pix_fmt_mp 1399 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp 1400 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[0].sizeimage; pix_fmt_mp 1412 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c v4l_bound_align_image(&pix_fmt_mp->width, 8, 1920, 1, pix_fmt_mp 1413 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c &pix_fmt_mp->height, 4, 1080, 1, 0); pix_fmt_mp 1425 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; pix_fmt_mp 1441 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ctx->enc_dst_buf_size = pix_fmt_mp->plane_fmt[0].sizeimage; pix_fmt_mp 1442 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[0].bytesperline = 0; pix_fmt_mp 1449 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ctx->img_width = pix_fmt_mp->width; pix_fmt_mp 1450 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ctx->img_height = pix_fmt_mp->height; pix_fmt_mp 1453 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->width, pix_fmt_mp->height, pix_fmt_mp 1457 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[0].sizeimage = ctx->luma_size; pix_fmt_mp 1458 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[0].bytesperline = ctx->buf_width; pix_fmt_mp 1459 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[1].sizeimage = ctx->chroma_size; pix_fmt_mp 1460 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c pix_fmt_mp->plane_fmt[1].bytesperline = ctx->buf_width;