Hi,
I am using IPNC RDK version 5.0 provided by APPRO for DM365 - OV9715 IPNC.
I am integrating OV7955 sensor to it which gives the image in YUV422yuyv format.I am able to get this YUV422 image from the isif module.
I want to encode YUV422 data. Since the encoder doesn't support YUV422yuyv format, i am trying to convert YUV422 to YUV420 using the resizer.
The following is my resizer setting:
DRV_ReszRunPrm prm;
DRV_ReszOutPrm outPrm;
prm.inType = DRV_DATA_FORMAT_YUV422;
prm.inVirtAddr = OSA_cmemAlloc(bufSize, 32);
prm.inPhysAddr = OSA_cmemGetPhysAddr(prm.inVirtAddr);
prm.inStartX = 0;
prm.inStartY = 0;
prm.inWidth = 640;
prm.inHeight = 480;
prm.inOffsetH= OSA_align(prm.inWidth, 16);
prm.inOffsetV= prm.inHeight;
prm.enableInvAlaw = FALSE;
prm.enableInvDpcm = FALSE;
prm.clkDivM = 10;
prm.clkDivN = 80;
prm.pOut[0] = &outPrm;
prm.pOut[1] = NULL;
outPrm.outType = DRV_DATA_FORMAT_YUV420;
outPrm.flipH = FALSE;
outPrm.flipV = FALSE;
outPrm.outVirtAddr = OSA_cmemAlloc(bufSize, 32);
outPrm.outPhysAddr = OSA_cmemGetPhysAddr(outPrm.outVirtAddr);
outPrm.outWidth = 640;
outPrm.outHeight = 480;
outPrm.outOffsetH = OSA_align(outPrm.outWidth, 32);
outPrm.outOffsetV = outPrm.outHeight;
I am attaching the screen shots of both YUV 422 and YUV 420 images.
YUV422:
YUV420:
Can anyone please tell what is the problem? Why is YUV 420 image coming like this? Is the resizer configuration proper?
Thanks and Regards,
Arpitha Mohan