I am trying to modify the NVidia h265 video decode example. I am decoding the frames and I want to move them to the CPU and put them in OpenCV MAT containers for further processing, but I can’t seem to read the data properly.
If I take the NVBuffer file descriptor and pass it on to a jpeg encoder I get the correct image, so I know the buffer is good, but when I try to read the data manually with
I get an image that looks as if it contains stride errors, but I can’t find any…
Below are examples. These are one and the same frame:
What am I doing wrong here? Is the raw buffer tiled or strided in some way that I am not taking into account when reading it back?