The output of decoder is in NV12 format. ie. YUV420SP . Y will be in a separate buffer and UV will be in a separate buffer. You can google for details on the format but the issue you should not copy the buffer as w x h x 1.5 from pBuf->phyAddr[0][0] .
Copy should be
pitch[0] x h from pBuf->phyAddr[0][0]
pitch[1] x h from pBuf->phyAddr[0][1].
[quote user="srini ramanan"]
Also is it okay to receive the output decoded data from Video-M3 using [SYSTEM_VIDEO_LINK_ID_IPC_BITS_OUT_0-> SYSTEM_HOST_LINK_ID_IPC_BITS_IN_0 ]
links instead of [SYSTEM_VIDEO_LINK_ID_IPC_FRAMES_OUT_0-> SYSTEM_HOST_LINK_ID_IPC_FRAMES_IN_0]?
[/quote]
- No you should uses only IpcFrames and not IpcBits to export video frames.