标题: [MA35D1] Qt Overlay on Video [打印本页] 作者: admin 时间: 2024-5-9 14:16 标题: [MA35D1] Qt Overlay on Video
[size=1.1em]
Application: This example code demonstrates how to write a Qt application that simultaneously plays a video at the bottom layer of the screen and overlays interactive elements on top, allowing the video playback to be controlled through these interactive components.
BSP Version: Linux-5.10.x
Hardware: NuMaker-HMI-MA35D1-S1
Compositing is a computer graphics technique that combines multiple images or layers into a single output image. It is commonly used in video and image processing, such as video and image compositing.
This example code demonstrates how to simultaneously play a video and run a Qt widget in a Qt application while displaying them on the screen. The video and Qt application are output to different frame buffers, such as Frame Buffer 0 and Frame Buffer 1, and then blended using the blending function provided by the display driver before being displayed on the screen. The MA35D1 display driver offers two types of blending functions: Color Key and Alpha Blending, and this example code uses Alpha Blending.