I’m developing on Jetson AGX Xavier.
And I try to receive 5000x5000 raw12 image which is all white via D-PHYx2Lane.
When I receive image and show at ImageJ find the image has several black horizon line see at attachment.
I want to check my device tree seeting is correct or not.
I believe you’re refer to OV5693’s device tree to implement your own driver, right?
you may see Sensor Software Driver Programming to adapt the device tree settings to your sensor driver.
thanks
Hi Jerry,
I check my device tree’sline_length is setting 2200
And Document says:
Pixel line width horizontal timing size for the sensor mode. Used to calibrate the features in the camera stack.
The value must be greater than or equal to active_w.
So I change line width from 2200 to 6600 which is more than active_w(2592) and received Image’s width(5000).
But It seem had some question, the recived Raw12 data has several black horizon line…
Also, I modify the vi5_formats.h to modify the T_R16 to T_R16_I.
The Received data from
ff ff ff ff…
to
ff 7f ff 7f…
please configure active_w/active_h as 5000 since you’d camera sensor that output the image resolution with 5000x5000.
the line_length settings is depends-on the register configuration, please dig into initial table for the values.
Hi Jerry,
This tutorial is helped me a lot.
Now I can recevie 2592x1944 RAW12 all white image without black horizon lines.
Then I try to recevie 5000x5000 RAW12 all white image in same way.
It still shows some black horizon lines.
we should have follow VI’s 64 byte aligned to set the correct stride, set the width alignment to 64.
you have have a try to use v4l2-ctl command to adjust the stride by --preferred_stride=<>.
you’re only dump the raw, right? this resolution is not a limitation if you’re using the v4l2-ctl to fetch the raw files.
FYI, the max resolution though ISP is 24-Mega pixels, and the max supported line buffer is 6144.
I’ve check the raw file, they’re some data in the head, and 0xFF for the contents.
I did not see black horizon lines you’ve mentioned.
Thanks for your information about max resolution.
The 0128_test_5000x5000.raw is Xavier fetch the raw files by v4l2-ctl.
When I use ImageJ to check the raw file, the black horizon lines I say occur both side.(first line is header x=0~7,y=0)
Also, I use HxD double check it, it still have that.
Just at attachment.
[Update]
When I use command v4l2-ctl --device /dev/video0 --set-fmt-video=width=5000,height=5000,pixelformat=’RG12’ --stream-mmap --stream-to=0207.raw --stream-count=1
The black horizon lines only occur right side. 0207.raw (47.7 MB)
please have a try to configure bypass_mode=0 for verification,
i.e. $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=5000,height=5000,pixelformat=RG12 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw
Hi Jerry,
I have tried $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=5000,height=5000,pixelformat=RG12 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw
And it is the same occur right side only. test.zip (63.7 KB)