I’m working to optimize my camera driver using the driveworks API for pulling images for my PX2 gmsl deserializer.
I’ve noticed that dwSensorCamera_getImage(&image, DW_CAMERA_OUTPUT_CUDA_RGBA_UINT8, …) executes the YUV420PlanarToRGBAKernel on the default stream, I then use dwImage_copyConvertAsync to pull that image out into user space allocated memory.
I’ve tried using dwSensorCamera_getImage(&image, DW_CAMERA_OUTPUT_NATIVE_PROCESSED …) and then copying into a RGBA image with dwImage_copyConvertAsync and that gives me a DW_BAD_CAST. I’m assuming OUTPUT_NATIVE_PROCESSED is not a cuda image and thus the BAD_CAST.
What is the most efficient way of getting an image into a user managed RGB or RGBA buffer?