libweed 0.0.3
weed-palettes.h
Go to the documentation of this file.
00001 /* WEED is free software; you can redistribute it and/or
00002    modify it under the terms of the GNU Lesser General Public
00003    License as published by the Free Software Foundation; either
00004    version 3 of the License, or (at your option) any later version.
00005 
00006    Weed is distributed in the hope that it will be useful,
00007    but WITHOUT ANY WARRANTY; without even the implied warranty of
00008    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00009    Lesser General Public License for more details.
00010 
00011    You should have received a copy of the GNU Lesser General Public
00012    License along with this source code; if not, write to the Free Software
00013    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00014 
00015 
00016    Weed is developed by:
00017 
00018    Gabriel "Salsaman" Finch - http://lives.sourceforge.net
00019 
00020    mainly based on LiViDO, which is developed by:
00021 
00022 
00023    Niels Elburg - http://veejay.sf.net
00024 
00025    Gabriel "Salsaman" Finch - http://lives.sourceforge.net
00026 
00027    Denis "Jaromil" Rojo - http://freej.dyne.org
00028 
00029    Tom Schouten - http://zwizwa.fartit.com
00030 
00031    Andraz Tori - http://cvs.cinelerra.org
00032 
00033    reviewed with suggestions and contributions from:
00034 
00035    Silvano "Kysucix" Galliani - http://freej.dyne.org
00036 
00037    Kentaro Fukuchi - http://megaui.net/fukuchi
00038 
00039    Jun Iio - http://www.malib.net
00040 
00041    Carlo Prelz - http://www2.fluido.as:8080/
00042 
00043 */
00044 
00045 /* (C) Gabriel "Salsaman" Finch, 2005 - 2010 */
00046 
00047 
00048 #ifndef __WEED_PALETTES_H__
00049 #define __WEED_PALETTES_H__
00050 
00051 #ifdef __cplusplus
00052 extern "C"
00053 {
00054 #endif /* __cplusplus */
00055 
00056 
00057 /* Palette types */
00058 /* RGB palettes */
00059 #define WEED_PALETTE_END 0
00060 #define WEED_PALETTE_RGB888 1
00061 #define WEED_PALETTE_RGB24 1
00062 #define WEED_PALETTE_BGR888 2
00063 #define WEED_PALETTE_BGR24 2
00064 #define WEED_PALETTE_RGBA8888 3
00065 #define WEED_PALETTE_RGBA32 3
00066 #define WEED_PALETTE_ARGB8888 4
00067 #define WEED_PALETTE_ARGB32 4
00068 #define WEED_PALETTE_RGBFLOAT 5
00069 #define WEED_PALETTE_RGBAFLOAT  6
00070 #define WEED_PALETTE_BGRA8888 7
00071 #define WEED_PALETTE_BGRA32 7
00072 
00073 /* YUV palettes */
00074 #define WEED_PALETTE_YUV422P 513
00075 #define WEED_PALETTE_YV16 513
00076 #define WEED_PALETTE_YUV420P 514
00077 #define WEED_PALETTE_YV12 514
00078 #define WEED_PALETTE_YVU420P 515
00079 #define WEED_PALETTE_I420 515
00080 #define WEED_PALETTE_IYUV 515
00081 #define WEED_PALETTE_YUV444P 516
00082 #define WEED_PALETTE_YUVA4444P 517
00083 #define WEED_PALETTE_YUYV8888 518
00084 #define WEED_PALETTE_YUYV 518
00085 #define WEED_PALETTE_YUY2 518
00086 #define WEED_PALETTE_UYVY8888 519
00087 #define WEED_PALETTE_UYVY 519
00088 #define WEED_PALETTE_YUV411 520
00089 #define WEED_PALETTE_IYU1 520
00090 #define WEED_PALETTE_YUV888 521
00091 #define WEED_PALETTE_IYU2 521
00092 #define WEED_PALETTE_YUVA8888 522
00093 
00094 /* Alpha palettes */
00095 #define WEED_PALETTE_A1 1025
00096 #define WEED_PALETTE_A8 1026
00097 #define WEED_PALETTE_AFLOAT 1027
00098 
00099 
00100 /* YUV sampling types */
00101 // see http://www.mir.com/DMG/chroma.html
00102 #define WEED_YUV_SAMPLING_DEFAULT   0
00103 #define WEED_YUV_SAMPLING_JPEG  0   ///< jpeg/mpeg1 - samples centered horizontally: 0.5, 2.5 etc.
00104 #define WEED_YUV_SAMPLING_MPEG   1 ///< mpeg2 - samples aligned horizontally: 0,2,4 etc;
00105 #define WEED_YUV_SAMPLING_DVPAL  2 ///< separated Cb and Cr
00106 #define WEED_YUV_SAMPLING_DVNTSC  3 ///< not used - only for 411 planar
00107 
00108 /* YUV clamping types */
00109 #define WEED_YUV_CLAMPING_CLAMPED 0
00110 #define WEED_YUV_CLAMPING_UNCLAMPED 1
00111 
00112 /* YUV subspace types */
00113 #define WEED_YUV_SUBSPACE_YUV 0
00114 #define WEED_YUV_SUBSPACE_YCBCR 1
00115 #define WEED_YUV_SUBSPACE_BT709 2
00116 
00117 
00118 #ifdef __cplusplus
00119 }
00120 #endif /* __cplusplus */
00121 
00122 #endif
 All Data Structures Files Functions Variables Typedefs Defines