This is an old revision of the document!
The Edge-2L includes an onboard RGA (Raster Graphics Accelerator) hardware unit for accelerating 2D graphics operations such as cropping, scaling, rotation, and format conversion.
This accelerator can be utilized for efficient image processing tasks.
Refer to the following table for supported runtime platforms:
| board | Linux Kernel (BSP) | OS |
|---|---|---|
| Edge-2L | 6.1 | Ubuntu 24.04 |
Verify the installed RGA driver version:
$ sudo cat /sys/kernel/debug/rkrga/driver_version
Clone the demonstration repository from GitHub: sravansenthiln1/rga-demos
$ git clone https://github.com/sravansenthiln1/rga-demos $ cd rga-demos
The following steps use the rga-crop example to demonstrate the workflow.
Navigate to the crop example source directory:
$ cd src/rga-crop
Build the example using the provided Makefile:
$ make
1. Copy the sample input image for this example:
$ cp ../../samples/input_rgba.bmp .
2. Execute the compiled program:
$ ./main
Upon successful execution, the processed output image will be saved as output.bmp in the current directory.