comparison postproc/rgb2rgb.h @ 2732:ae79207a3055

Move yuv2rgb to postprocess
author nick
date Tue, 06 Nov 2001 11:22:40 +0000
parents 5bba527c9a4c
children 5e5cba50b1d0
comparison
equal deleted inserted replaced
2731:214f79969a80 2732:ae79207a3055
1 /* 1 /*
2 * 2 *
3 * rgb2rgb.h, Software RGB to RGB convertor 3 * rgb2rgb.h, Software RGB to RGB convertor
4 * 4 * pluralize by Software PAL8 to RGB convertor
5 * Software YUV to YUV convertor
6 * Software YUV to RGB convertor
5 */ 7 */
6 8
7 #ifndef RGB2RGB_INCLUDED 9 #ifndef RGB2RGB_INCLUDED
8 #define RGB2RGB_INCLUDED 10 #define RGB2RGB_INCLUDED
9 11
26 unsigned int lumStride, unsigned int chromStride, unsigned int dstStride); 28 unsigned int lumStride, unsigned int chromStride, unsigned int dstStride);
27 extern void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, 29 extern void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
28 unsigned int width, unsigned int height, 30 unsigned int width, unsigned int height,
29 unsigned int lumStride, unsigned int chromStride, unsigned int srcStride); 31 unsigned int lumStride, unsigned int chromStride, unsigned int srcStride);
30 32
33 #define MODE_RGB 0x1
34 #define MODE_BGR 0x2
35
36 typedef void (* yuv2rgb_fun) (uint8_t * image, uint8_t * py,
37 uint8_t * pu, uint8_t * pv,
38 int h_size, int v_size,
39 int rgb_stride, int y_stride, int uv_stride);
40
41 extern yuv2rgb_fun yuv2rgb;
42
43 void yuv2rgb_init (int bpp, int mode);
44
31 #endif 45 #endif