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 <[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

猜你喜欢

转载自blog.csdn.net/yinsui1839/article/details/128441649