CN109582409A - A kind of display stacking method based on double buffering - Google Patents
A kind of display stacking method based on double buffering Download PDFInfo
- Publication number
- CN109582409A CN109582409A CN201811193776.4A CN201811193776A CN109582409A CN 109582409 A CN109582409 A CN 109582409A CN 201811193776 A CN201811193776 A CN 201811193776A CN 109582409 A CN109582409 A CN 109582409A
- Authority
- CN
- China
- Prior art keywords
- display
- layer
- dynamic image
- alternation
- bed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
- G06F3/04855—Interaction with scrollbars
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04804—Transparency, e.g. transparent or translucent windows
Abstract
A kind of display stacking method based on double buffering creates two frame buffer zones in memory, and display driver alternately reads information from two buffer areas, and when reading information from a frame buffer zone, the real-time rendering of image to be displayed is carried out in another frame buffer zone;Image to be displayed is drawn in frame buffer zone, comprising: image to be displayed is split as to the dynamic image layer for being used for the UI alternation of bed of human-computer interaction and being used to show real time data variation;UI alternation of bed and dynamic image layer display size and position are determined respectively;UI alternation of bed and dynamic image layer are drawn using independent thread respectively;The UI alternation of bed completed and dynamic image layer are subjected to mixing superposition using hardware accelerator and obtain image to be displayed.This method can realize the display of realtime graphic smoothness with lower CPU usage, and since the generation and drafting of image are separated with UI, drawing dynamic image can be more independent, while also solve some exceptions caused by cross-thread operation interface.
Description
Technical field
The present invention relates to a kind of display stacking method based on double buffering, belongs to Computer Image Processing field.
Background technique
The patient monitor that medical institutions use includes the waveform diagram and the UI interactive interface of fixed display of real-time dynamic display,
The real-time display of the waveform diagram of middle Dynamically Announce needs to carry out real-time rendering, the CPU ratio of the embedded platform applied to patient monitor
It is weaker, although master control can complete low-power consumption and control operation well, then seem unable to do what one wishes for graphical interfaces processing.
Especially in the image for needing to present real-time change, a large amount of CPU computing capability can be expended, to make load too high.
For the graphical interfaces library of human-computer interaction, cross-thread operation UI is not allowed usually.In order to realize display
Realtime graphic function or in the direct drawing image of UI thread or in other thread drawing image, reinforms UI line
Journey.When master control computing capability is very strong, both general schemes can accomplish good effect.Wherein, when directly in UI line
When journey draws realtime graphic, some interactive operations (such as popup menu, change frame size etc.) can cause forms to redraw, at this time
Real-time image display will be suspended, until forms redraw completion.It is bad so as to cause perception, usually feel to be interface Caton.When
It in separate threads drawing image, needs to carry out copy exchange image data between drawing thread and UI thread, this will consumption
More physical memories, it is very harsh to the requirement of memory in the embedded system of resource anxiety.
Summary of the invention
To solve the above problems, the purpose of the present invention is to provide a kind of display stacking method based on double buffering, by boundary
The image that face is shown splits into UI alternation of bed and dynamic image layer, and UI alternation of bed is by UI thread process, dynamic image layer by
Drawing thread process, UI thread and drawing thread are mutually indepedent, will not influence dynamic image because of the interactive operation of UI alternation of bed
Layer drafting and lead to real-time display picture Caton, the UI alternation of bed for obtaining two thread process eventually by hardware accelerator
It is output to screen with the mixing superposition of dynamic image layer, does not need to carry out copy exchange image data between two threads, in reduction
Deposit expense.
Technical solution used by the present invention solves the problems, such as it is:
A kind of display stacking method based on double buffering creates two frame buffer zones, display driver alternating in memory
Information is read from two buffer areas, when reading information from a frame buffer zone, figure to be shown is carried out in another frame buffer zone
The real-time rendering of picture;Wherein, image to be displayed is drawn in frame buffer zone, is specifically comprised the following steps:
Image to be displayed is split as to the dynamic for being used for the UI alternation of bed of human-computer interaction and being used to show real time data variation
Image layer;
UI alternation of bed and dynamic image layer display size and position are determined respectively;
The UI alternation of bed and dynamic image layer are drawn using independent thread respectively;
Using hardware accelerator by the UI alternation of bed completed and dynamic image layer carry out mixing superposition obtain it is to be shown
Image.
Further, the UI alternation of bed includes the pop-up of the static control figure layer always showed and interactive operation triggering display
Control figure layer.
Further, the dynamic image layer includes at least one figure layer.
Further, when drawing dynamic image layer, use Transparent color as figure layer background.
Further, the UI alternation of bed determining respectively and dynamic image layer display size and position, comprising: obtain display
Screen-sized, and according to display screen size size and the default display for being laid out determining UI alternation of bed and dynamic image layer
Size and position.
Further, the display area of dynamic image layer is complementary with the display area of static control figure layer and is paved with display screen
Curtain.
Further, described to be overlapped UI alternation of bed and dynamic image layer, it specifically includes:
Window stack is established, for the position coordinates and display size data progress pop down to pop-up or is popped;
Each layer position for adjusting dynamic image layer, makes its not foldover artifacts;
The static control figure layer is carried out mixing with the All Layers of dynamic image layer to be superimposed, obtains intermediate image layer;
Pop-up control figure layer is sequentially overlaid on middle graph according to the sequencing of pop down by the information read in window stack
As obtaining final image to be displayed on layer, if the information of window stack is sky, directly using intermediate image layer as finally to
Show image.
Further, further include judging whether pop-up display size is more than screen size, add rolling if beyond screen size
Dynamic information simultaneously carries out pop down jointly with pop window information or pops.
The beneficial effects of the present invention are: a kind of display stacking method based on double buffering that the present invention uses, interface is shown
The image shown splits into UI alternation of bed and dynamic image layer, and UI alternation of bed, by UI thread process, dynamic image layer is by drawing
Thread process, UI thread and drawing thread are mutually indepedent, will not influence dynamic image layer because of the interactive operation of UI alternation of bed
It draws and leads to real-time display picture Caton, the UI alternation of bed that obtains two thread process eventually by hardware accelerator and dynamic
The mixing superposition of state image layer is output to screen, does not need to carry out copy exchange image data between two threads, reduces memory and opens
Pin, while solving some exceptions caused by cross-thread operation interface.
Detailed description of the invention
Fig. 1 is the method flow diagram of embodiment of the disclosure;
Fig. 2 is the schematic diagram of the static control figure layer of the UI alternation of bed of embodiment of the disclosure;
Fig. 3 is the schematic diagram of the dynamic image layer of embodiment of the disclosure;
Fig. 4 is the image to be displayed schematic diagram without pop-up of embodiment of the disclosure;
Fig. 5 is the image to be displayed schematic diagram after the superposition pop-up control figure layer of embodiment of the disclosure;
Specific picture material wherein in Fig. 2-Fig. 5 is unimportant, is only used for display area signal.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.Display stacking method based on double buffering of the invention is applicable to display real-time rendering image
The embedded device at interface.
Here it is illustrated with the patient monitor of medical institutions, the content of patient monitor display interface can be divided into two parts, be real respectively
The dynamic image layer of Shi Bianhua waveform and the UI alternation of bed of non real-time variation, UI alternation of bed mainly show some static state image or
The common UI control such as the physiological parameter numerical value, including text, button, list, Option Box of variation;Dynamic image layer, which is mainly shown, to be needed
The Dynamic Graph of real-time rendering is wanted, there can be the figure layers such as one or more figure layers, such as ecg wave form, pulse, respiratory rate.Due to
The principle that screen is shown is picture element scan, if directly in display screen drawing image, when window needs to redraw due to any
When, always first viewing area is removed with background colour or background images, then just shows image, so in a short time background colour with
Display figure is alternately present, so that display window seems dodging.If background brush is arranged to NULL, weigh in any case in this way
Drawing shape will not all dodge, but the display of window can be made in great confusion, because not having background colour to draw when redrawing to original
Figure be purged, and be superimposed with new figure.Therefore, the present invention is solved these problems by double buffering technology.
Referring to Fig.1-5, a kind of display stacking method based on double buffering creates two frame buffer zones, display in memory
Driver alternately reads information from two buffer areas, when reading information from a frame buffer zone, in another frame buffer zone into
The real-time rendering of row image to be displayed;As shown in Figure 1, drawing image to be displayed in frame buffer zone, specifically comprise the following steps:
Image to be displayed is split as to the dynamic for being used for the UI alternation of bed of human-computer interaction and being used to show real time data variation
Image layer;
UI alternation of bed and dynamic image layer display size and position are determined respectively;
UI alternation of bed and dynamic image layer are drawn using independent thread respectively;
Using hardware accelerator by the UI alternation of bed completed and dynamic image layer carry out mixing superposition obtain it is to be shown
Image.
Specifically, UI alternation of bed includes the pop-up control of the static control figure layer always showed and interactive operation triggering display
Figure layer;The wherein static control figure layer region in addition to the black square region of upper left as shown in Figure 2, including text, button, list,
The common UI control such as Option Box, icon, black square region indicates the transparent part in UI alternation of bed, to keep for dynamic image
The display area of layer.
As shown in figure 3, dynamic image layer includes at least one figure layer, when drawing dynamic image layer, use Transparent color as
Figure layer background, i.e., the dynamic image layer that can be seen on the display screen here only include waveform diagram and text etc., waveform herein
The contents such as figure and text are unimportant to the present invention, only illustrate the image of dynamic change;Here the figure layer of dynamic image layer can be with
All update, it can also be with local updating.
As shown in figure 4, determining UI alternation of bed and dynamic image layer display size and position respectively, comprising: obtain display screen
Curtain size, and according to display screen size size and the default display ruler for being laid out determining UI alternation of bed and dynamic image layer
Very little and position.The display area of dynamic image layer is complementary with the display area of static control figure layer and is paved with display screen, i.e., dynamic
State image layer fills up the reserved transparent part of UI alternation of bed.
As shown in figure 5, UI alternation of bed and dynamic image layer are overlapped, specifically include:
Window stack is established, for the position coordinates and display size data progress pop down to pop-up or is popped;
Specifically, when interactive operation triggers pop-up, then needing pop-up carrying out preposition display, working as pop-up in interface
After closing, then needs to delete the figure layer of pop-up, the pop-up and closing of pop-up, bullet are realized used here as pop down, the mode popped
When window, by the pop downs such as pop-up position and dimension information to window stack, when closing pop-up, corresponding pop-up letter is deleted from window stack
Breath.
Each layer position for adjusting dynamic image layer, makes its not foldover artifacts;
Static control figure layer is carried out mixing with the All Layers of dynamic image layer using hardware accelerator be superimposed, be obtained
Between image layer;
Specifically, UI alternation of bed is as background, dynamic image layer is as prospect, because the background of dynamic image layer is transparent
Color, then when dynamic image stacking is added in UI alternation of bed, after filling up the reserved transparent part of UI alternation of bed, only dynamic image layer
Middle need content to be shown can just be added in UI alternation of bed.
Pop-up control figure layer is sequentially overlaid on middle graph according to the sequencing of pop down by the information read in window stack
As obtaining final image to be displayed on layer, if the information of window stack is sky, directly using intermediate image layer as finally to
Show image.
It wherein, further include judging whether pop-up display size is more than screen size when drawing pop-up control figure layer, if super
Screen size then adds scroll bar information and carries out pop down jointly with pop window information or pop out.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as
It reaches technical effect of the invention with identical means, all should belong to protection scope of the present invention.In protection model of the invention
Its technical solution and/or embodiment can have a variety of different modifications and variations in enclosing.
Claims (8)
1. a kind of display stacking method based on double buffering, create two frame buffer zones in memory, display driver alternately from
Information is read in two buffer areas, and when reading information from a frame buffer zone, image to be displayed is carried out in another frame buffer zone
Real-time rendering;It is characterized by: drawing image to be displayed in frame buffer zone, specifically comprise the following steps:
Image to be displayed is split as to the dynamic image for being used for the UI alternation of bed of human-computer interaction and being used to show real time data variation
Layer;
UI alternation of bed and dynamic image layer display size and position are determined respectively;
The UI alternation of bed and dynamic image layer are drawn using independent thread respectively;
The UI alternation of bed completed and dynamic image layer are subjected to mixing superposition using hardware accelerator and obtain image to be displayed.
2. the display stacking method according to claim 1 based on double buffering, it is characterised in that: the UI alternation of bed includes
The pop-up control figure layer of the static control figure layer always showed and interactive operation triggering display.
3. the display stacking method according to claim 2 based on double buffering, it is characterised in that: the dynamic image layer packet
Include at least one figure layer.
4. the display stacking method according to claim 1 based on double buffering, it is characterised in that: draw dynamic image layer
When, use Transparent color as figure layer background.
5. the display stacking method according to claim 2 based on double buffering, it is characterised in that: described determines UI respectively
Alternation of bed and dynamic image layer display size and position, comprising: obtain display screen size size, and according to display screen size
Size and default display size and the position for being laid out determining UI alternation of bed and dynamic image layer.
6. the display stacking method according to claim 5 based on double buffering, it is characterised in that: the display of dynamic image layer
Region is complementary with the display area of static control figure layer and is paved with display screen.
7. the display stacking method according to claim 3 based on double buffering, it is characterised in that: described by UI alternation of bed
It is overlapped, specifically includes with dynamic image layer:
Window stack is established, for the position coordinates and display size data progress pop down to pop-up or is popped;
Each layer position for adjusting dynamic image layer, makes its not foldover artifacts;
The static control figure layer is carried out mixing with the All Layers of dynamic image layer to be superimposed, obtains intermediate image layer;
Pop-up control figure layer is sequentially overlaid on intermediate image layer according to the sequencing of pop down by the information read in window stack
On, final image to be displayed is obtained, if the information of window stack is sky, directly using intermediate image layer as finally to be shown
Image.
8. the display stacking method according to claim 7 based on double buffering, it is characterised in that: further include judging that pop-up is aobvious
Show whether size is more than screen size, add scroll bar information if beyond screen size and carries out pop down jointly with pop window information
Or it pops.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811193776.4A CN109582409A (en) | 2018-10-15 | 2018-10-15 | A kind of display stacking method based on double buffering |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811193776.4A CN109582409A (en) | 2018-10-15 | 2018-10-15 | A kind of display stacking method based on double buffering |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109582409A true CN109582409A (en) | 2019-04-05 |
Family
ID=65920076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811193776.4A Pending CN109582409A (en) | 2018-10-15 | 2018-10-15 | A kind of display stacking method based on double buffering |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109582409A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110503702A (en) * | 2019-08-19 | 2019-11-26 | 武汉蓝星科技股份有限公司 | A kind of full liquid crystal digital meter hardware figure layer delamination process and device |
CN111651109A (en) * | 2020-05-11 | 2020-09-11 | 广州视源电子科技股份有限公司 | Display interface layout adjusting method and device, electronic equipment and storage medium |
CN111897608A (en) * | 2020-06-12 | 2020-11-06 | 南斗六星系统集成有限公司 | Vehicle-mounted instrument display method and system based on linux |
CN112102439A (en) * | 2019-09-05 | 2020-12-18 | 北京无线电测量研究所 | Target characteristic image drawing device and dynamic drawing method |
CN112906087A (en) * | 2021-02-03 | 2021-06-04 | 深圳市显控科技股份有限公司 | CAD asynchronous rendering method and system based on double buffering |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872679A (en) * | 2015-12-31 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Barrage display method and device |
CN105957121A (en) * | 2016-06-29 | 2016-09-21 | 努比亚技术有限公司 | Animation display system and display method in application |
CN105955687A (en) * | 2016-04-29 | 2016-09-21 | 华为技术有限公司 | Image processing method, apparatus and system |
CN106528159A (en) * | 2016-11-22 | 2017-03-22 | 深圳铂睿智恒科技有限公司 | Method and system for mobile terminal to realize dynamic effect of application |
CN106648641A (en) * | 2016-12-09 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Automatic management method and system for multi-level pop-up boxes on iOS system device |
-
2018
- 2018-10-15 CN CN201811193776.4A patent/CN109582409A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872679A (en) * | 2015-12-31 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Barrage display method and device |
CN105955687A (en) * | 2016-04-29 | 2016-09-21 | 华为技术有限公司 | Image processing method, apparatus and system |
CN105957121A (en) * | 2016-06-29 | 2016-09-21 | 努比亚技术有限公司 | Animation display system and display method in application |
CN106528159A (en) * | 2016-11-22 | 2017-03-22 | 深圳铂睿智恒科技有限公司 | Method and system for mobile terminal to realize dynamic effect of application |
CN106648641A (en) * | 2016-12-09 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Automatic management method and system for multi-level pop-up boxes on iOS system device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110503702A (en) * | 2019-08-19 | 2019-11-26 | 武汉蓝星科技股份有限公司 | A kind of full liquid crystal digital meter hardware figure layer delamination process and device |
CN112102439A (en) * | 2019-09-05 | 2020-12-18 | 北京无线电测量研究所 | Target characteristic image drawing device and dynamic drawing method |
CN112102439B (en) * | 2019-09-05 | 2024-04-19 | 北京无线电测量研究所 | Drawing device and dynamic drawing method for target feature image |
CN111651109A (en) * | 2020-05-11 | 2020-09-11 | 广州视源电子科技股份有限公司 | Display interface layout adjusting method and device, electronic equipment and storage medium |
CN111897608A (en) * | 2020-06-12 | 2020-11-06 | 南斗六星系统集成有限公司 | Vehicle-mounted instrument display method and system based on linux |
CN112906087A (en) * | 2021-02-03 | 2021-06-04 | 深圳市显控科技股份有限公司 | CAD asynchronous rendering method and system based on double buffering |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582409A (en) | A kind of display stacking method based on double buffering | |
DE69735975T2 (en) | System and method for superimposing images optionally stored in different native formats | |
US6822662B1 (en) | User selected display of two-dimensional window in three dimensions on a computer screen | |
JPS62191918A (en) | Data display method and data display controller | |
US20130002688A1 (en) | Method for controlling multiple displays and system thereof | |
JPH0421198B2 (en) | ||
US6201528B1 (en) | Anti-aliased inking for pen computers | |
CN107817935A (en) | Display methods, device, terminal and the computer-readable recording medium of application interface | |
CN115756294A (en) | Handwriting implementation method and system for ink screen equipment | |
CN103927770B (en) | Method and system for drawing waveforms under grid background | |
JPS63137378A (en) | Graphics processing system | |
CN113238710B (en) | Intelligent interactive panel, display method thereof and readable storage medium | |
JPH03186894A (en) | Display device | |
WO2022004898A1 (en) | Image processing device, image processing method, and program | |
CN106933486A (en) | For the touch-control implementation method and device of Android system | |
JP2012068636A (en) | System and method for displaying digitized waveform on pixilated screen | |
DE102019107145B4 (en) | METHOD, DEVICE AND NON-VOLATILE COMPUTER READABLE MEDIUM FOR MIXED REALITY INTERACTION WITH A PERIPHERAL DEVICE | |
JPH0445487A (en) | Method and device for composite display | |
CN107861104A (en) | A kind of radar target windowing following display method and system based on dragging | |
JPH01234890A (en) | Graphic display system in multi-view | |
JPH10247136A (en) | Information processor and information processing method | |
JPH03163595A (en) | Multiwindow controller | |
CN115167963A (en) | H5-based multi-level window fast response method and storage medium | |
JPH0869368A (en) | Image output device | |
JPH03186893A (en) | Color display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190405 |