Hi Brijesh,
As an experiment, I swapped C420 and Y420 in those two lines in the overlay code / vpscore_vipResSingleChYuv422.c:
pObj->vpdmaInfo[outId].vpdmaChDataType[0] = VPSHAL_VPDMA_CHANDT_C420;
pObj->vpdmaInfo[outId].vpdmaChDataType[1] = VPSHAL_VPDMA_CHANDT_Y420;
and it kind of swapped luma and chroma channels. I attached 2 bitmap files (please ignore the image cropping issue).
As seen, in AfterSwap, now the luma channel is correctly output to the top portion of the image, but it is vertically shrunk in half. I guess it is because it went through the scalar.
So what I really need is, not to swap C420 and Y420 in the above lines (which swaps VPDMA destination addresses), but to swap d0:d7 and d8:d15 at much earlier stage in the pipeline (so that d8:d15 gees to the Scalar).
Do you have any idea where I should be looking at?
Thanks,
tamo2
BeforeSwap (luma and chroma are messed up):
AfterSwap: