Main Page | Modules | Data Structures | File List | Data Fields | Globals

Palettes


Detailed Description

Livido Palettes, also known as supported colorspace schemes

In Livido a filter can specify more than one supported palette.

Float RGBA 128bit is the mandatory palette, so that for each plugin we can have a pure numerical clear reference implementation.

Each plugin can then offer support for other optional palettes, plugin programmers are strongly encouraged to re-contribute such additions to plugins so that we can keep our main repository up to date.

If you want to add a palette to this list please contact us on <piksel-dev ...\@//... bek.no> anyway you can add custom palettes above the 2048 number for your hacking convenience.

GUIDELINE: Palette names should be unambiguous. We will add them when we have real applications using them, not because of theoretical ideas.


Defines

#define LIVIDO_PALETTE_RGB24   1
#define LIVIDO_PALETTE_RGB888   1
#define LIVIDO_PALETTE_RGB32   2
#define LIVIDO_PALETTE_RGBA8888   2
#define LIVIDO_PALETTE_RGB161616   3
#define LIVIDO_PALETTE_RGBA16161616   4
#define LIVIDO_PALETTE_YUV888   5
#define LIVIDO_PALETTE_YUVA8888   6
#define LIVIDO_PALETTE_YUV161616   7
#define LIVIDO_PALETTE_YUVA16161616   8
#define LIVIDO_PALETTE_YUV422P   9
#define LIVIDO_PALETTE_YUV420P   10
#define LIVIDO_PALETTE_YUV444P   11
#define LIVIDO_PALETTE_A8   12
#define LIVIDO_PALETTE_A16   13
#define LIVIDO_PALETTE_RGBFLOAT   14
#define LIVIDO_PALETTE_RGBAFLOAT   15
#define LIVIDO_PALETTE_AFLOAT   16
#define LIVIDO_PALETTE_BGR888   17
#define LIVIDO_PALETTE_YUYV8888   18
#define LIVIDO_PALETTE_UYVY8888   19
#define LIVIDO_PALETTE_RGB565   20
#define LIVIDO_PALETTE_RGBX8888   21
#define LIVIDO_PALETTE_A4   22
#define LIVIDO_PALETTE_A2   23
#define LIVIDO_PALETTE_A1   24
#define LIVIDO_PALETTE_FIRST_CUSTOM   2048
#define LIVIDO_PALETTE_END   (0x0)
#define LIVIDO_PALETTE_BITS(p)
 macro to check how many bits is a palette

#define LIVIDO_PALETTE_IS_PLANAR(p)
 macro to check if the palette is plannar

#define LIVIDO_PALETTE_IS_CUSTOM(p)
 macro to check if the palette is custom


Define Documentation

#define LIVIDO_PALETTE_BITS  ) 
 

Value:

( \
        (p == LIVIDO_PALETTE_RGBAFLOAT)    ?  128 : \
        (p == LIVIDO_PALETTE_RGBFLOAT)     ?  96  : \
        (p == LIVIDO_PALETTE_RGBA16161616) ||       \
        (p == LIVIDO_PALETTE_YUVA16161616) ?  64  : \
        (p == LIVIDO_PALETTE_RGB161616)    ||       \
        (p == LIVIDO_PALETTE_YUV161616)    ?  48  : \
        (p == LIVIDO_PALETTE_RGBA8888)     ||       \
        (p == LIVIDO_PALETTE_RGBX8888)     ||       \
        (p == LIVIDO_PALETTE_YUVA8888)     ||       \
        (p == LIVIDO_PALETTE_AFLOAT)       ||       \
        (p == LIVIDO_PALETTE_YUV444P)      ?  32  : \
        (p == LIVIDO_PALETTE_RGB888)       ||       \
        (p == LIVIDO_PALETTE_BGR888)       ||       \
        (p == LIVIDO_PALETTE_YUV888)       ?  24  : \
        (p == LIVIDO_PALETTE_YUV422P)      ||       \
        (p == LIVIDO_PALETTE_YUYV8888)     ||       \
        (p == LIVIDO_PALETTE_UYVY8888)     ||       \
        (p == LIVIDO_PALETTE_RGB565)       ||       \
        (p == LIVIDO_PALETTE_A16)          ?  16  : \
        (p == LIVIDO_PALETTE_YUV420P)      ?  12  : \
        (p == LIVIDO_PALETTE_A8)           ?  8   : \
        (p == LIVIDO_PALETTE_A4)           ?  4   : \
        (p == LIVIDO_PALETTE_A2)           ?  2   : \
        (p == LIVIDO_PALETTE_A1)           ?  1   : 0)
macro to check how many bits is a palette

Definition at line 234 of file livido.h.

#define LIVIDO_PALETTE_IS_CUSTOM  ) 
 

Value:

( \
        (p&2048) ? 1 : 0 )
macro to check if the palette is custom

Definition at line 296 of file livido.h.

#define LIVIDO_PALETTE_IS_PLANAR  ) 
 

Value:

( \
        (p == LIVIDO_PALETTE_YUV444P)      ||       \
        (p == LIVIDO_PALETTE_YUV422P)      ||       \
        (p == LIVIDO_PALETTE_YUV420P)      ?  1   : 0 )
macro to check if the palette is plannar

Definition at line 286 of file livido.h.


Generated on Wed Apr 6 20:21:07 2005 for LiViDO by doxygen 1.3.4