当前位置:网站首页>Some optimization methods for UI Application of Qt5 on Hisilicon security platform
Some optimization methods for UI Application of Qt5 on Hisilicon security platform
2022-06-12 04:56:00 【hi_ LeTian】
Develop on Hisilicon security platform , Generally, there is a demand for video , Here's a summary , In the use of QT.5.5 when , Some processing methods for the platform .
- Video layer display
Video uses chip decoding , When it is displayed , Displayed on the video layer ,UI Use FB Operation display , Display on the graphics layer , This needs to go through the graphics layer , Show video layer , There are two ways on the chip , One is colorkey, One is alpha Transparent approach , If QT Use ARGB8888 Just use colorkey Method ,ARGB1555 have access to colorkey or alpha Method .
2. Graphics layer refresh method
QT Need to use buff The way to draw and display UI, However, some drawing processes can be clearly seen on the platform , This can be done using the... Of the Hisilicon platform FB The dual cache method is used to solve the problem , stay QT Of Linuxfb The plug-in calls the... Of the Hisilicon platform FB Operation to refresh the drawn results , The effect looks much better , There will be no QT The drawing feels that the whole graphic layer is moving , Of course, after this treatment , There will be a certain sense of delay , But it's not obvious .
3. Adaptive resolution
Self adaptation can be handled in its own application , You can also use the... Of the Hisilicon platform TDE Function to do , Each has its own advantages and disadvantages , Make trouble in application , Each interface needs to consider different resolutions ;
Use here TDE The way to do it , Of course, this approach , If the design is a large resolution effect , Font and icon blurring may occur when adapting to small resolution . Here, press... When setting 1024*768 Minimum resolution design , In the use of TDE Enlarge output to 1280*1024, 1440*900,1080P,2K,4K The output is clearly visible . Use TDE Of surface The zoom function in the , Performance aspect 1 seconds 5 There is no problem above the frame !
4. Mouse jam problem
When operating the mouse in use , If UI The main interface has refresh operation , Often the mouse movement is not smooth , Here, because the mouse is also in UI Updated in the main thread , There is a special mouse graphics layer on the Hisilicon platform , The way to deal with it is in QT Of input In the plug-in of the peripheral , Start a thread to read the mouse device and update the mouse position .
5. The problem of switching resolution at runtime
Such a question , No solution has been found , The reason is that we didn't find QT The method of dynamic reconstruction linuxfb The object in the plug-in , So when switching resolution , The user is required to restart the device , The experience is very bad , If you know the method, please give me some advice !
QT The library is still very powerful , Compared with the previous writing UI library , Or use UCGUI, MINIGUI These libraries , Full of happiness ! However qt Compiled is still a little big if you use 16MB Of flash I can't put it down !
边栏推荐
- [cjson] precautions for root node
- Betteland introduces milk products of non animal origin, which will be launched in the U.S. market in the near future
- [backtracking based on bit operation] queen n problem 2
- Enhanced vegetation index evi, NDVI data, NPP data, GPP data, land use data, vegetation type data, rainfall data
- Why should a redis cluster use a reverse proxy? Just read this one
- One dragon and one knight accompanying programmers are 36 years old
- 2022 fusion welding and thermal cutting recurrent training question bank and simulation examination
- Ubunt 20.04 uses CDROM or ISO as the installation source
- ShanMeng and Beijing Adoption Day start NFT digital collection public offering
- In the era of smart retail, Weimeng reshapes the value of "shopping guide"
猜你喜欢

Chrome is amazingly fast, fixing 40 vulnerabilities in less than 30 days

2022 fusion welding and thermal cutting recurrent training question bank and simulation examination

Memory protection

Drive safety coding & troubleshooting guide

Sentinel-2 data introduction and download
![[wechat applet] the mobile terminal selects and publishes pictures](/img/9a/46bc4a7bf9b70d26b0e24fe02f747d.jpg)
[wechat applet] the mobile terminal selects and publishes pictures

2022“高考记忆” 已打包完成,请查收!

Install pycharm under Kali and create a shortcut access

2022 electrician (elementary) operation certificate examination question bank and online simulation examination

Ten trends of Internet Security in 2022 industry released
随机推荐
【C语言】实现字符串截取功能
2022 examination questions and simulation examination for crane driver (limited to bridge crane)
ShanMeng and Beijing Adoption Day start NFT digital collection public offering
1007- stair climbing
Thousand word masterpiece "programming biography"
Sword finger offer30 days re brush
leetcode 205. Isomorphic Strings
[backtracking method] backtracking method to solve the problem of Full Permutation
Big manufacturers compete to join rust, performance and safety are the key, and the 2021 rust developer survey report is announced
Ecosystem type distribution data, land use data, vegetation type distribution and nature reserve distribution data
When the build When gradle does not load the dependencies, and you need to add a download path in libraries, the path in gradle is not a direct downloadable path
Link: fatal error lnk1168: cannot open debug/test Solution of exe for writing
JS to determine whether it is the first time to browse the web page
JS controls the display and hiding of tags through class
LabVIEW关于TDMS和Binary存储速度
Google reinforcement learning framework seed RL environment deployment
【cjson】根节点注意事项
New year news of osdu open underground data space Forum
The emergence of new ides and the crisis of programmers?
Realease package appears – missing type parameter