IMX8/Multimedia/GPU/OpenVG

From RidgeRun Developer Wiki
< IMX8‎ | Multimedia‎ | GPU
Revision as of 20:50, 23 October 2018 by Jcruz (talk | contribs) (Created page with "=Demo Examples= There are some examples on [https://github.com/NXPmicro/gtec-demo-framework this repository] that can be used to check the basics required to understand how to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Demo Examples

There are some examples on this repository that can be used to check the basics required to understand how to write applications on OpenCL. You can find those examples on the /opt/imx-gpu-sdk/OpenVG directory.

Folder Content

  • BitmapFont: This sample shows how to render text using a bitmap font in OpenVG.
BitmapFont Output
BitmapFont Output
  • CoverFlow: This sample shows how to use image data in OpenVG. This can be seen as an OpenGL Texture on a Quad. A vgImage is a rectangular shape populated with color information from an image. This sample also shows that it's possible to transform those images as the paths in previous samples and also to apply special filters like Gaussian Blurs.
CoverFlow Output
CoverFlow Output
  • DFGraphicsBasic2D: This sample shows how to use the Demo Frameworks 'basic' 2D rendering capabilities that work across all backends. The basic2D interface allows to render ASCII strings using a system provided font and draw colored points. The functionality in Basic2D is used internally in the framework to render the profiling overlays like the frame rate counter and graph.
DFGraphicsBasic2D Output
DFGraphicsBasic2D Output
  • Example1: This sample shows how to draw lines using OpenVG. It introduces the concept of points and segments and how to integrate them into paths that describe the final shapes that are rendered on screen.
Example1 Output
Example1 Output
  • Example2: This sample builds on top of 'Example1' and shows how to add color to the path strokes and the path fill area by introducing the concept of "paints" in OpenVG.
Example2 Output
Example2 Output
  • Example3: This sample will introduce the transformation functions on OpenVG as well as the 'scissoring' function. Each object will be animated using either 'vgTranslate', 'vgScale', 'vgShear' or 'vgRotate'. The 'scissoring' rectangle will be set at the beginning of the Draw method.
Example3 Output
Example3 Output
  • SimpleBench: This sample is a small benchmarking application for benchmarking various ways to render points in OpenVG.
  • VGStressTest: This sample executes a configurable stress test for the OpenVG API. This will often showcase the worst case power consumption.
VGStressTest Output
VGStressTest Output


[[IMX8/<Replace with "previous" page>|Previous: <Replace with "previous" page>]] Index [[IMX8/<Replace with "next" page>|Next: <Replace with "next" page>]]