What is the layout of YUV420 N12 on GPU memory?

Hi,

IIUC, If I have an image (100 * 60), so the layout would be Y plane first : pitch * 60, and then UV as: pitch * 60 * 0.5. Please correct me if this is wrong!

After finished decoding and copied data from GPU to CPU, I called opencv function to convert the YUV image to BGR image, but the image looks very abnormal with the whole image looks green and repeated objects on the image.

Is there anyone know what the reason might be?

Thanks!