Dear peng2,
DwImageCUDA can store data in pitch linear(dptr) format and block linear format(cudaArray). Can you please check if data is present in dptr or cudaArray. Please use corresponding CUDA mempcpy function to copy data to buffer. A list of CUDA memcpy functions are provided at CUDA Runtime API :: CUDA Toolkit Documentation.
Hi,
Is it possible to display the buffer(pBufferContext->output) pointing to an NvMediaImage in op_stream_handler.c(ipp_capture_encode) using OpenCV directly using the NvMediaGetImageBits as suggested earlier? Do I pass the buffer to Mat in opencv in order to display ? Do you think that the above mentioned method is possible?
I wonder why you don’t want to leverage ipp_raw or ipp_yuv. These two samples are able to display the NvMediaImage, so that there is no need to copy buffer to mat.
Could you describe why cannot use these two samples?
I would like to use OpenCV in the ipp_capture_encode because of the recording options that it provides. Can you please tell if the buffer copy to Mat is possible in ipp_capture_encode in order to display it using openCV?
I am also looking to feed the NvMediaImage to OpenCV in order to run my OpenCV algorithm and I would also like to display the live images from the camera on running the instruction. Could you please suggest an example for this or a way to possibly go about executing this?
Thanks
Is it sufficient to just copy it to a buffer using NvMediaImageGetBits or follow the entire process of finding the pitch and so on as done in save.c ? I am using ipp_capture_encode.
Keen to hear