RK系列 RGA模块移植 开发

RGA (Raster Graphic Acceleration Unit)是一个独立的2D硬件加速器,可用于加速点/线绘制,执行图像缩放、旋转、bitBlt、alpha混合等常见的2D图形操作。

首先下载rga源码

GitHub - airockchip/librga

官方的测试demo一般不能正常使用,所以可以用调试好的

解压缩放入到mpp-develop源码mpp目录下,

对应CmakeList.txt 加入add_subdirectory(project/librga-main)

调用:

RgaContron.h

/*
 * Copyright (C) 2020 Rockchip Electronics Co., Ltd.
 * Authors:
 *  PutinLee 
 *  Cerf Yu 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is d

你可能感兴趣的:(Rk开发(RK3568),c++,c语言,开发语言)