====== 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 ===== ```shell $ sudo cat /sys/kernel/debug/rkrga/driver_version ``` ===== Get source code ===== Clone the examples [[gh>sravansenthiln1/rga-demos]] ```shell $ git clone https://github.com/sravansenthiln1/rga-demos $ cd rga-demos ``` ===== Run examples ===== Taking ''rga-crop'' as example ==== Enter the example directory ==== ```shell $ cd src/rga-crop ``` ==== Compile the application ==== ```shell $ make ``` ==== Run the application ==== Copy the sample input image for this example. ```shell $ cp ../../samples/input_rgba.bmp . ``` Run the application. ```shell $ ./main ``` The output image can be observed at ''output.bmp''