34 lines
718 B
C++
34 lines
718 B
C++
#ifndef _POSE_BODY_RGA_H_
|
|
#define _POSE_BODY_RGA_H_
|
|
|
|
#define DSTWidth 640
|
|
#define DSTHeight 640
|
|
|
|
typedef struct _rga_frame_info_t {
|
|
unsigned long long seq;
|
|
int src_width;
|
|
int src_height;
|
|
int src_h_stride;
|
|
int src_v_stride;
|
|
int dst_width;
|
|
int dst_height;
|
|
int dst_x;
|
|
int dst_y;
|
|
int dst_rect_width;
|
|
int dst_rect_height;
|
|
} rga_frame_info_t;
|
|
|
|
class rga_client_t {
|
|
public:
|
|
rga_client_t() {};
|
|
int convert(unsigned char *src, int sw, int sh, int swstride, int shstride, char *out);
|
|
};
|
|
|
|
extern rga_client_t rga_client;
|
|
|
|
void initRkRga();
|
|
void deinitRkRga();
|
|
void rga_get_last_frame_info(rga_frame_info_t *out);
|
|
|
|
#endif
|