Khadas VIMs provide a GE2D (Graphics Engine 2D) onboard for fast 2D graphics operations, such as cropping, resizing, rotating, etc.
We can use the GE2D for image graphics processing.
Follow the table for suitable runtime platform
board | Linux Kernel (BSP) | OS |
---|---|---|
VIM3 | 5.15 | Ubuntu 22.04 |
VIM3L | 5.15 | Ubuntu 22.04 |
VIM1S | 5.15 | Ubuntu 22.04 |
VIM4 | 5.15 | Ubuntu 22.04 |
Clone the examples sravansenthiln1/ge2d-demos
$ git clone https://github.com/sravansenthiln1/ge2d-demos $ cd ge2d-demos
Taking ge2d-crop
as example
$ cd src/ge2d-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