Hello
System:
Davinci dm6437.
Program target:
Preform histogram equalizetion on B&W video input NTSC.
Video input/output:
static PSP_VPBEOsdConfigParams vpbeOsdConfigParams = {
PSP_VPSS_FRAME_MODE, /* ffmode */
PSP_VPSS_BITS8, /* bitsPerPixel */
PSP_VPBE_YCbCr422, /* colorFormat */
(720 * (16/8u)), /* pitch */
0, /* leftMargin */
0, /* topMargin */
720, /* width */
480, /* height */
0, /* segId */
PSP_VPBE_ZOOM_IDENTITY, /* hScaling */
PSP_VPBE_ZOOM_IDENTITY, /* vScaling */
PSP_VPBE_EXP_IDENTITY, /* hExpansion */
PSP_VPBE_EXP_IDENTITY, /* vExpansion */
NULL /* appCallback */
};
static PSP_VPFECcdcConfigParams vpfeCcdcConfigParams = {
PSP_VPFE_CCDC_YCBCR_8, /* dataFlow */
PSP_VPSS_FRAME_MODE, /* ffMode */
480, /* height */
720, /* width */
(720 *2), /* pitch */
0, /* horzStartPix */
0, /* vertStartPix */
NULL, /* appCallback */
{
PSP_VPFE_TVP5146_Open, /* extVD Fxn */
PSP_VPFE_TVP5146_Close,
PSP_VPFE_TVP5146_Control,
},
0 /*segId */
};
Problem:
I'm working only on only the Y part beacuse the video is in B&W.
The video output is very noisy, there are alot of random non-relevant pixals that come and go
in some sort of periodic wave from the right to the left.
When I tried my algoritem on self made picture in the memory it worked perfectly.
But when I'm trying the algo on the input video the problem appears.
When I'm not using the algo and only displaying the input the video is displyed perfectly.
Working on pixels code:
void ApplyNewFrame(void* currentFrame)
{
int i;
for (i=0; i< (720*480*2); i++)
if ((i%2)==1)
*(((unsigned char*)currentFrame) + i) =LUT[*(((unsigned char*)currentFrame) + i)];
}
void function()
{
......
FVID_exchange(hGioVpfeCcdc, &frameBuffPtr);
//// algo here
FVID_exchange(hGioVpbeVid0, &frameBuffPtr);
...
}
Thank You