RK_Rga.h 923 字节
#ifndef RK_RGA_H
#define RK_RGA_H

#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h"
#include "BaseConfig.h"

#ifdef RTK_RGA_STATUS_ON

#include "rga.h"
#include "RgaUtils.h"
#include "im2d.hpp"
#include "im2d_type.h"

typedef struct RK_RgaImage
{
    int width;   //图像的宽度
    int height;  //图像的高度
    int format;  //图像的格式
    unsigned char *buf;  //图像的缓冲区
    int buf_size; //图像缓冲区的大小

    rga_buffer_t img; //图像处理区
    rga_buffer_handle_t handle; //图像处理区句柄
    im_handle_param_t handle_param; //图像处理区参数

    im_rect rect; //处理的区域
}RK_RgaImage;


T_JZsdkReturnCode RK_Rga_ImageInit(struct RK_RgaImage **RgaImage, int width, int height, int format, 
                                    int Rect_x, int Rect_y, int Rect_w, int Rect_h);

T_JZsdkReturnCode RK_Rga_ImageDeInit(struct RK_RgaImage **RgaImage);

#endif

#endif