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 |
$ sudo cat /sys/kernel/debug/rkrga/driver_version
Clone the examples sravansenthiln1/rga-demos
$ git clone https://github.com/sravansenthiln1/rga-demos $ cd rga-demos
Taking rga-crop
as example
$ cd src/rga-crop
$ make
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