RGA (Raster Graphic Acceleration Unit)是一个独立的2D硬件加速器,可用于加速点/线绘制,执行图像缩放、旋转、bitBlt、alpha混合等常见的2D图形操作。
首先下载rga源码
官方的测试demo一般不能正常使用,所以可以用调试好的
解压缩放入到mpp-develop源码mpp目录下,
对应CmakeList.txt 加入add_subdirectory(project/librga-main)
调用:
RgaContron.h
/*
* Copyright (C) 2020 Rockchip Electronics Co., Ltd.
* Authors:
* PutinLee <[email protected]>
* Cerf Yu <[email protected]>
*
* 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