📄 colorspace.h
字号:
#ifndef _COLORSPACE_H
#define _COLORSPACE_H
#include "../global.h"
//* input color conversion functions (encoder)
typedef void (CSP_inputFunc)(uint8_t *y_out, uint8_t *u_out, uint8_t *v_out,
uint8_t *src, int width, int height, int stride);
typedef CSP_inputFunc *CSP_inputFuncPtr;
extern CSP_inputFuncPtr rgb24_to_yv12;
extern CSP_inputFuncPtr rgb32_to_yv12;
extern CSP_inputFuncPtr yuv_to_yv12;
extern CSP_inputFuncPtr yuyv_to_yv12;
extern CSP_inputFuncPtr uyvy_to_yv12;
// functions in c
CSP_inputFunc rgb24_to_yv12_c;
CSP_inputFunc rgb32_to_yv12_c;
CSP_inputFunc yuv_to_yv12_c;
CSP_inputFunc yuyv_to_yv12_c;
CSP_inputFunc uyvy_to_yv12_c;
// functions in mmx
CSP_inputFunc rgb24_to_yv12_mmx;
CSP_inputFunc rgb32_to_yv12_mmx;
CSP_inputFunc yuv_to_yv12_mmx;
CSP_inputFunc yuyv_to_yv12_mmx;
CSP_inputFunc uyvy_to_yv12_mmx;
// functions in xmm
CSP_inputFunc yuv_to_yv12_xmm;
// output color conversion functions (decoder)
void Generate_yuv2rgb_tables(void);
typedef void (CSP_outputFunc)(uint8_t *dst, int dst_stride,
uint8_t *y_src, uint8_t *v_src,
uint8_t * u_src, int y_stride,
int uv_stride, int width, int height);
typedef CSP_outputFunc* CSP_outputFuncPtr;
extern CSP_outputFuncPtr yv12_to_yuv;
extern CSP_outputFuncPtr yv12_to_yuyv;
extern CSP_outputFuncPtr yv12_to_uyvy;
extern CSP_outputFuncPtr yv12_to_rgb24;
extern CSP_outputFuncPtr yv12_to_rgb32;
extern CSP_outputFuncPtr yv12_to_rgb555;
extern CSP_outputFuncPtr yv12_to_rgb565;
CSP_outputFunc yv12_to_yuv_c;
CSP_outputFunc yv12_to_yuyv_c;
CSP_outputFunc yv12_to_uyvy_c;
CSP_outputFunc yv12_to_rgb24_c;
CSP_outputFunc yv12_to_rgb32_c;
CSP_outputFunc yv12_to_rgb555_c;
CSP_outputFunc yv12_to_rgb565_c;
#endif /* _COLORSPACE_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -