/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/ |
H A D | cif-scale.c | 77 f->fmt.pix_mp = scale_vdev->pixm;
in rkcif_scale_g_fmt_vid_cap_mplane() 124 static int rkcif_scale_set_fmt(struct rkcif_scale_vdev *scale_vdev, struct v4l2_pix_format_mplane *pixm, bool try)
in rkcif_scale_set_fmt() argument 163 fmt = find_output_fmt(pixm->pixelformat);
in rkcif_scale_set_fmt() 172 scale_ratio = width / pixm->width;
in rkcif_scale_set_fmt() 184 pixm->width = width / (scale_times * 0x02) * 0x02;
in rkcif_scale_set_fmt() 185 pixm->height = height / (scale_times * 0x02) * 0x02;
in rkcif_scale_set_fmt() 186 pixm->num_planes = fmt->mplanes;
in rkcif_scale_set_fmt() 187 pixm->field = V4L2_FIELD_NONE;
in rkcif_scale_set_fmt() 188 pixm->quantization = V4L2_QUANTIZATION_DEFAULT;
in rkcif_scale_set_fmt() 191 bpl = pixm in rkcif_scale_set_fmt() 460 const struct v4l2_pix_format_mplane *pixm = NULL; rkcif_scale_vb2_queue_setup() local 485 struct v4l2_pix_format_mplane *pixm = &scale_vdev->pixm; rkcif_scale_vb2_buf_queue() local 575 struct v4l2_pix_format_mplane pixm = scale_vdev->pixm; rkcif_scale_channel_init() local 1006 struct v4l2_pix_format_mplane pixm; rkcif_init_scale_vdev() local [all...] |
H A D | capture.c | 1974 channel->width = stream->pixm.width;
in rkcif_csi_channel_init() 1975 channel->height = stream->pixm.height;
in rkcif_csi_channel_init() 1994 channel->width = stream->pixm.width;
in rkcif_csi_channel_init() 1995 channel->height = stream->pixm.height;
in rkcif_csi_channel_init() 1999 fmt = find_output_fmt(stream, stream->pixm.pixelformat);
in rkcif_csi_channel_init() 2001 v4l2_err(&dev->v4l2_dev, "can not find output format: 0x%x", stream->pixm.pixelformat);
in rkcif_csi_channel_init() 2530 const struct v4l2_pix_format_mplane *pixm = NULL;
in rkcif_queue_setup() local 2536 pixm = &stream->pixm;
in rkcif_queue_setup() 2545 height = pixm in rkcif_queue_setup() 2653 struct v4l2_pix_format_mplane *pixm = &stream->pixm; rkcif_buf_queue() local 2727 struct v4l2_pix_format_mplane *pixm = &stream->pixm; rkcif_init_rx_buf() local 4060 rkcif_set_fmt(struct rkcif_stream *stream, struct v4l2_pix_format_mplane *pixm, bool try) rkcif_set_fmt() argument 4209 struct v4l2_pix_format_mplane pixm; rkcif_stream_init() local 6716 struct v4l2_pix_format_mplane pixm; rkcif_set_default_fmt() local [all...] |
H A D | subdev-itf.c | 94 struct v4l2_pix_format_mplane pixm;
in sditf_get_set_fmt() local 121 pixm.pixelformat = rkcif_mbus_pixelcode_to_v4l2(fmt->format.code);
in sditf_get_set_fmt() 122 pixm.width = priv->cap_info.width;
in sditf_get_set_fmt() 123 pixm.height = priv->cap_info.height;
in sditf_get_set_fmt() 127 rkcif_set_fmt(&cif_dev->stream[0], &pixm, false);
in sditf_get_set_fmt() 129 rkcif_set_fmt(&cif_dev->stream[0], &pixm, false);
in sditf_get_set_fmt() 130 rkcif_set_fmt(&cif_dev->stream[1], &pixm, false);
in sditf_get_set_fmt() 132 rkcif_set_fmt(&cif_dev->stream[0], &pixm, false);
in sditf_get_set_fmt() 133 rkcif_set_fmt(&cif_dev->stream[1], &pixm, false);
in sditf_get_set_fmt() 134 rkcif_set_fmt(&cif_dev->stream[0x02], &pixm, fals in sditf_get_set_fmt() [all...] |
H A D | dev.h | 456 struct v4l2_pix_format_mplane pixm;
member 513 struct v4l2_pix_format_mplane pixm;
member 666 struct v4l2_pix_format_mplane pixm;
member 806 int rkcif_set_fmt(struct rkcif_stream *stream, struct v4l2_pix_format_mplane *pixm, bool try);
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/ |
H A D | cif-scale.c | 79 f->fmt.pix_mp = scale_vdev->pixm; in rkcif_scale_g_fmt_vid_cap_mplane() 130 struct v4l2_pix_format_mplane *pixm, in rkcif_scale_set_fmt() 172 fmt = find_output_fmt(pixm->pixelformat); in rkcif_scale_set_fmt() 182 scale_ratio = width / pixm->width; in rkcif_scale_set_fmt() 194 pixm->width = width / (scale_times * 2) * 2; in rkcif_scale_set_fmt() 195 pixm->height = height / (scale_times * 2) * 2; in rkcif_scale_set_fmt() 196 pixm->num_planes = fmt->mplanes; in rkcif_scale_set_fmt() 197 pixm->field = V4L2_FIELD_NONE; in rkcif_scale_set_fmt() 198 pixm->quantization = V4L2_QUANTIZATION_DEFAULT; in rkcif_scale_set_fmt() 201 bpl = pixm in rkcif_scale_set_fmt() 129 rkcif_scale_set_fmt(struct rkcif_scale_vdev *scale_vdev, struct v4l2_pix_format_mplane *pixm, bool try) rkcif_scale_set_fmt() argument 481 const struct v4l2_pix_format_mplane *pixm = NULL; rkcif_scale_vb2_queue_setup() local 507 struct v4l2_pix_format_mplane *pixm = &scale_vdev->pixm; rkcif_scale_vb2_buf_queue() local 600 struct v4l2_pix_format_mplane pixm = scale_vdev->pixm; rkcif_scale_channel_init() local 1066 struct v4l2_pix_format_mplane pixm; rkcif_init_scale_vdev() local [all...] |
H A D | subdev-itf.c | 97 struct v4l2_pix_format_mplane pixm; in sditf_get_set_fmt() local 126 pixm.pixelformat = rkcif_mbus_pixelcode_to_v4l2(fmt->format.code); in sditf_get_set_fmt() 127 pixm.width = priv->cap_info.width; in sditf_get_set_fmt() 128 pixm.height = priv->cap_info.height; in sditf_get_set_fmt() 133 rkcif_set_fmt(&cif_dev->stream[0], &pixm, false); in sditf_get_set_fmt() 135 rkcif_set_fmt(&cif_dev->stream[0], &pixm, false); in sditf_get_set_fmt() 136 rkcif_set_fmt(&cif_dev->stream[1], &pixm, false); in sditf_get_set_fmt() 138 rkcif_set_fmt(&cif_dev->stream[0], &pixm, false); in sditf_get_set_fmt() 139 rkcif_set_fmt(&cif_dev->stream[1], &pixm, false); in sditf_get_set_fmt() 140 rkcif_set_fmt(&cif_dev->stream[2], &pixm, fals in sditf_get_set_fmt() [all...] |
H A D | capture.c | 1993 channel->width = stream->pixm.width; in rkcif_csi_channel_init() 1994 channel->height = stream->pixm.height; in rkcif_csi_channel_init() 2012 channel->width = stream->pixm.width; in rkcif_csi_channel_init() 2013 channel->height = stream->pixm.height; in rkcif_csi_channel_init() 2017 fmt = find_output_fmt(stream, stream->pixm.pixelformat); in rkcif_csi_channel_init() 2020 stream->pixm.pixelformat); in rkcif_csi_channel_init() 2601 const struct v4l2_pix_format_mplane *pixm = NULL; in rkcif_queue_setup() local 2607 pixm = &stream->pixm; in rkcif_queue_setup() 2616 height = pixm in rkcif_queue_setup() 2731 struct v4l2_pix_format_mplane *pixm = &stream->pixm; rkcif_buf_queue() local 2808 struct v4l2_pix_format_mplane *pixm = &stream->pixm; rkcif_init_rx_buf() local 4209 rkcif_set_fmt(struct rkcif_stream *stream, struct v4l2_pix_format_mplane *pixm, bool try) rkcif_set_fmt() argument 4370 struct v4l2_pix_format_mplane pixm; rkcif_stream_init() local 6995 struct v4l2_pix_format_mplane pixm; rkcif_set_default_fmt() local [all...] |
H A D | dev.h | 415 struct v4l2_pix_format_mplane pixm; member 472 struct v4l2_pix_format_mplane pixm; member 627 struct v4l2_pix_format_mplane pixm; member 778 struct v4l2_pix_format_mplane *pixm,
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
H A D | capture.c | 215 struct v4l2_pix_format_mplane pixm;
in hdr_config_dmatx() local 225 memset(&pixm, 0, sizeof(pixm));
in hdr_config_dmatx() 235 pixm = stream->out_fmt;
in hdr_config_dmatx() 237 rkisp_dmarx_set_fmt(stream, pixm);
in hdr_config_dmatx() 249 pixm = stream->out_fmt;
in hdr_config_dmatx() 251 rkisp_dmarx_set_fmt(stream, pixm);
in hdr_config_dmatx() 264 pixm = stream->out_fmt;
in hdr_config_dmatx() 266 rkisp_dmarx_set_fmt(stream, pixm);
in hdr_config_dmatx() 273 if (pixm in hdr_config_dmatx() 911 rkisp_set_fmt(struct rkisp_stream *stream, struct v4l2_pix_format_mplane *pixm, bool try) rkisp_set_fmt() argument 1084 struct v4l2_pix_format_mplane pixm; rkisp_set_stream_def_fmt() local [all...] |
H A D | dmarx.c | 515 const struct v4l2_pix_format_mplane *pixm = NULL; in rkisp_queue_setup() local 519 pixm = &stream->out_fmt; in rkisp_queue_setup() 527 plane_fmt = &pixm->plane_fmt[i]; in rkisp_queue_setup() 549 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt; in rkisp_buf_queue() local 569 ispbuf->buff_addr[i + 1] = (i == 0) ? ispbuf->buff_addr[i] + pixm->plane_fmt[i].bytesperline * pixm->height in rkisp_buf_queue() 570 : ispbuf->buff_addr[i] + pixm->plane_fmt[i].sizeimage; in rkisp_buf_queue() 680 static int rkisp_set_fmt(struct rkisp_stream *stream, struct v4l2_pix_format_mplane *pixm, bool try) in rkisp_set_fmt() argument 688 fmt = find_fmt(stream, pixm->pixelformat); in rkisp_set_fmt() 690 v4l2_err(&stream->ispdev->v4l2_dev, "nonsupport pixelformat:%c%c%c%c\n", pixm in rkisp_set_fmt() 1030 rkisp_dmarx_set_fmt(struct rkisp_stream *stream, struct v4l2_pix_format_mplane pixm) rkisp_dmarx_set_fmt() argument [all...] |
H A D | dmarx.h | 54 void rkisp_dmarx_set_fmt(struct rkisp_stream *stream, struct v4l2_pix_format_mplane pixm);
|
H A D | capture_v1x.c | 510 const struct v4l2_pix_format_mplane *pixm = NULL;
in rkisp_queue_setup() local 514 pixm = &stream->out_fmt;
in rkisp_queue_setup() 521 plane_fmt = &pixm->plane_fmt[i];
in rkisp_queue_setup() 525 sizes[i] = (isp_fmt->fmt_type == FMT_YUV) ? plane_fmt->sizeimage / pixm->height * ALIGN(pixm->height, 0x10)
in rkisp_queue_setup() 547 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt;
in rkisp_buf_queue() local 568 ispbuf->buff_addr[i + 1] = (i == 0) ? ispbuf->buff_addr[i] + pixm->plane_fmt[i].bytesperline * pixm->height
in rkisp_buf_queue() 569 : ispbuf->buff_addr[i] + pixm->plane_fmt[i].sizeimage;
in rkisp_buf_queue()
|
H A D | capture_v30.c | 817 const struct v4l2_pix_format_mplane *pixm = NULL;
in rkisp_queue_setup() local 821 pixm = &stream->out_fmt;
in rkisp_queue_setup() 828 plane_fmt = &pixm->plane_fmt[i];
in rkisp_queue_setup() 832 sizes[i] = (isp_fmt->fmt_type == FMT_YUV) ? plane_fmt->sizeimage / pixm->height * ALIGN(pixm->height, 0x10)
in rkisp_queue_setup() 854 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt;
in rkisp_buf_queue() local 877 height = (isp_fmt->fmt_type == FMT_FBC) ? ALIGN(pixm->height, 0x10) >> 0x04 : pixm->height;
in rkisp_buf_queue() 878 size = (i == 0) ? pixm->plane_fmt[i].bytesperline * height : pixm in rkisp_buf_queue() [all...] |
H A D | capture_v21.c | 1036 const struct v4l2_pix_format_mplane *pixm = NULL;
in rkisp_queue_setup() local 1040 pixm = &stream->out_fmt;
in rkisp_queue_setup() 1047 plane_fmt = &pixm->plane_fmt[i];
in rkisp_queue_setup() 1052 ? plane_fmt->sizeimage / pixm->height * ALIGN(pixm->height, CAPTURE_VALUE_TH)
in rkisp_queue_setup() 1074 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt;
in rkisp_buf_queue() local 1095 ispbuf->buff_addr[i + 1] = (i == 0) ? ispbuf->buff_addr[i] + pixm->plane_fmt[i].bytesperline * pixm->height
in rkisp_buf_queue() 1096 : ispbuf->buff_addr[i] + pixm->plane_fmt[i].sizeimage;
in rkisp_buf_queue()
|
H A D | dev.c | 481 struct v4l2_pix_format_mplane pixm = { in _set_pipeline_default_fmt() local 488 rkisp_dmarx_set_fmt(&dev->dmarx_dev.stream[i], pixm); in _set_pipeline_default_fmt()
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/ |
H A D | capture.c | 222 struct v4l2_pix_format_mplane pixm; in hdr_config_dmatx() local 234 memset(&pixm, 0, sizeof(pixm)); in hdr_config_dmatx() 246 pixm = stream->out_fmt; in hdr_config_dmatx() 248 rkisp_dmarx_set_fmt(stream, pixm); in hdr_config_dmatx() 260 pixm = stream->out_fmt; in hdr_config_dmatx() 262 rkisp_dmarx_set_fmt(stream, pixm); in hdr_config_dmatx() 275 pixm = stream->out_fmt; in hdr_config_dmatx() 277 rkisp_dmarx_set_fmt(stream, pixm); in hdr_config_dmatx() 284 if (pixm in hdr_config_dmatx() 897 rkisp_set_fmt(struct rkisp_stream *stream, struct v4l2_pix_format_mplane *pixm, bool try) rkisp_set_fmt() argument 1088 struct v4l2_pix_format_mplane pixm; rkisp_set_stream_def_fmt() local [all...] |
H A D | dmarx.c | 506 const struct v4l2_pix_format_mplane *pixm = NULL; in rkisp_queue_setup() local 510 pixm = &stream->out_fmt; in rkisp_queue_setup() 518 plane_fmt = &pixm->plane_fmt[i]; in rkisp_queue_setup() 540 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt; in rkisp_buf_queue() local 562 pixm->plane_fmt[i].bytesperline * in rkisp_buf_queue() 563 pixm->height : in rkisp_buf_queue() 565 pixm->plane_fmt[i].sizeimage; in rkisp_buf_queue() 684 struct v4l2_pix_format_mplane *pixm, in rkisp_set_fmt() 693 fmt = find_fmt(stream, pixm->pixelformat); in rkisp_set_fmt() 697 pixm in rkisp_set_fmt() 683 rkisp_set_fmt(struct rkisp_stream *stream, struct v4l2_pix_format_mplane *pixm, bool try) rkisp_set_fmt() argument 1058 rkisp_dmarx_set_fmt(struct rkisp_stream *stream, struct v4l2_pix_format_mplane pixm) rkisp_dmarx_set_fmt() argument [all...] |
H A D | capture_v1x.c | 542 const struct v4l2_pix_format_mplane *pixm = NULL; in rkisp_queue_setup() local 546 pixm = &stream->out_fmt; in rkisp_queue_setup() 553 plane_fmt = &pixm->plane_fmt[i]; in rkisp_queue_setup() 558 plane_fmt->sizeimage / pixm->height * in rkisp_queue_setup() 559 ALIGN(pixm->height, 16) : in rkisp_queue_setup() 581 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt; in rkisp_buf_queue() local 604 pixm->plane_fmt[i].bytesperline * in rkisp_buf_queue() 605 pixm->height : in rkisp_buf_queue() 607 pixm->plane_fmt[i].sizeimage; in rkisp_buf_queue()
|
H A D | dmarx.h | 59 struct v4l2_pix_format_mplane pixm);
|
H A D | capture_v30.c | 850 const struct v4l2_pix_format_mplane *pixm = NULL; in rkisp_queue_setup() local 854 pixm = &stream->out_fmt; in rkisp_queue_setup() 861 plane_fmt = &pixm->plane_fmt[i]; in rkisp_queue_setup() 866 plane_fmt->sizeimage / pixm->height * in rkisp_queue_setup() 867 ALIGN(pixm->height, 16) : in rkisp_queue_setup() 889 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt; in rkisp_buf_queue() local 913 ALIGN(pixm->height, 16) >> 4 : pixm->height; in rkisp_buf_queue() 915 pixm->plane_fmt[i].bytesperline * height : in rkisp_buf_queue() 916 pixm in rkisp_buf_queue() [all...] |
H A D | capture_v21.c | 1076 const struct v4l2_pix_format_mplane *pixm = NULL; in rkisp_queue_setup() local 1080 pixm = &stream->out_fmt; in rkisp_queue_setup() 1087 plane_fmt = &pixm->plane_fmt[i]; in rkisp_queue_setup() 1092 plane_fmt->sizeimage / pixm->height * in rkisp_queue_setup() 1093 ALIGN(pixm->height, 16) : in rkisp_queue_setup() 1115 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt; in rkisp_buf_queue() local 1138 pixm->plane_fmt[i].bytesperline * in rkisp_buf_queue() 1139 pixm->height : in rkisp_buf_queue() 1141 pixm->plane_fmt[i].sizeimage; in rkisp_buf_queue()
|
H A D | dev.c | 454 struct v4l2_pix_format_mplane pixm = { in _set_pipeline_default_fmt() local 461 rkisp_dmarx_set_fmt(&dev->dmarx_dev.stream[i], pixm); in _set_pipeline_default_fmt()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/ |
H A D | stream.c | 832 const struct v4l2_pix_format_mplane *pixm = NULL; in rkispp_queue_setup() local 836 pixm = &stream->out_fmt; in rkispp_queue_setup() 837 if (!pixm->width || !pixm->height) { in rkispp_queue_setup() 846 plane_fmt = &pixm->plane_fmt[i]; in rkispp_queue_setup() 851 ? plane_fmt->sizeimage / pixm->height * ALIGN(pixm->height, 0x10) in rkispp_queue_setup() 874 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt; in rkispp_buf_queue() local 898 height = (cap_fmt->wr_fmt & FMT_FBC) ? ALIGN(pixm->height, 0x10) >> 0x04 : pixm in rkispp_buf_queue() 1156 rkispp_set_fmt(struct rkispp_stream *stream, struct v4l2_pix_format_mplane *pixm, bool try) rkispp_set_fmt() argument [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/ |
H A D | stream.c | 850 const struct v4l2_pix_format_mplane *pixm = NULL; in rkispp_queue_setup() local 854 pixm = &stream->out_fmt; in rkispp_queue_setup() 855 if (!pixm->width || !pixm->height) in rkispp_queue_setup() 863 plane_fmt = &pixm->plane_fmt[i]; in rkispp_queue_setup() 869 plane_fmt->sizeimage / pixm->height * in rkispp_queue_setup() 870 ALIGN(pixm->height, 16) : in rkispp_queue_setup() 896 struct v4l2_pix_format_mplane *pixm = &stream->out_fmt; in rkispp_buf_queue() local 921 ALIGN(pixm->height, 16) >> 4 : pixm in rkispp_buf_queue() 1193 rkispp_set_fmt(struct rkispp_stream *stream, struct v4l2_pix_format_mplane *pixm, bool try) rkispp_set_fmt() argument [all...] |