我使用的是orin nano核心版,sdk36.4.4,现在想知道vi支持rgb888格式吗?
我看驱动里面有支持,需要确认下,
我现在使用LT9211C桥接芯片输出的是4lane RGB888格式,抓图的时候超时了
v4l2-ctl -d /dev/video0 --set-fmt-video=width=800,height=1280,pixelformat=AB24 --stream-mmap --stream-count=100 --stream-to=frame.rgba
log:
tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[46088.671875] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[46088.674091] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
设备树部分配置:
mode0 {
mclk_khz = “24000”;
num_lanes = “4”;
tegra_sinterface = “serial_a”;
phy_mode = “DPHY”;
discontinuous_clk = “yes”;
dpcm_enable = “false”;
cil_settletime = “0”;
lane_polarity = “6”;
active_w = "800";
active_h = "1280";
mode_type = "rgb";
pixel_phase = "rgb888";
csi_pixel_bit_depth = "24";
readout_orientation = "0";
line_length = "880";
pix_clk_hz = "70012000";
这部分应该没问题吧,CSI0和CSI1
我发现了这个,文档里面写支持RGB888格式,和YUV420-8bit,
为什么驱动里面只有yuv_yuyv16 6bit呢?没有8bit?
The driver is support it otherwise it should be compiled failed when you set the RGB in device tree.
Get the trace log to know the capture failed.
sudo su
modprobe rtcpu_debug
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 3 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace
v4l2-ctl --stream-mmap -c bypass_mode=0
cat /sys/kernel/debug/tracing/trace
谢谢你的回答
现在的模拟sensor发出的数据是rgb888,orin nano这边设备树配置如下
mode0 {
mclk_khz = “24000”;
num_lanes = “4”;
tegra_sinterface = “serial_a”;
phy_mode = “DPHY”;
discontinuous_clk = “yes”;
dpcm_enable = “false”;
cil_settletime = “0”;
lane_polarity = “6”;
active_w = "800";
active_h = "1280";
mode_type = "rgb";
pixel_phase = "rgb888";
csi_pixel_bit_depth = "24";
readout_orientation = "0";
line_length = "1600";
pix_clk_hz = "74000000";
能够接收到正常的数据,但是为什么rgb888格式的需要用bgra8888去查看才正常呢?
然后我的模拟csi配置成yuv422 8bit的模式的时候
orin nano的配置如下:
但是接收到的图像颜色不对
That’s tell the sensor output BGR instead of RGB.
For this may be
- Hack vi5_formats.h
TEGRA_VIDEO_FORMAT(RGB888, 24, RGB888_1X24, 4, 1, T_A8R8G8B8,
RGB888, ABGR32, “BGRA-8-8-8-8”),
- Make the sensor driver to enable V4L2_PIX_FMT_ABGR32 AR24
请问下yuv422的图像颜色异常的原因可能是什么?
他只支持yuv422吗?
You can try others order by viewer like uyvy ..
请问下orin nano csi vi支持yuv420格式输入吗?
Current driver don’t support YUV420.
Thanks
我尝试使用yuv422的yuyv yvyu uyvy vyuy等格式去解析抓下来的yuv图像,颜色都有问题
我的csi发送的是yuv422 8bit,
orin nano这边配置如下,yuv接收,接收的数据大小正常,w x h x 2 ,csi_pixel_bit_depth是每个像素的bit大小吧?现在不知道为什么颜色不对,和YUV_PLANAR_422 、YUYV_PACKAGE_422有关系吗
active_w = "800";
active_h = "1280";
mode_type = "yuv";
pixel_phase = "uyvy";
csi_pixel_bit_depth = "16";
readout_orientation = "0";
line_length = "1600";
pix_clk_hz = "120000000";