Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] RE : Re: RE : Re: About the OSD color table



Hi,


Well, I'don't understand how the DVB device handle the OSD.

You said earlier in this thread that the CLUT of the DVB card can handle 256
colors. So if I'm right, each window can handle a part of this clut.

The thing I do not understand is where I can find the code which translate a
window palette index to the real DVB palette index.

> I was under the impression that your particular device is able to
> display a full screen, 256 color OSD. If so, the abstraction I was
> suggetsing should be exactly what you would need - or am I missing
> something?
> 
You are right,

Description of my device :
OSD : width*height mmap()able buffer
CLUT : CLUT of 256 entries where each entry is defined like this 
       - index : (R,G,B,A) where 0x00 <= R,G,B,A <= 0xFF

The problem I have is to know how the DVB CLUT is split.

Example to show how I understand the color handling:

Window 0 : 4 colors
Window 1 : 8 colors
Window 2 : 4 colors

Real palette :
Colors 0 -> 3 are for window 0
Colors 4 -> 7 are for window 1
Colors 8 -> 12 are for window 2

If I'm right this time, how can I find the color depth of a single window ?

Sheers

Philippe



-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index