Table of Contents

VIM1S GE2D

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

Get source code

Clone the examples sravansenthiln1/ge2d-demos

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

Run examples

Taking ge2d-crop as example

Enter the example directory

$ cd src/ge2d-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

2024/06/17 03:01 · sravan