hi ,
i want to change the the pixel value in OSD demo , i make a change in AlgLink_OsdalgProcessFrame() function with red color as follow
for(winId=0; winId<pChObj->numWindows; winId++)
{
if(!pChObj->osdWinObj[winId].enableWin)
continue;
Vps_printf("$$$$$$$$$$$$$$$$$$$$$ enableWin $$$$$$$$$$$$$$$$$$$$$\n");
/* YUV422i or YUV420SP - Y-plane processing */
int i=0,j=0;
UInt8 *pBufferStart = pFrame->addr[0][0];
UInt8 *pBuffer;
for (i= 0; i < pFrameInfo->rtChInfo.height;i++)
{
pBuffer =pBufferStart + (i * pFrameInfo->rtChInfo.width);
for (j = 0; j< pFrameInfo->rtChInfo.width/2; j++)
{
*(pBuffer + 0)=0;
*(pBuffer + 1)=0;
*(pBuffer + 2)=0;
*(pBuffer + 3)=0;
pBuffer += 4;
}
}
pSwOsdObj->videoWindowAddr = pFrame->addr[0][0];
................
}
but there is no change in display ? what should i do ?