imx6q camera 摄像头图像上下两层

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

imx6q camera 摄像头图像上下两层

1,327 Views
wujianxin
Contributor I

sensor  -> tw9992(video decoder) -> MIPI CSI2 -> IPU

使用mxc-v4l2-overlay测试(直接运行命令无参数):

WeChat Image_20190904161020.jpg

能看到在上下出现两幅一样的图像,并且有个现象是红色变成蓝色,蓝色变成红色,

命令执行log如下:

root@sabresd_6dq:/ # mxc-v4l2-overlay
g_display_width = 240, g_display_height = 320
g_display_top = 0, g_display_left = 0
sensor chip is tw9992_mipi
sensor supported frame size:
720x480
720x576
sensor frame format: UYVY
sensor frame format: UYVY
frame_rate is 30

frame buffer width 1920, height 720, bytesperline 7680

Labels (3)
0 Kudos
4 Replies

936 Views
joanxie
NXP TechSupport
NXP TechSupport

try to use mxc_v4l2_tvin.out to test the capture, which includes de-interlacing function

0 Kudos

936 Views
wujianxin
Contributor I

另外,测试软件我使用的是Android6.0.1 /external/linux-test/test/mxc_v4l2_test下提供的

同时,imx-test中的overlay/tvin版本我也测试过,同样的现象。

0 Kudos

936 Views
joanxie
NXP TechSupport
NXP TechSupport

I have mailed to you, pls check it

0 Kudos

936 Views
wujianxin
Contributor I

Fail to execute mxc-v4l2-tvin :

255|root@sabresd_6dq:/cache # mxc-v4l2-tvin -ow 720 -oh 480
[ 1502.115554] CheckAndSetDecoder STD:0
TV decoder chip is tw9992_mipi[ 1502.446485] tw9992_ioctl_g_fmt_cap PRIVATE update pixelformat:0xff --Please use vidioc_int_g_std

driver=mxc_vout, card=DISP4 FG, bus=, version=0x0004010f, capabilities=0x84200002
fmt RGB565: fourcc = 0x50424752
fmt BGR24: fourcc = 0x33524742
fmt RGB24: fourcc = 0x33424752
fmt RGB32: fourcc = 0x34424752
fmt BGR32: fourcc = 0x34524742
fmt NV12: fourcc = 0x3231564e
fmt UYVY: fourcc = 0x59565955
fmt YUYV: fourcc = 0x56595559
fmt YUV422 planar: fourcc = 0x50323234
fmt YUV444: fourcc = 0x34343459
fmt YUV[ 1502.514622] tw9992_ioctl_g_fmt_cap PRIVATE update pixelformat:0xff --Please use vidioc_int_g_std
420: fourcc = 0x32315559
fmt YVU420: fourcc = 0x32315659
fmt TILED NV12P: fourcc = 0x50564e54
fmt TILED NV12F: fourcc = 0x46564e54
fmt YUV444 planar: fourcc = 0x50343434
start time = 1502 s, 510361 us
[ 1502.638580] tw9992_ioctl_g_fmt_cap PRIVATE update pixelformat:0xb000 --Please use vidioc_int_g_std
TV decoder chip is tw9992_mipi[ 1502.697147] tw9992_ioctl_g_fmt_cap PRIVATE update pixelformat:0xb000 --Please use vidioc_int_g_std

driver=mxc_vout, card=DISP4 FG, bus=, version=0x0004010f, capabilities=0x84200002
fmt RGB565: fourcc = 0x50424752
fmt BGR24: fourcc = 0x33524742
fmt RGB24: fourcc = 0x33424752
fmt RGB32: fourcc = 0x34424752
fmt BGR32: fourcc = 0x34524742
fmt NV12: fourcc = 0x3231564e
fmt UYVY: fourcc = 0x59565955
fmt YUYV: fourcc = 0x56595559
fmt YUV422 planar: fourcc = 0x50323234
fmt YUV444: fourcc = 0x34343459
fmt YUV420: fourcc = 0x32315559
fmt YVU420: fourcc = 0x32315659
fmt TILED NV12P: fourcc = 0x50564e54
fmt TILED NV12F: fourcc = 0x46564e54
fmt YUV444 planar: fourcc = 0x50343434
request buffers failed
Setup v4l output failed.
root@sabresd_6dq:/cache #

0 Kudos