Hardware environment:
- NXP i.MX 8M PLUS
- Industrial camera (MIPI)
- HDMI monitor
The data flow is as follows:

Software Environment:
- Kernel: Linux imx8mpevk 5.4.70
- File system: ubuntu20.04 file system
- Third-party software: Qt5.12.6, Opencv, SDL (Simple DirectMedia Layer, refer to https://wiki.libsdl.org/) or OpenGL ES
Functional Requirements:
The standard programming interface based on v4l2 obtains the data of each frame from the mipi camera, converts it into an Opencv mat image, and displays it in the QT window.
Current issues:
When calling the method SDL_CreateWindowFrom(win_id) of SDL to generate a window in QT, an error occurs and the camera screen cannot be displayed.
Target:
1. Solve the current SDL problem and display the camera screen in the QT window;
2. If the SDL method is not feasible, use other methods such as V4l2 + OpenGL ES to display the camera screen normally in the QT window.
If you have a good suggestion, please point it out