How does dwImageCUDA store yuv data

I want to retrieve a yuv image from camera and store in dwImageCUDA. How is the yuv being store in the dptr[0]? I need to extract the data and publish using ipc. Thanks.

Found the answer:

DW_IMAGE_YUV420 	
    planar: Y0Y1Y2...U0U1U2...V0V1V2... (3 planes)
              WxH    W/2xH/2  W/2xH/2   plane size
               1        1        1      chnl count
    semi-p: Y0Y1Y2...U0V0U1V1U2V2...    (2 planes)
              WxH      W/2xH/2          plane size
               1         2              chnl count

thanks.