Hello Nvidia developpers,
I am working on a sensor which outputs two different formats : Grayscale8 and Grayscale14.
I achieved to add the support of the grayscale8 format on the Jetson nano. To do that, I edited three files :
- vi2_formats.h :
static const struct tegra_video_format vi2_video_formats[] = {
/* GRAYSCALE */
TEGRA_VIDEO_FORMAT(RAW8, 8, Y8_1X8, 1, 1, T_L8, RAW8, GREY, "GRAY8"),
- camera_common.c :
static const struct camera_common_colorfmt camera_common_color_fmts[]
{
MEDIA_BUS_FMT_Y8_1X8, //GRAYSCALE 8 BITS
V4L2_COLORSPACE_RAW, //RAW
V4L2_PIX_FMT_GREY,
},
- sensor_common.c :
static int extract_pixel_format
//grayscale format
else if (strncmp(pixel_t, "gray", size) == 0)
*format = V4L2_PIX_FMT_GREY;
That allowed me to use this format in the .dtsi file of my sensor, and it’s working well.
Now I want to do the same process but with Grayscale14. The problem is that it seems to be much more complicated that grayscale8 according to what has been said here : support for grayscale sensors is missing - #6 by JerryChang
It seems that @JerryChang knows a bit in this domain, maybe you could help me.
Do you think that I just have to do the same process as with Grayscale8 ? Or is it more complicated ?
Thank you for reading me and any help would be appreciated !
Adrien.