/Avc/yuv2rgb.h
C Header | 51 lines | 28 code | 9 blank | 14 comment | 0 complexity | 4c7def4d95875efeab9aa1c94b1761a0 MD5 | raw file
Possible License(s): BSD-3-Clause
- /* YUV-> RGB conversion code.
- *
- * Copyright (C) 2011 Robin Watts (robin@wss.co.uk) for Pinknoise
- * Productions Ltd.
- *
- * Licensed under the BSD license. See 'COPYING' for details of
- * (non-)warranty.
- *
- */
- #include <stdint.h>
- #ifndef YUV2RGB_H
- #define YUV2RGB_H
- /* Define these to something appropriate in your build */
- //typedef unsigned int uint32_t;
- //typedef signed int int32_t;
- //typedef unsigned short uint16_t;
- //typedef unsigned char uint8_t;
- extern const uint32_t yuv2rgb565_table[];
- extern const uint32_t yuv2bgr565_table[];
- void yuv420_2_rgb888(uint8_t *dst_ptr,
- const uint8_t *y_ptr,
- const uint8_t *u_ptr,
- const uint8_t *v_ptr,
- int32_t width,
- int32_t height,
- int32_t y_span,
- int32_t uv_span,
- int32_t dst_span,
- const uint32_t *tables,
- int32_t dither);
- void yuv420_2_rgb8888(uint8_t *dst_ptr,
- const uint8_t *y_ptr,
- const uint8_t *u_ptr,
- const uint8_t *v_ptr,
- int32_t width,
- int32_t height,
- int32_t y_span,
- int32_t uv_span,
- int32_t dst_span,
- const uint32_t *tables,
- int32_t dither);
- #endif /* YUV2RGB_H */