CN101383043B - Image processing method and system - Google Patents

Image processing method and system Download PDF

Info

Publication number
CN101383043B
CN101383043B CN2008102116844A CN200810211684A CN101383043B CN 101383043 B CN101383043 B CN 101383043B CN 2008102116844 A CN2008102116844 A CN 2008102116844A CN 200810211684 A CN200810211684 A CN 200810211684A CN 101383043 B CN101383043 B CN 101383043B
Authority
CN
China
Prior art keywords
message
assembly
heavyweight
heavyweight assembly
module
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.)
Expired - Fee Related
Application number
CN2008102116844A
Other languages
Chinese (zh)
Other versions
CN101383043A (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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics Co 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 Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN2008102116844A priority Critical patent/CN101383043B/en
Publication of CN101383043A publication Critical patent/CN101383043A/en
Application granted granted Critical
Publication of CN101383043B publication Critical patent/CN101383043B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an image processing method. The embodiment of the invention also provides a corresponding image processing system. The invention comprises: drawing information is processed by an application layer through controlling a drawing component to obtain heavyweight component information; the heavyweight component information is sent to an information queue by the drawing component; the heavyweight component information in the information queue is obtained by an image hardware driver layer and drawing operation is carried out according to the heavyweight component information. The technical proposal of the invention provides a simple and convenient interface to the application layer since the drawing component is adopted; the features of embedded hardware are taken into full consideration by an image merge algorithm, thus reducing unreasonable mergence; the image refreshing time is controlled, thus meeting the requirement of drawing application, and therefore, display efficiency is increased and display speed is speeded up.

Description

A kind of graphic processing method and system
Technical field
The present invention relates to the display technique field, be specifically related to image processing field.
Background technology
In the existing image display technology, a kind of scheme is by JAVA standard (JSR, Java SpecificationRequest) provides a Java2 microprint (J2ME, Java2Micro Edition) embedded java implementation, network enabled is supported graphical interfaces, the abstract window instrument of machine-processed Java (AWT draws, Abstract Windowing Toolkit) be implemented in that figure merges, graphical interfaces refreshes middle employing, multiple line distance management does not have control interface.
In research and practice process to prior art, the present inventor finds that in the scheme, application layer in time ACTIVE CONTROL interface refreshes opportunity, can occur and repeatedly repeat to refresh situation about illegally being merged with refreshing frequency.The figure merge algorithm is unreasonable, can all irrelevant assemblies also be refreshed when the graphics driver layer refreshes.
Summary of the invention
The embodiment of the invention provides graphic processing method, and corresponding image processing system also is provided.
A kind of graphic processing method comprises:
Application layer is handled drawing message by control drawing assembly, obtains heavyweight assembly message;
The drawing assembly sends to message queue with heavyweight assembly message;
The graphic hardware Drive Layer is obtained the heavyweight assembly message in the message queue, carries out mapping operation according to described heavyweight assembly message.
A kind of graphic system comprises:
Application module is used for drawing message is handled, and obtains heavyweight assembly message;
The drawing assembly module is used for providing base conditioning function to drawing message to application module, and heavyweight assembly message is sent to message queue;
The message queue module is used for receiving heavyweight assembly message from the drawing assembly module, and described heavyweight assembly message is carried out priority arrangement;
The graphics driver execution module is used for taking out heavyweight assembly message, the operation of drawing from message queue.
The embodiment of the invention adopts the drawing assembly to provide interface simply and easily to application layer; The figure merge algorithm has taken into full account the characteristic of embedded hardware, has reduced irrational merging; On the opportunity that the control figure refreshes, satisfy the needs of drawing and using; Improve display efficiency, accelerated display speed.
Description of drawings
Fig. 1 is an embodiment signaling process of a kind of graphic processing method of the present invention figure;
Fig. 2 is the merging synoptic diagram of an embodiment of a kind of graphic processing method of the present invention;
Fig. 3 is the merging synoptic diagram of an embodiment of a kind of graphic processing method of the present invention;
Fig. 4 is example structure figure of a kind of graphic system of the present invention.
Embodiment
The embodiment of the invention provides a kind of graphic processing method and system.Below be elaborated respectively.
See also Fig. 1 and be an embodiment signaling process of a kind of graphic processing method of the present invention figure;
Step 101, application layer are called the drawing assembly drawing message are handled, and obtain heavyweight assembly message;
Application layer is handled drawing message by control drawing assembly, and described drawing assembly provides the basic processing ability, and for example: image moves, image zoom etc.; And a drawing assembly is only at a concrete operation, application layer need can be finished by calling corresponding drawing assembly the processing that drawing message is done a basis, for example need to finish the processing that image moves, only need call and realize that the drawing assembly that image moves gets final product; The drawing message of handling by the drawing assembly forms heavyweight assembly message according to the heavyweight of drawing assembly.Described drawing message is handled through the drawing assembly, because the heavyweight difference of each drawing assembly, so the drawing message of handling can form the different heavyweight assembly message of heavyweight according to the heavyweight of different drawing assemblies.
Step 102, application layer send to message queue with heavyweight assembly message;
Priority and processing mode that message queue effectively arranges graphical messages to handle.
Step 103, graphics system are judged when a plurality of assembly message are the message of same heavyweight assembly, merge described a plurality of message.
When graphics system judges that a plurality of heavyweight assembly message are the message of same heavyweight assembly, a plurality of unions that belong to same heavyweight assembly message All Ranges of graphics system message merge algorithm, as shown in Figure 2.
Further, the graphic hardware Drive Layer belongs to same heavyweight assembly and gets wide regional union with high drawing message a plurality of, perhaps belongs to same heavyweight assembly and gets contour regional union with wide drawing message a plurality of, as shown in Figure 3.Reduce the size of drawing like this, improved drawing efficiency simultaneously.
Step 104, graphic hardware Drive Layer are obtained the heavyweight assembly message in the message queue, carry out mapping operation according to described heavyweight assembly message.
Also can call execute flag immediately, the drawing message before forcing is carried out, and avoids the graphics driver thread to be optimized operation, keeps application layer and wishes the drawing effect that occurs.
The embodiment of the invention adopts the drawing assembly to provide interface simply and easily to application layer; The figure merge algorithm has taken into full account the characteristic of embedded hardware, has reduced irrational merging; On the opportunity that the control figure refreshes, satisfy the needs of drawing and using; Improve display efficiency, accelerated display speed.
See also Fig. 4 and be example structure figure of a kind of graphic system of the present invention;
Application module 401 is used for drawing message is handled, and obtains heavyweight assembly message;
Drawing assembly module 402 is used for providing base conditioning function to drawing message to application module, and heavyweight assembly message is sent to message queue;
Application module 401 will be drawn by control drawing assembly and will be abstracted into elementary heavyweight assembly message in detail, simultaneously message be merged and handle optimization heavyweight assembly message; Described drawing assembly 402 provides the basic processing ability, and for example: image moves, image zoom etc.; And a drawing assembly is only at a concrete operation, application layer need can be finished by calling corresponding drawing assembly the processing that drawing message is done a basis, for example need to finish the processing that image moves, only need call and realize that the drawing assembly that image moves gets final product; The drawing message of handling by the drawing assembly forms heavyweight assembly message according to the heavyweight of drawing assembly.
Message queue module 403 is used for receiving heavyweight assembly message from the drawing assembly module, and described heavyweight assembly message is carried out priority arrangement;
Priority and processing mode that message queue module 403 arranges graphical messages to handle.
Graphics driver execution module 404 is used for taking out heavyweight assembly message, the operation of drawing from message queue.
Described graphics driver execution module 404 also is used for getting the union of described a plurality of heavyweight assembly message when judging that a plurality of heavyweight assembly message are the message of same heavyweight assembly; Further, belong to same heavyweight assembly and get wide regional union a plurality of with high drawing message; Belong to same heavyweight assembly and get contour regional union a plurality of with wide drawing message.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
More than graphic processing method and system that the embodiment of the invention provided are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1. a graphic processing method is characterized in that, comprising:
Application layer is handled drawing message by control drawing assembly, obtains heavyweight assembly message;
Application layer sends to message queue with heavyweight assembly message;
The graphic hardware Drive Layer is obtained the heavyweight assembly message in the message queue, carries out mapping operation according to described heavyweight assembly message.
2. graphic processing method according to claim 1 is characterized in that, describedly by control drawing assembly drawing message is handled, and obtains heavyweight assembly message and is specially:
Application layer is abstracted into elementary heavyweight assembly message by control drawing assembly with drawing, simultaneously message is merged and optimization process optimization heavyweight assembly message; Described assembly comprises display module, hides assembly, moving assembly.
3. graphic processing method according to claim 1 is characterized in that, application layer also comprises after heavyweight assembly message is sent to message queue:
Judge when a plurality of heavyweight assembly message are the message of same heavyweight assembly, merge described a plurality of heavyweight assembly message.
4. graphic processing method according to claim 3 is characterized in that, a plurality of heavyweight assembly of described merging message comprises:
The union that a plurality of message that belong to same heavyweight assembly are got All Ranges.
5. graphic processing method according to claim 3 is characterized in that, a plurality of heavyweight assembly of described merging message comprises:
Belong to same heavyweight assembly and get wide regional union a plurality of with high drawing message;
Belong to same heavyweight assembly and get contour regional union a plurality of with wide drawing message.
6. a graphic system is characterized in that, comprising:
Application module is used for drawing message is handled, and obtains heavyweight assembly message;
The drawing assembly module is used for providing base conditioning function to drawing message to application module, and heavyweight assembly message is sent to message queue;
The message queue module is used for receiving heavyweight assembly message from the drawing assembly module, and described heavyweight assembly message is carried out priority arrangement;
The graphics driver execution module is used for taking out heavyweight assembly message, the operation of drawing from message queue.
7. graphic system according to claim 6 is characterized in that, the message queue module also is used for:
When judging that a plurality of heavyweight assembly message are the message of same heavyweight assembly, get the union of described a plurality of heavyweight assembly message.
8. graphic system according to claim 6 is characterized in that, the message queue module also is used for:
Belong to same heavyweight assembly and get wide regional union a plurality of with high drawing message;
Belong to same heavyweight assembly and get contour regional union a plurality of with wide drawing message.
CN2008102116844A 2008-09-18 2008-09-18 Image processing method and system Expired - Fee Related CN101383043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102116844A CN101383043B (en) 2008-09-18 2008-09-18 Image processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102116844A CN101383043B (en) 2008-09-18 2008-09-18 Image processing method and system

Publications (2)

Publication Number Publication Date
CN101383043A CN101383043A (en) 2009-03-11
CN101383043B true CN101383043B (en) 2010-08-25

Family

ID=40462869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102116844A Expired - Fee Related CN101383043B (en) 2008-09-18 2008-09-18 Image processing method and system

Country Status (1)

Country Link
CN (1) CN101383043B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075800A (en) * 2011-01-11 2011-05-25 中兴通讯股份有限公司 File play control method and system based on interactive personnel television set top box
US9558560B2 (en) * 2014-03-14 2017-01-31 Intel Corporation Connected component labeling in graphics processors
CN108234624A (en) * 2017-12-29 2018-06-29 贵阳语玩科技有限公司 The processing method and system of request of data
CN108389153B (en) * 2018-03-15 2022-03-15 Oppo广东移动通信有限公司 View loading method and terminal equipment

Also Published As

Publication number Publication date
CN101383043A (en) 2009-03-11

Similar Documents

Publication Publication Date Title
AU2020233755B2 (en) Controlling display performance
US11568588B2 (en) Controlling display performance using display statistics and feedback
CN103595896B (en) Ultra high-definition image in different resolution synchronous display method and system
WO2021008390A1 (en) Image layer processing method and apparatus, electronic device, and computer-readable medium
CN101383043B (en) Image processing method and system
CN103176712A (en) Image magnification display method and device
CN106331831A (en) Method and device for image processing
EP3779690A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
CN102774321A (en) Vehicle-mounted system and sound control method thereof
CN115097994B (en) Data processing method and related device
US20060176296A1 (en) Systems and methods for rendering three-dimensional graphics in a multi-node rendering system
CN104734983A (en) Scheduling system, method and device for service data request
CN102799421A (en) Multi-view switching system and method
CN112835703B (en) Task processing method, device, equipment and storage medium
CN104063224A (en) Method and device for switching multiple fine control scenarios based on three-dimensional GIS (geographic information system)
CN114115673A (en) Control method of vehicle-mounted screen
CN106909460A (en) Data buffering method, device and storage medium
CN105678828A (en) Method and apparatus for creating transition animations
CN112395036B (en) Page rendering method and system
CN114639358A (en) Ink screen refreshing method, terminal device, storage medium and program product
CN112667410A (en) Cross-process communication method, terminal and computer readable storage medium
CN106326010B (en) A kind of control plays the method and intelligent sound box of synchronization
CN101944024B (en) Method and system for refreshing emoticon
WO2024098871A9 (en) Data processing method, device, and storage medium
CN102074030A (en) Method for acquiring and editing custom graphics and system for making subtitle graphics

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
EE01 Entry into force of recordation of patent licensing contract

Assignee: NANTONG COSHIP ELECTRONICS Co.,Ltd.

Assignor: SHENZHEN COSHIP ELECTRONICS Co.,Ltd.

Contract record no.: 2011440020331

Denomination of invention: Image processing method and system

Granted publication date: 20100825

License type: Exclusive License

Open date: 20090311

Record date: 20110907

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100825

Termination date: 20210918