aboutsummaryrefslogtreecommitdiff
path: root/frontend/cspace.h
blob: 6dbd5e0f5a4cdeb73be5c2f7e861cc62c5b71902 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __CSPACE_H__
#define __CSPACE_H__

#ifdef __cplusplus
extern "C"
{
#endif

void bgr555_to_rgb565(void *dst, const void *src, int bytes);
void bgr888_to_rgb888(void *dst, const void *src, int bytes);
void bgr888_to_rgb565(void *dst, const void *src, int bytes);
void rgb888_to_rgb565(void *dst, const void *src, int bytes);

void bgr555_to_rgb565_b(void *dst, const void *src, int bytes,
	int brightness2k); // 0-0x0800

void bgr_to_uyvy_init(void);
void rgb565_to_uyvy(void *d, const void *s, int pixels);
void bgr555_to_uyvy(void *d, const void *s, int pixels);
void bgr888_to_uyvy(void *d, const void *s, int pixels);

#ifdef __cplusplus
}
#endif

#endif /* __CSPACE_H__ */