#ifndef __RGA_FUNC_H__ #define __RGA_FUNC_H__ #include #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 w_offset, int h_offset, RgaSURF_FORMAT color, bool add_extra_sz_w, bool add_extra_sz_h); int RGA_deinit(rga_context* rga_ctx); #ifdef __cplusplus } #endif #endif/*__RGA_FUNC_H__*/