summaryrefslogtreecommitdiff
path: root/utils/util.h (plain)
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
8void convert_rgb24_to_rgb16(uint8_t *rgb888, uint8_t *rgb565, int width, int height);
9void yuyv422_to_rgb16(unsigned char *from, unsigned char *to, int width,int height);
10void yuyv422_to_rgb16(unsigned char *from, unsigned char *to, int size);
11void yuyv422_to_rgb24(unsigned char *buf, unsigned char *rgb, int width, int height);
12void yuyv422_to_nv21(unsigned char *bufsrc, unsigned char *bufdest, int width, int height);
13void yv12_adjust_memcpy(unsigned char *dst, unsigned char *src, int width, int height);
14void yuyv_to_yv12(unsigned char *src, unsigned char *dst, int width, int height);
15void rgb24_memcpy(unsigned char *dst, unsigned char *src, int width, int height);
16void nv21_memcpy_align32(unsigned char *dst, unsigned char *src, int width, int height);
17void yv12_memcpy_align32(unsigned char *dst, unsigned char *src, int width, int height);
18
19void nv21_memcpy_canvas1080(unsigned char *dst, unsigned char *src, int width, int height);
20void yv12_memcpy_canvas1080(unsigned char *dst, unsigned char *src, int width, int height);
21#endif /* AML_CAMERA_HARDWARE_INCLUDE_*/
22