CN102520937A - Method for optimizing image rendering between processes - Google Patents

Method for optimizing image rendering between processes Download PDF

Info

Publication number
CN102520937A
CN102520937A CN2011103892045A CN201110389204A CN102520937A CN 102520937 A CN102520937 A CN 102520937A CN 2011103892045 A CN2011103892045 A CN 2011103892045A CN 201110389204 A CN201110389204 A CN 201110389204A CN 102520937 A CN102520937 A CN 102520937A
Authority
CN
China
Prior art keywords
image
window
thread
decoding
show
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.)
Granted
Application number
CN2011103892045A
Other languages
Chinese (zh)
Other versions
CN102520937B (en
Inventor
荆建营
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changshu Intellectual Property Operation Center Co ltd
Guangdong Gaohang Intellectual Property Operation Co ltd
Original Assignee
Vtron Technologies Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201110389204.5A priority Critical patent/CN102520937B/en
Publication of CN102520937A publication Critical patent/CN102520937A/en
Application granted granted Critical
Publication of CN102520937B publication Critical patent/CN102520937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Generation (AREA)

Abstract

The invention discloses a method for optimizing image rendering between processes. The method comprises a window process and a decoding process, wherein the decoding process also comprises a decoding thread and a rendering thread; and wind operation and image decoding are separately performed from rendering. Thus, an image is displayed in a window from data; only one rendering operation is required; and compared with the prior art, at least a background rendering operation and a buffer read operation are performed. The decoding thread and the rendering thread are in the same process without crossing processes; the synchronization of decoding operation and rendering operation is facilitated; and the complexity of a system is reduced.

Description

The method that image is played up between the optimization process
Technical field
The present invention relates to the computer image processing technology field, particularly a kind ofly optimize the method that image is played up between process.
Background technology
Prior art is generally when the decoding rendering image; Adopt 2 kinds of methods: a kind ofly be an in-process completion decoding and play up that the window that this kind method is created can not lack dirigibility by other processes as playing up target; This just causes signal type of every switching, and just necessary switch window once; Another kind method is to use 2 processes, and one for decode/to play up process in advance, is used for image data decoding and plays up in advance, and obtain the view data after playing up in advance; Another is a show process, is used for receiving preparatory rendered image data and demonstration.In this method, show piece image, actual having carried out played up for twice, causes to show slow and system resource waste.。
Summary of the invention
The present invention proposes a kind of method that image is played up between process of optimizing,,, reach and reduce the purpose of playing up number of times, increase system efficiency through the method for using striding course to play up to the deficiency of prior art.
The present invention optimizes the method that image is played up between process, comprises window process and decoding process:
The windowing of said window process response user, begin to show the particular type image, stop to show the particular type image, moving window, change window size and close the window operation,
Said fenestration procedure comprises step:
Create window, obtain the id of the window of creating;
Give WinID with said id assignment,
Saidly stop to show the particular type image manipulation, comprise step:
Triggering the corresponding decoding process of current display image type quits work;
WinID is returned 0,
Saidly begin to show the particular type image manipulation, comprise step:
Carry out aforesaid operations and " stop to show the particular type image ";
Give WinID with said id assignment;
Obtain image type to be shown;
Trigger the corresponding decoding process of image to be displayed type and start working,
The window operation of said pass comprises step:
Carry out aforesaid operations and " stop to show the particular type image ";
Close window,
Every kind of corresponding said decoding process of image type, each said decoding process comprise decodes thread and plays up thread,
Said decoding process is started working according to following steps:
S0: saidly play up the drawing context WinContext that thread obtains WinID;
S1: the said thread of playing up is bound WinContext;
S2: the said thread of playing up obtains the wide and high of window, and is wide, high according to what get access to, upgrades the said drawing environment of playing up in the thread;
S3: the view data of said decoding thread decoding image to be displayed type, decoded said view data given play up thread;
S4: the said thread of playing up is rendered into window with said view data;
S5: repeat above-mentioned steps S2, S3, S4,
Said decoding process quits work according to following steps:
Said decoding thread stops decoding;
The said thread of playing up stops to play up;
Said thread and the WinContext of playing up breaks away from.
Preferably, said image type comprises IP image, local image, RGB image and stack display image.
The present invention optimizes the method that image is played up between process, comprises window process and decoding process, and the decoding process comprises the decoding thread again and play up thread, the decoding of window operation and image and play up the branch execution of coming.Like this, image, only need be played up once to showing at window from data, compares prior art, carries out a backstage at least less and plays up and once read buffer zone.And the decoding thread with play up in the same process of thread, striding course no longer, be convenient to decode and play up between two operations synchronously, reduced the complexity of system.
Description of drawings
Fig. 1 is that the present invention optimizes in the fenestration procedure process of image rendering method between process, the synoptic diagram of window process and the performed step of decoding process;
Fig. 2 be the present invention optimize image rendering method between process begin to show in the IP image manipulation procedure synoptic diagram of window process and the performed step of decoding process;
Fig. 3 is that the present invention optimizes in the pass window operating process of image rendering method between process the synoptic diagram of window process and the performed step of decoding process.
Embodiment
The objective of the invention is to overcome the shortcoming and defect of prior art,, reach and reduce the purpose of playing up number of times, increase system efficiency through the mode of using striding course to play up.Below in conjunction with accompanying drawing and embodiment is the present invention with Ei in detail.
The present invention optimizes the method that image is played up between process and comprises window process and decoding process, shares data between window process and the decoding process: window ID, i.e. WinID.
The window process is used to respond the windowing of user, begins to show the particular type image, stops to show the particular type image, moving window, change window size, close window, etc. operation.It creates window when response " windowing "; When " demonstration particular type image ", notify the decoding process corresponding to start working with the type image; When response " moving window, change window size ", change position of window, the wide high attribute of window; When response " pass window ", destroy window, and the notice decoding process corresponding with current display image type quits work.
1, windows
S0: create window, get access to the id of this window;
S1: give WinID with the id assignment.
2, stop to show the particular type image
S0: trigger the decoding process corresponding and quit work with current display image data type;
S1: WinID is returned 0.
3, begin to show the particular type image
S0: carry out aforesaid operations and " stop to show the particular type image ", stop to show the image of current type;
S1: give WinID with the id assignment;
S2: obtain the user and want the images displayed type;
S3: trigger the decoding process corresponding and start working with this picture data type.
As a preferred embodiment, said image type comprises IP image, local image, RGB image and stack display image etc.Before showing next types of image, elder generation that the decoding process of current type image is terminated.
4, moving window, change window size
Do not influence WinID and corresponding decoding process.
This operation possibly take place at any time, and stops to show the particular type image and begins to show that the operation of particular type image does not have precedence relationship.
5, close window
S0: carry out aforesaid operations and " stop to show the particular type image ", stop to show the image of current type;
S2: close window.
The decoding process has 2 functions: decoding is with the view data of this plug-in unit corresponding types, be rendered into the WinID window with decoded image, and correspondingly, there are 2 basic threads its inside: the decoding thread, play up thread.The decoding thread is used for decode image data; Playing up thread is used for view data is rendered into specified window.
The decoding process has 2 interfaces: begin, stop.
1, beginning
S0: the drawing context WinContext that obtains WinID;
S1: WinContext is tied to plays up in the thread, make and play up the thread WinID window of can drawing;
S2: obtain the wide and high of this window, wide, high according to what get access to, upgrade and play up the drawing environment in the thread; This step has determined to treat that rendered image data will be plotted in how wide, the how high window area, thereby has determined to treat wide, the high scaling of rendered image data; When window size changed, this step also makes played up the scaling that thread is adjusted rendering image as early as possible, prevented that image from showing the entanglement of flower screen.
S3: decode image data, view data given play up thread;
S4: play up thread view data is rendered into the WinID window
S5: repeat above-mentioned steps S2, S3, S4, until receiving " stopping " order.
Step S2 has determined to treat that rendered image data will be plotted in how wide, the how high window area, thereby has determined to treat wide, the high scaling of rendered image data; When window size changed, this step also makes played up the scaling that thread is adjusted rendering image as early as possible, prevented that image from showing the entanglement of flower screen.
2, stop
S0: stop decode image data;
S1: stop rendering image;
S2: will play up thread and WinContext and break away from.
For ease of describing, suppose that present system has IP picture decoding plug-in unit, picture stack to show plug-in unit and RGB decoding plug-in.Be elaborated through simulation practical operation step below.
(1), as shown in Figure 1 be in the fenestration procedure process, the synoptic diagram of window process and the performed step of decoding process.
A. window process
S0: create window, get access to the id of this window;
S1: give WinID with the id assignment;
B. the process of decoding
There is not operation.
(2), shown in Figure 2 is to begin to show in the operating process of particular type image-IP image the synoptic diagram of window process and the performed step of decoding process.
A. window process
S0: trigger IP picture decoding plug-in unit and start working;
B. the process of decoding
S0: the drawing context WinContext that obtains WinID;
S1: WinContext is tied to plays up in the thread, make and play up the thread WinID window of can drawing;
S2: obtain the wide and high of this window, wide, high according to what get access to, upgrade and play up the drawing environment in the thread;
S3: decode image data, view data given play up thread;
S4 plays up thread view data is rendered into the WinID window
S5: repeat above-mentioned steps S2, S3, S4, until receiving " stopping " order.
(3), begin to show that particular type image-picture stack shows.
A. window process
S0: current IP picture decoding process is quit work;
S1: trigger picture stack demonstration plug-in unit and start working;
B. the process of decoding
S0:IP image plug-in unit stops decode image data;
S1:IP image plug-in unit stops rendering image;
S2: play up thread and the WinContext of IP image plug-in unit are broken away from;
S3: the picture stack shows that plug-in unit obtains the drawing context WinContext of WinID;
S4: WinContext is tied to picture stack shows playing up in the thread of plug-in unit, what make that the picture stack shows plug-in unit plays up the thread WinID window of can drawing;
S5: obtain the wide and high of this window, wide, high according to what get access to, upgrade picture stack demonstration plug-in unit and play up the drawing environment in the thread;
S6: the picture stack shows the plug-in unit decode image data, gives picture stack demonstration plug-in unit with view data and plays up thread;
S7 picture stack demonstration plug-in unit is played up thread view data is rendered into the WinID window
S8: repeat above-mentioned steps S5, S6, S7, until receiving " stopping " order.
Above-mentioned steps S0~S2 is actual to have carried out the operation that stops IP image plug-in unit, the actual operation of carrying out " stack of beginning picture shows plug-in unit " of above-mentioned steps S3~S8.
(4) shown in Figure 3 is to close in the window operating process synoptic diagram of window process and the performed step of decoding process.
A. window process
S0: stop the picture stack and show plug-in unit;
S1: close window;
B. the process of decoding
S0: the picture stack shows that plug-in unit stops decode image data;
S1: the picture stack shows that plug-in unit stops rendering image;
S2: play up thread and WinContext disengaging with what picture stack showed plug-in unit.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within the claim protection domain of the present invention.

Claims (2)

1. optimize the method that image is played up between process for one kind, it is characterized in that, comprise window process and decoding process:
The windowing of said window process response user, begin to show the particular type image, stop to show the particular type image, moving window, change window size and close the window operation,
Said fenestration procedure comprises step:
Create window, obtain the id of the window of creating;
Give WinID with said id assignment,
Saidly stop to show the particular type image manipulation, comprise step:
Triggering the corresponding decoding process of current display image type quits work;
WinID is returned 0,
Saidly begin to show the particular type image manipulation, comprise step:
Carry out aforesaid operations and " stop to show the particular type image ";
Give WinID with said id assignment;
Obtain image type to be shown;
Trigger the corresponding decoding process of image to be displayed type and start working,
The window operation of said pass comprises step:
Carry out aforesaid operations and " stop to show the particular type image ";
Close window,
Every kind of corresponding said decoding process of image type, each said decoding process comprise decodes thread and plays up thread,
Said decoding process is started working according to following steps:
S0: saidly play up the drawing context WinContext that thread obtains WinID;
S1: the said thread of playing up is bound WinContext;
S2: the said thread of playing up obtains the wide and high of window, and is wide, high according to what get access to, upgrades the said drawing environment of playing up in the thread;
S3: the view data of said decoding thread decoding image to be displayed type, decoded said view data given play up thread;
S4: the said thread of playing up is rendered into window with said view data;
S5: repeat above-mentioned steps S2, S3, S4,
Said decoding process quits work according to following steps:
Said decoding thread stops decoding;
The said thread of playing up stops to play up;
Said thread and the WinContext of playing up breaks away from.
2. the method that image is played up between optimization process according to claim 1 is characterized in that, said image type comprises IP image, local image, RGB image and stack display image.
CN201110389204.5A 2011-11-29 2011-11-29 Method for optimizing image rendering between processes Active CN102520937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110389204.5A CN102520937B (en) 2011-11-29 2011-11-29 Method for optimizing image rendering between processes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110389204.5A CN102520937B (en) 2011-11-29 2011-11-29 Method for optimizing image rendering between processes

Publications (2)

Publication Number Publication Date
CN102520937A true CN102520937A (en) 2012-06-27
CN102520937B CN102520937B (en) 2014-10-29

Family

ID=46291879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110389204.5A Active CN102520937B (en) 2011-11-29 2011-11-29 Method for optimizing image rendering between processes

Country Status (1)

Country Link
CN (1) CN102520937B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617027A (en) * 2013-10-29 2014-03-05 合一网络技术(北京)有限公司 Android-based method and system for constructing image rendering engine
CN103617031A (en) * 2013-11-20 2014-03-05 广东威创视讯科技股份有限公司 Image rendering method and image rendering device
CN103678526A (en) * 2013-11-29 2014-03-26 贝壳网际(北京)安全技术有限公司 Method and device for decoding images of browser and client
CN103942823A (en) * 2014-02-27 2014-07-23 优视科技有限公司 Game engine rendering method and device
CN104376016A (en) * 2013-08-15 2015-02-25 腾讯科技(深圳)有限公司 Method and device for inter-process rendering in browser
CN105426185A (en) * 2015-11-13 2016-03-23 珠海格力节能环保制冷技术研究中心有限公司 Dynamic image display processing method and system
CN107463370A (en) * 2017-06-30 2017-12-12 百度在线网络技术(北京)有限公司 Striding course rendering intent and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106959897A (en) * 2017-02-16 2017-07-18 福建天泉教育科技有限公司 A kind of optimization method and system based on Unity3D image renderings

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1520579A (en) * 2001-06-29 2004-08-11 ض� Appts. method and system with graphics-rendering engine having time allocator
CN101127125A (en) * 2007-09-26 2008-02-20 腾讯科技(深圳)有限公司 Image rendering method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1520579A (en) * 2001-06-29 2004-08-11 ض� Appts. method and system with graphics-rendering engine having time allocator
CN101127125A (en) * 2007-09-26 2008-02-20 腾讯科技(深圳)有限公司 Image rendering method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376016A (en) * 2013-08-15 2015-02-25 腾讯科技(深圳)有限公司 Method and device for inter-process rendering in browser
CN104376016B (en) * 2013-08-15 2019-06-07 腾讯科技(深圳)有限公司 Striding course rendering method and device in a kind of browser
CN103617027A (en) * 2013-10-29 2014-03-05 合一网络技术(北京)有限公司 Android-based method and system for constructing image rendering engine
CN103617027B (en) * 2013-10-29 2015-07-29 合一网络技术(北京)有限公司 Based on image rendering engine construction method and the system of Android system
CN103617031B (en) * 2013-11-20 2017-01-18 广东威创视讯科技股份有限公司 Image rendering method and image rendering device
CN103617031A (en) * 2013-11-20 2014-03-05 广东威创视讯科技股份有限公司 Image rendering method and image rendering device
CN103678526A (en) * 2013-11-29 2014-03-26 贝壳网际(北京)安全技术有限公司 Method and device for decoding images of browser and client
WO2015078211A1 (en) * 2013-11-29 2015-06-04 贝壳网际(北京)安全技术有限公司 Method and device for browser to decode picture, and client
CN103942823A (en) * 2014-02-27 2014-07-23 优视科技有限公司 Game engine rendering method and device
CN103942823B (en) * 2014-02-27 2018-07-24 广州爱九游信息技术有限公司 A kind of game engine rendering intent and device
CN105426185A (en) * 2015-11-13 2016-03-23 珠海格力节能环保制冷技术研究中心有限公司 Dynamic image display processing method and system
CN107463370A (en) * 2017-06-30 2017-12-12 百度在线网络技术(北京)有限公司 Striding course rendering intent and system
CN107463370B (en) * 2017-06-30 2021-08-27 百度在线网络技术(北京)有限公司 Cross-process rendering method and system

Also Published As

Publication number Publication date
CN102520937B (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN102520937A (en) Method for optimizing image rendering between processes
US10250858B2 (en) Stage lamp based on TCP/IP protocol and control system thereof
CN105979375B (en) A kind of starting method and device of smart television
JP4889573B2 (en) Image processing device
CN105677265A (en) Display method and terminal
EP2690550A1 (en) Method and apparatus for displaying a multi-task interface
US9318149B2 (en) Method and system of composite broadcast control
CN104363505A (en) Method and device for displaying playing interface
CN106028004A (en) Multi-signal input and multi-image composition device and method
CN102298491B (en) Embedded graphical interface system and image generation method thereof
CN111683260A (en) Program video generation method, system and storage medium based on virtual anchor
CN102074221B (en) Method and device for displaying characters
CN106383640A (en) Projection method
JP6053345B2 (en) Transmission device, video display device, transmission method, video display method, and program
CN112486487B (en) SoC NVR display system-based rapid development method
CN104717563A (en) Progress bar displaying method and device
CN113497661A (en) Time code data processing method and device and real-time visual packaging system
KR20090033562A (en) System controlling synchronization of media and multi-device for smmd media service and the method thereof
CN110187858A (en) Image display method and system
CN101620497A (en) Multi-picture operation system and operation method thereof
CN102404523A (en) System and method for displaying on-screen menus of television
CN107729114B (en) Presentation method of playing control
CN112770164A (en) Video synchronous playing method
CN102376291A (en) Method and device for controlling image display
CN104615434A (en) Method and system for displaying file list interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 510670 Guangdong city of Guangzhou province Kezhu Guangzhou high tech Industrial Development Zone, Road No. 233

Patentee after: VTRON GROUP Co.,Ltd.

Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No.

Patentee before: VTRON TECHNOLOGIES Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20201125

Address after: 215500 No.13, Caotang Road, Changshu, Suzhou, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration: 20201125

Address after: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 510670 Guangdong city of Guangzhou province Kezhu Guangzhou high tech Industrial Development Zone, Road No. 233

Patentee before: VTRON GROUP Co.,Ltd.

TR01 Transfer of patent right
CP02 Change in the address of a patent holder

Address after: 215500 5th floor, building 4, 68 Lianfeng Road, Changfu street, Changshu City, Suzhou City, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: No.13 caodang Road, Changshu City, Suzhou City, Jiangsu Province

Patentee before: Changshu intellectual property operation center Co.,Ltd.

CP02 Change in the address of a patent holder