Hi ..
I am working on the Video_Preview example given in DM6437 and it is working fine. I am trying to use image library function in Video_preview for image prociing /modification. The program is running on the board but I am not getting the desired output. All I am getting is the "colored Stipes" on the screen. I am not able to figure out whether it is a Cache problem or any other issue. I also Tried Sobel Operator and and the result was the same.
we included following in the video_preview.c file.
#include "IMG_erode_bin.h"
/* Header file for the C function */
void IMG_erode_bin_c(const unsigned char * in_data, unsigned char * out_data, const char * mask, int cols);
const char mask[9] =
{
-1, 1, -1,
1, 1, 1,
-1, 1, -1
};
unsigned char out_data_c[720*480*2];
and added following code where we we do the image processing.
IMG_erode_bin((void*)(frameBuffPtr->frame.frameBufferPtr),out_data_c,mask, 720);
FVID_exchange(hGioVpbeVid0, &out_data_c);//&frameBuffPtr);
Also we tried to copy the data from out_data_c to (frameBuffPtr->frame.frameBufferPtr)
and tried to display the frame but we did not get correct results.
We appreciate the time and help.
Thank you,
Jalwinder and Shriram