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 Transparency Key Color

Expert 1840 points

Dear Experts,

I am working with DM8148 and dvsdk V3.5.

I modified the software using OSD transparency function. According to the TI document for OSD library using, I set up the OSD win property as below:

// White color 

#define SWOSD_OSDWHITETRANSVAL 0x80FF
#define SWOSD_OSDWHITETRANSRANGE 0x08

// black

#define SWOSD_OSDBLACKTRANSVAL 0x00
#define SWOSD_OSDBLACKTRANSRANGE 0x08

// red


#define SWOSD_OSDREDTRANSVAL 0x8476
#define SWOSD_OSDREDTRANSRANGE 0x08

SWOSD_BmpWinPrm bmpWinPrm;
bmpWinPrm.userTransparancy = SWOSD_RBOOLTRUE;

bmpWinPrm.transperencyVal = SWOSD_OSDBLACKTRANSVAL;
bmpWinPrm.transperencyRange = SWOSD_OSDBLACKTRANSRANGE;
bmpWinPrm.transperencyEnable = SWOSD_BMPTRANSENABLE;

but the system just work correctly only with BLACK color. When I change the val and range to support White and red (color key defined above), it didn't work.

I guess I might set wrong val. I have some questions as below:

1. What is correct val and range for White and Red color?

2. If my val and range above are correct, can you give me some information to explane why the software just work with BLACK?

Please help me to understand this, I really appreciate your sharing.

Best regards,