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
| #ifndef __RGA_FUNC_H__
| #define __RGA_FUNC_H__
|
| #include <dlfcn.h>
| #include "RgaApi.h"
|
| #ifdef __cplusplus
| extern "C" {
| #endif
|
| typedef int(* FUNC_RGA_INIT)();
| typedef void(* FUNC_RGA_DEINIT)();
| typedef int(* FUNC_RGA_BLIT)(rga_info_t *, rga_info_t *, rga_info_t *);
|
| typedef struct _rga_context{
| void *rga_handle;
| FUNC_RGA_INIT init_func;
| FUNC_RGA_DEINIT deinit_func;
| FUNC_RGA_BLIT blit_func;
| } rga_context;
|
| int RGA_init(rga_context* rga_ctx);
|
| void img_resize_fast(rga_context *rga_ctx, int src_fd, int src_w, int src_h, uint64_t dst_phys, int dst_w, int dst_h);
|
| void img_resize_slow(rga_context *rga_ctx, void *src_virt, int src_w, int src_h, void *dst_virt, int dst_w, int dst_h);
|
| int RGA_deinit(rga_context* rga_ctx);
|
| #ifdef __cplusplus
| }
| #endif
| #endif/*__RGA_FUNC_H__*/
|
|