Overview of RGA IM2D API features
mainThe librga.so library performs 2D graphics operations using the rga_info configuration. The modern API provides several key advantages for developers:
- Familiar Interface: API definitions are modeled after common 2D graphics libraries like OpenCV and MATLAB to reduce the learning curve.
- Hardware Abstraction: Includes query functions to check hardware versions, maximum resolutions, and supported image formats, preventing compatibility issues across different Rockchip chips.
- Compound Operations: Supports
improcessAPIs to perform multiple 2D operations in a single pass using predefined usage sets. - Buffer Management: Requires processing input/output buffers via
wrapbuffer_handleto populaterga_buffer_twith resolution and format information before operations. - Job-based Execution: Supports binding multiple operations into an RGA image task (using
imbeginJobandimendJob) which are submitted to the driver and executed sequentially.