colormodels.h
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 #ifndef COLORMODELS_H
00026 #define COLORMODELS_H
00027
00028 #pragma GCC visibility push(default)
00029
00038
00039 #define BC_COMPRESSED 1
00040
00047 #define BC_RGB565 2
00048
00055 #define BC_BGR565 3
00056
00062 #define BC_BGR888 4
00063
00069 #define BC_BGR8888 5
00070
00077 #define BC_RGB888 6
00078
00084 #define BC_RGBA8888 7
00085
00091 #define BC_RGB161616 8
00092
00098 #define BC_RGBA16161616 9
00099
00105 #define BC_YUVA8888 10
00106
00112 #define BC_YUV422 13
00113
00114
00121 #define BC_YUV420P 14
00122
00128 #define BC_YUV422P 15
00129
00135 #define BC_YUV444P 16
00136
00142 #define BC_YUV411P 17
00143
00144
00150 #define BC_YUVJ420P 18
00151
00157 #define BC_YUVJ422P 19
00158
00164 #define BC_YUVJ444P 20
00165
00166
00172 #define BC_YUV422P16 21
00173
00179 #define BC_YUV444P16 22
00180
00181
00182
00183
00184 #define FOURCC_YV12 0x32315659
00185 #define FOURCC_YUV2 0x32595559
00186 #define FOURCC_I420 0x30323449
00187
00188
00189
00190
00191 #ifdef __cplusplus
00192 extern "C" {
00193 #endif
00194
00195 int cmodel_calculate_pixelsize(int colormodel);
00196 int cmodel_calculate_datasize(int w, int h, int bytes_per_line, int color_model);
00197 int cmodel_calculate_max(int colormodel);
00198 int cmodel_components(int colormodel);
00199 int cmodel_is_yuv(int colormodel);
00200
00201 void cmodel_transfer(unsigned char **output_rows,
00202 unsigned char **input_rows,
00203 int in_x,
00204 int in_y,
00205 int in_w,
00206 int in_h,
00207 int out_w,
00208 int out_h,
00209 int in_colormodel,
00210 int out_colormodel,
00211 int in_rowspan,
00212 int out_rowspan,
00213 int in_rowspan_uv,
00214 int out_rowspan_uv );
00215
00216 int cmodel_bc_to_x(int color_model);
00217
00218 int cmodel_is_planar(int color_model);
00219
00220
00221
00222
00223
00224 #ifdef __cplusplus
00225 }
00226 #endif
00227
00228 #pragma GCC visibility pop
00229
00230 #endif