Hi,
I am trying to add window masking (a rectangular portion of the video is always masked) feature to IPNC ( v1.5 ) in addition to face masking feature. My logic is this - Apply window masking before face detection logic runs.
To this end, I added a 'DRV_frameCopy' function call to the function 'VIDEO_fdTskRun' in the file 'videoFaceDetectThr.c ' . I am using the virtual address provided to the variable 'pBufInfo' in the function 'VIDEO_fdTskRun' by 'OSA_bufGetFull' function . But when I use the virtual address as argument to 'DRV_frameCopy' , video is garbled.
1. My function call - VIDEO_windowMasking(pBufInfo);
2. Assigning the Virtual address to be used in -DRV_frameCopy' -> frameCopy.dstVirtAddr = pBufInfo->virtAddr + VIDEO_BUF_HEADER_SIZE;
3. Calling 'DRV_frameCopy' function - DRV_frameCopy(NULL,&frameCopy);
Can you please tell me what I am doing wrong?
Sudheesh