img is not null from my code.
data is also not null from my code.
I have a separate way of getting the data out by copying the data out to an nv buffer, then using NvBufSurfaceFromFd and NvBufSurfTransform, then making a vpi image with type VPI_IMAGE_BUFFER_NVBUFFER. That other way works (I can see the image), so the EGL image must be not null and valid.
“NvBuffer file descriptor is invalid.” doesn’t apply to my use case I assume.
I don’t understand what backend to provide, but I have tried all backends in VPIBackend so I’m ruling that one out.
The only one that is left is
Buffer type in data isn’t supported.
But I’m on an nvidia jetson orin. I thought VPI_IMAGE_BUFFER_EGLIMAGE is specifically meant for the jetson with the unified memory.
Could you also share the Makefile or CMakefile with us to build the sample locally?
More, do you have another CSI camera on hand?
If yes, please help us to check if this issue is camera-dependent.
find_package(vpi REQUIRED)
find_package(Argus REQUIRED)
add_executable(main main.cpp)
target_include_directories(
main
PUBLIC ${ARGUS_INCLUDE_DIRS})
target_link_libraries(
main
PUBLIC
vpi
${ARGUS_LIBRARIES})
When we test the sample, the cmake command fails with the Argus cmake file.
It seems we don’t provide such a file. Do you implement it manually?
CMake Error at CMakeLists.txt:2 (find_package):
By not providing "FindArgus.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Argus", but
CMake did not find one.
Could not find a package configuration file provided by "Argus" with any of
the following names:
ArgusConfig.cmake
argus-config.cmake
Add the installation prefix of "Argus" to CMAKE_PREFIX_PATH or set
"Argus_DIR" to a directory containing one of the above files. If "Argus"
provides a separate development package or SDK, be sure it has been
installed.
A workaround is to use NvBuffer (iNativeBuffer->createNvBuffer() & iNativeBuffer->copyToNvBuffer()).
Once you get the NvBufSurface, please select a supported format to wrap into VPI.
You can find below sample to get the NvBufSurface: