diff options
Diffstat (limited to 'postproc/rgb2rgb.h')
-rw-r--r-- | postproc/rgb2rgb.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/postproc/rgb2rgb.h b/postproc/rgb2rgb.h index 4851725703..771ccb8bb2 100644 --- a/postproc/rgb2rgb.h +++ b/postproc/rgb2rgb.h @@ -1,7 +1,9 @@ /* * * rgb2rgb.h, Software RGB to RGB convertor - * + * pluralize by Software PAL8 to RGB convertor + * Software YUV to YUV convertor + * Software YUV to RGB convertor */ #ifndef RGB2RGB_INCLUDED @@ -28,4 +30,16 @@ extern void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t unsigned int width, unsigned int height, unsigned int lumStride, unsigned int chromStride, unsigned int srcStride); +#define MODE_RGB 0x1 +#define MODE_BGR 0x2 + +typedef void (* yuv2rgb_fun) (uint8_t * image, uint8_t * py, + uint8_t * pu, uint8_t * pv, + int h_size, int v_size, + int rgb_stride, int y_stride, int uv_stride); + +extern yuv2rgb_fun yuv2rgb; + +void yuv2rgb_init (int bpp, int mode); + #endif |