This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OSD Window 0

Hello:
I am using a DM6437 / with DSP/BIOS.

I have migrated the osd Win0 logo code from the SPRAAP3A "How to Use VPBE adn VPFE Driver" example sourcecode (configureOsdWin0PTIDSP_RGB565) over to the video preview example source code.

However, when I run and output to the TV,  the logo seems to have a pitch problem. 

I kept the logo the same size, 146x146 with a 320 byte pitch to meet the 32 byte - aligment constraints mentioned in the OSD register descrption for the OSD SPRU952 Video Back end document.   (OSD Window 0 Offset Register OSDWIN0OFST).  This code is virtually unchanged from its original use in the VPBEExample.  

I double checked that the buffer allocated by FVID_create is 32 byte aligned.

Any ideas what the problem may be?  Is there some dependancy on the Video 0 Window that it is being overlayed upon.   (The OSD0 is placing it inside the WIN0).

Thanks,

B

  • This problem looked like a pitch problem however it turned out to be a dirty cache.  The next line appears to have fixed it.

    BCACHE_wbInv(osd->frame.frameBufferPtr, osd->lines* osd->pitch, TRUE);

    B