Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:edge2:applications:rkrga

Edge2 RGA

Edge2 provides a RGA (Raster Graphics Accelerator) onboard for fast 2D graphics operations, such as cropping, resizing, rotating, etc.

We can use the RGA for image graphics processing.

Follow the table for suitable runtime platform

board Linux Kernel (BSP) OS
Edge2 5.10 Ubuntu 22.04

Check RGA details

$ sudo cat /sys/kernel/debug/rkrga/driver_version

Get source code

Clone the examples sravansenthiln1/rga-demos

$ git clone https://github.com/sravansenthiln1/rga-demos
$ cd rga-demos

Run examples

Taking rga-crop as example

Enter the example directory

$ cd src/rga-crop

Compile the application

$ make

Run the application

Copy the sample input image for this example.

$ cp ../../samples/input_rgba.bmp .

Run the application.

$ ./main

The output image can be observed at output.bmp

Last modified: 2024/06/17 02:53 by sravan