forked from oetcxiaoliu/linux-rga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RgaApi.cpp
61 lines (50 loc) · 949 Bytes
/
RgaApi.cpp
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include "RgaApi.h"
#ifdef __cplusplus
extern "C"{
#endif
#include "RockchipRga.h"
RockchipRga rkRga;
int c_RkRgaInit()
{
int ret;
ret = rkRga.RkRgaInit();
return ret;
}
int c_RkRgaGetAllocBuffer(bo_t *bo_info, int width, int height, int bpp)
{
rkRga.RkRgaGetAllocBuffer(bo_info, width, height, bpp);
return 0;
}
int c_RkRgaGetMmap(bo_t *bo_info)
{
rkRga.RkRgaGetMmap(bo_info);
return 0;
}
int c_RkRgaUnmap(bo_t *bo_info)
{
rkRga.RkRgaUnmap(bo_info);
return 0;
}
int c_RkRgaFree(bo_t *bo_info)
{
rkRga.RkRgaFree(bo_info);
return 0;
}
int c_RkRgaGetBufferFd(bo_t *bo_info, int *fd)
{
rkRga.RkRgaGetBufferFd(bo_info, fd);
return 0;
}
int c_RkRgaBlit(rga_info_t *src, rga_info_t *dst, rga_info_t *src1)
{
int ret;
ret = rkRga.RkRgaBlit(src, dst, NULL);
return ret ;
}
int c_RkRgaColorFill(rga_info_t *dst)
{
return rkRga.RkRgaCollorFill(dst);
}
#ifdef __cplusplus
}
#endif