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.

DM6437 OSD Display

Hi,everyone.  i am a newbie on the DM6437. I try to use the OSD generator to show something.

I use VID0 to show a 800*480 picture on the LCD. It's already done. But when i add OSD0 to show

a color lump, i just can't understand why. 

my code show next.

VPBE_OSD_OSDWIN0ADR = (Uint32)display_bmp_array;
VPBE_OSD_OSDWIN0OFST = 1;

VPBE_OSD_OSDWIN0XP = 100;
VPBE_OSD_OSDWIN0YP = 100;

VPBE_OSD_OSDWIN0XL = 1*16;
VPBE_OSD_OSDWIN0YL = 4;
VPBE_OSD_OSDWIN0MD = 0x00c7;

#pragma DATA_SECTION(display_bmp_array,"OSD_MEM");
#pragma DATA_ALIGN(dispaly_bmp_array,64);
unsigned char display_bmp_array[] =
{

0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,

}

I change the VPBE_OSD_OSDWIN0YL vaule. It's seems correct on the frist line.

regards  

                                                                                          Johnson

  • Hi,

    Thanks for your post.

    Are you using TI EVM or your own board? From which TI software package, did you refer the above code? Is it your own code other than TI example?

    I have few suggestion on OSD as below;

    1. OSD should be configured in field/frame mode and this configures how the OSD would be reading the data from a buffer.

    2. The field/frame mode configuration for the OSD windows shouldn't be different on the VID0 and they need to match with VID0 configuration. In other words, the configuration does not depend on the video getting fed to the OSD

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question

    -------------------------------------------------------------------------------------------------------

  • Sivaraj K:

    Thank you so much for replay, I have a project on my board. Those code is in my project.

    Actually, i don't know about TI package. would you tell something more about it.

    Now, i have found the relationship between VPBE_OSD_OSDWIN0OFST and VPBE_OSD_OSDWIN0XL;

    I can draw a specified with the color choose from CLUT(int bitmap mode).

    Now my question become the color mode in RGB565. I transform the RGB888 to RGB 565.

    But, some color appear right, some appear wrong.

    For example: RBG888: R = 255. G  = 244 B = 0 (close to yellow)   transform to RGB 565 R = 31 G = 61 B = 0 (close to Yellow Green);

    Regards

    Johnson