According to the Spec:

"Transparency Enable for OSD Window 0

When Transparency is disabled, the entire bitmap window is blended with the video

windows according to BLND0.

Bitmap Mode

When Transparency is enabled, blending is only performed for pixels whose bitmap value is

0, according to BLND0.

RGB Mode

When Transparency is enabled and the pixel value is the same as TRANSPVAL, the YCbCr

data converted from RGB value

"

 

What I understand from your previous mail (programming 0x2007) is that you are interested in using the RGB 16 bit mode.

 

If you need to see the transparency, you need to choose the value of the color in RGB for which you need the transparency effect (which in turn takes the blending ratio from the register (OSDWIN0MD.BLND0)( make sure it is any other value than 0 or 7 to achieve blending. For a value of 0 you should the video window at the back.)

Also remember to program the TRANSPVAL (0x1c7:26F4)) with your  favorite pixel value( on RGB16) for which you wish to achieve transparency.

 

 

Hope it helps.

 

Thanks and Regards,

-Manju

 

 

 

 

 

 

 

 

 

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Ojea
Sent: Thursday, September 07, 2006 2:24 PM
To: Mandala Muneendra Kumar
Cc: [email protected]
Subject: Re: transparency

 

>  It seems your transparency value is low which u need to keep it high/max to

> view the transparency by using the function

> setOsdTransparency(unsigned char trans) which is there in ctrl.c.

 

Thanks for your reply, Mandala!

 

Do you mean bitmap window blending? (an effect you can see in sample

applications like 'encodedecode' and so on where you can adjust video

and OSD window contribution)

 

What I really need is : "when a bitmap pixel is 0, there will be no

blending for that corresponding video pixel". So using that effect you

will see video "behind" your graphics, but no blending between video

and graphics.

 

To archieve that, I thought writing a '1' to TEO bit in OSDWIN0MD

register will be enough, but actually I am not seeing the effect.

Don't know why !

 

Carlos

_______________________________________________

Davinci-linux-open-source mailing list

[email protected]

http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to