it looks you’ve referring to IMX185 to develop your customize driver, it’s a YUV camera sensor?
Argus it doesn’t support with YUV camera sensor,
please try v4l2 IOCTL if you would like to dump the sensor content,
for instance, Applications Using V4L2 IOCTL Directly.
Hi JerryChang,
Thank you very much!
yes, it’s a YUV camera, with 1 line embeded data. i can get framedata by v4l2 but can’t get embeddata, and i want to get embeded data, please give me a help!
thanks
BRs
lei
as you can see in the VI drivers, $public_sources/kernel_src/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi5_fops.c
there’s chan->emb_buf; to allocates private buffer for embedded data storage.
user may retrieved via user-space.
note, according to the embeddedData type specified by CSI-2.
embedded line is transferred with data type 0x12 in the packet header.
Hi JerryChang,
Thank you for your help!
I found chan->emb_buf in vi5_fops.c, but until now haven’t found how to use it, could you provide me a sample?
thanks a lot.
by default, VI driver didn’t export embedded data to user space.
we only have Argus samples to obtain it. so, you’ll have to modify the VI driver to acquire the embedded data buffer to user space.
[quote=“lei1234, post:8, topic:295932”]
Hi JerryChang,
[/quote] could you provide me some sample code about user space access kernel by this “surface”?
since it’s a YUV camera, you may access to the stream via v4l2. (i.e. v4l-utils)
it’s a 3rdparty sources, please see-also v4l2utils/utils/libv4l2util/v4l2_driver.h
you may dig into struct v4l2_driver {...} for fetching this v4l2 buffer.