colour image not capture imx8mn processor from ar0521 sensor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

colour image not capture imx8mn processor from ar0521 sensor

409 Views
khodifadlalit
Contributor I

i am working on imx8mn (part no:-MIMX8MN1CVTIZAA) processor. and camera sensor ar0521

i am successfully captured black and white image from sensor.

but now i want to captured color image from  sensor

i change the imx8-isi-cap.c file function,

mxc_isi_subdev_get_fmt(struct v4l2_subdev *sd,
struct v4l2_subdev_pad_config *cfg,
struct v4l2_subdev_format *fmt)

and

other function

static int mxc_isi_cap_g_fmt_mplane(struct file *file, void *fh,
struct v4l2_format *f)

give a color format
 pix->colorspace = V4L2_COLORSPACE_SRGB;

but i new for v4l2 and camera sensor driver so help me what are change required (imx8-isi-cap.c or imx8-mipi-csi2-sam.c or other file) need to change for capture colour image from camera sensor ar0521

thanks

0 Kudos
3 Replies

403 Views
joanxie
NXP TechSupport
NXP TechSupport

what capture format do you use? and what bsp version do you use?

0 Kudos

397 Views
khodifadlalit
Contributor I

i use capture format

src_fmt.pad = source_pad->index;
src_fmt.pad = source_pad->index;
src_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE;
src_fmt.format.code = MEDIA_BUS_FMT_SGRBG8_1X8;
src_fmt.format.width = dst_f->width;//2592
src_fmt.format.height = dst_f->height;//1944

and i use  BSP is based on version 5.4.70

thanks

0 Kudos

384 Views
joanxie
NXP TechSupport
NXP TechSupport

how about use v4l2 to test?

v4l2-ctl -d /dev/videox --set-fmt-video=width=xx,height=xx,pixelformat=format --stream-mmap

replace x and format as your own request

0 Kudos