当前位置:网站首页>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 !
边栏推荐
- AI and logistics Patent
- Radiometric calibration and atmospheric correction of sentry 2 L1C multispectral data using sen2cor
- New year news of osdu open underground data space Forum
- asp. Net core theme Middleware
- How to count the total length of roads in the region and draw data histogram
- Operation of simulated examination platform for 2022 safety officer-b certificate examination questions
- Betteland introduces milk products of non animal origin, which will be launched in the U.S. market in the near future
- Sustainable service business models
- Parallélisation de l'entraînement accéléré TF. Données. Générateur de données
- JWT学习与使用
猜你喜欢

Transpiration and evapotranspiration (ET) data, potential evapotranspiration, actual evapotranspiration data, temperature data, rainfall data

How to use union all in LINQ- How to use union all in LINQ?

Enhanced vegetation index evi, NDVI data, NPP data, GPP data, land use data, vegetation type data, rainfall data

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

JWT學習與使用

QT compile 45 graphic report of security video monitoring system

kali下安装pycharm并创建快捷访问

How to count the total length of roads in the region and draw data histogram

Gao Xiang slam14 notes on three Lie groups and Lie algebra

Spatial distribution data of national multi-year average precipitation 1951-2021, temperature distribution data, evapotranspiration data, evaporation data, solar radiation data, sunshine data and wind
随机推荐
2022 examination questions and simulation examination for crane driver (limited to bridge crane)
Betteland introduces milk products of non animal origin, which will be launched in the U.S. market in the near future
Force/release learning arrangement in IC Verification (5) research on the influence of reg type signals
C asynchronous programming (async and await) and asynchronous method synchronous invocation
Ten trends of Internet Security in 2022 industry released
Longest palindrome string
Report on the current market situation and future development trend of adhesive industry for radar and ultrasonic sensors in the world and China 2022 ~ 2028
Sword finger offer30 days re brush
Bearpi IOT lighting LED
[backtracking method] queen n problem
cellular automaton
Some problems of silly girl solved
The master programmer "plays" a C program that is not like C
National land use data of 30m precision secondary classification
加速训练之并行化 tf.data.Dataset 生成器
February 19, 2022 [Nolan] Nolan resurrected? Change · Nolan [soul orchid] can be connected to XDD / silly girl
Surface net radiation flux data, solar radiation data, rainfall data, air temperature data, sunshine duration, water vapor pressure distribution, wind speed and direction data, surface temperature
AI and logistics Patent
A complete set of installation procedures (for learning and communication only)
[backtracking based on bit operation] queen n problem 2