Skip to content

Infineon/mtb-t2g-example-graphics-sample-drawing

Repository files navigation

Demonstration: Sample Drawing

This Demonstration is for checking the display of a graphics image generated by Qt Design Studio via TRAVEO™ T2G Virtual Display Tool. This demonstration shows the basic steps to use the Graphics Driver. It executes some simple graphical operations such as multiple color gradients.

Note: This software modifications may not work correctly. Also, copy and republishing of this software assets is inhibited.

Device

The device used in this demonstration is:

Board

The board used for testing is:

Scope of work

Through the integration of TRAVEO™ T2G MCU and Qt Design Studio design objects, it is possible to use the Qt Design Studio tool to create UI designs for TRAVEO™ microcontrollers and build and deploy them as part of the application. In this demonstration, you can display and check the graphics images designed with Qt Design Studio using TRAVEO™ T2G Virtual Display Tool.
This demonstration shows the basic steps to use the Graphics Driver. It executes some simple graphical operations such as multiple color gradients.

Introduction

Graphic Subsystems

  • Supports 2D and 2.5D (perspective warping, 3D effects) graphics rendering
  • 40-bit for internal processing (RGBA 10-bit per color channel)
  • 24-bit for interfaces (RGB 8-bit per color channel)
  • 4096 KB of embedded video RAM memory (VRAM)
  • Up to two video output interfaces supporting two displays from
    • Parallel RGB (max display size: 1600 × 600 at 80 MHz)
    • FPD-link single (max display size: 1920 × 720 at 110 MHz)
    • FPD-link dual (max display size: 2880 × 1080 at 220 MHz)
  • One Capture engine for video input processing for ITU 656 or parallel RGB/YUV or MIPI CSI-2 input
    • ITU656 (standard camera capture: up to 800 × 480)
    • RGB (max capture size 1600 × 600 at 80 MHz) or
    • Two-/four-lane MIPI CSI-2 interface (max capture size: 1920 × 720 for two lanes at 110 MHz, 2880 × 1080 for four lanes at 220 MHz)
  • Display warping on-the-fly for HUD applications
  • Direct video feed through from capture to display interface with graphics overlay
  • Composition engine for scene composition from display layers
  • Display engine for video timing generation and display functions
  • Drawing engine for acceleration of vector graphics rendering
  • Command sequencer for setup and control of the rendering process
  • Supports graphics rendering without frame buffers (on-the-fly to both displays)
  • Dual-channel FPD-Link interface for up to Wide-HD resolution video output
  • JPEG Decoder
    • Decodes JPEG images of various formats into pixel data with conformance to a subset of standard ISO/IEC10918-1
    • Color spaces supporting RGB/YUV/Grayscale
    • Supports YUV sub-sampling 4:4:4/4:2:2/4:1:1/4:2:0
    • Image size between 1×1 to 16384×16384 pixels

More details can be found in:

Hardware setup

This demonstration has been run for:

Figure 1. KIT_T2G_C-2D-6M_LITE (Top View)


No changes are required from the board's default settings.

Run the demonstration

Note: You need to download TRAVEO™ T2G Virtual Display Tool in advance. Because this demonstration uses the FX3 controller to display. Please make sure you have installed Qt Design Studio and have a valid license.

After demonstration example compilation, perform the following steps to flashing the device:

  1. Connect the board to your PC using the provided USB cable through the KitProg3 USB connector.

  2. Program the board using one of the following:

    • Select the demonstration project in the Project Explorer.
    • In the Quick Panel, scroll down, and click [Project Name] Program (KitProg3_MiniProg4).
  3. After programming, the demonstration starts automatically.

  4. Connect the board to your PC using the provided USB cable through the FX3 USB for outputting the graphics image.

    • Note: It is not necessary to connect the Kitprog3 USB and the FX3 USB at the same time.
  5. Launch the TRAVEO™ T2G Virtual Display Tool.

  6. Set the parameters on the TRAVEO™ T2G Virtual Display Tool to run this demonstration and push the Start stream button.

  7. It will be displayed the image from TRAVEO™ T2G Virtual Display Tool


More details can be found in:

refer to Steps to use the Qt Design Studio using the ModusToolbox™

References

Relevant Application notes are:

  • AN235305 - Getting started with TRAVEO™ T2G family MCUs in ModusToolbox™

ModusToolbox™ is available online:

Associated TRAVEO™ T2G MCUs can be found on:

More code examples can be found on the GIT repository:

For additional trainings, visit our webpage:

For questions and support, use the TRAVEO™T2G Forum: