00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 #ifndef __WEED_PALETTES_H__
00049 #define __WEED_PALETTES_H__
00050
00051 #ifdef __cplusplus
00052 extern "C"
00053 {
00054 #endif
00055
00056
00057
00058
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
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
00095 #define WEED_PALETTE_A1 1025
00096 #define WEED_PALETTE_A8 1026
00097 #define WEED_PALETTE_AFLOAT 1027
00098
00099
00100
00101
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
00109 #define WEED_YUV_CLAMPING_CLAMPED 0
00110 #define WEED_YUV_CLAMPING_UNCLAMPED 1
00111
00112
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
00121
00122 #endif