blob: 3c5b3bed04a91f79ba284279676c01c3b37a7b9b
1 | #ifndef AML_CAMERA_HARDWARE_INCLUDE_ |
2 | #define AML_CAMERA_HARDWARE_INCLUDE_ |
3 | |
4 | #ifndef ALIGN |
5 | #define ALIGN(b,w) (((b)+((w)-1))/(w)*(w)) |
6 | #endif |
7 | |
8 | void convert_rgb24_to_rgb16(uint8_t *rgb888, uint8_t *rgb565, int width, int height); |
9 | void yuyv422_to_rgb16(unsigned char *from, unsigned char *to, int width,int height); |
10 | void yuyv422_to_rgb16(unsigned char *from, unsigned char *to, int size); |
11 | void yuyv422_to_rgb24(unsigned char *buf, unsigned char *rgb, int width, int height); |
12 | void yuyv422_to_nv21(unsigned char *bufsrc, unsigned char *bufdest, int width, int height); |
13 | void yv12_adjust_memcpy(unsigned char *dst, unsigned char *src, int width, int height); |
14 | void yuyv_to_yv12(unsigned char *src, unsigned char *dst, int width, int height); |
15 | void rgb24_memcpy(unsigned char *dst, unsigned char *src, int width, int height); |
16 | void nv21_memcpy_align32(unsigned char *dst, unsigned char *src, int width, int height); |
17 | void yv12_memcpy_align32(unsigned char *dst, unsigned char *src, int width, int height); |
18 | |
19 | void nv21_memcpy_canvas1080(unsigned char *dst, unsigned char *src, int width, int height); |
20 | void yv12_memcpy_canvas1080(unsigned char *dst, unsigned char *src, int width, int height); |
21 | #endif /* AML_CAMERA_HARDWARE_INCLUDE_*/ |
22 |