CN109801210A - Image processing method, device, electronic equipment and computer readable storage medium - Google Patents
Image processing method, device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109801210A CN109801210A CN201910099986.5A CN201910099986A CN109801210A CN 109801210 A CN109801210 A CN 109801210A CN 201910099986 A CN201910099986 A CN 201910099986A CN 109801210 A CN109801210 A CN 109801210A
- Authority
- CN
- China
- Prior art keywords
- image
- thread
- display interface
- rendering
- loaded
- 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
Landscapes
- Processing Or Creating Images (AREA)
Abstract
This disclosure relates to application software technology field, more particularly to a kind of image processing method, device, electronic equipment and computer readable storage medium, the image processing method is applied on business device, creation has main thread on the business device, it include: that the asynchronous thread based on selection is treated load image and drawn, the image after being drawn;Rendering processing is carried out to the image after the drafting by the main thread, the image after being rendered;The image after the rendering is shown by display interface.The above-mentioned processing that the disclosure provides, realizes the timely display to image, is handled by the separated drafting for carrying out image and rendering, improves treatment effeciency, avoid the generation of Caton phenomenon in the interface UI, increase the usage experience of user.
Description
Technical field
This disclosure relates to application software technology field, more particularly to a kind of image processing method, device, electronic equipment and
Computer readable storage medium.
Background technique
In the prior art, when user triggers the picture and text showing at UI (User Interface, user interface) interface, usually
It is to be read, decoded by main thread, rendering picture, but since the reading, decoded process are very time-consuming, and consumes very much
CPU leads to the operation that possibly can not respond user in time, causes picture and text that can not display in real time out with the operation of user
Come, so that user is apparently, which just produces Caton phenomenon, affects the usage experience of user.
Summary of the invention
Present disclose provides a kind of image processing method, device, electronic equipment and computer readable storage mediums, to realize
Timely display to picture and text, avoids the generation of Caton phenomenon.
In a first aspect, providing a kind of image processing method, it is applied on business device, there is creation on the business device
Main thread, which comprises
Asynchronous thread based on selection is treated load image and is drawn, the image after being drawn;
Rendering processing is carried out to the image after the drafting by the main thread, the image after being rendered;
The image after the rendering is shown by display interface.
In one possibly implementation, the asynchronous thread is stored in the thread pool created on the business device
In,
The selection asynchronous thread, including any one of following:
Any asynchronous thread is chosen in the thread pool;
An asynchronous thread is chosen according to preset order in the thread pool.
In one possibly implementation, the triggering processing treating load image and being drawn, comprising:
Based on the corresponding relationship of the image to be loaded corresponding cell and display interface, to the image to be loaded into
Row is drawn;
The corresponding relationship of the image to be loaded corresponding cell and display interface, including any one of following:
The corresponding cell of the image to be loaded is in the display interface;
The corresponding cell of the image to be loaded is adjacent the pre- of the currently displayed cell of the display interface
If the cell of number.
It is described that the image after the drafting is carried out at rendering by the main thread in one possibly implementation
Reason, the image after being rendered, comprising:
When the corresponding cell of the image to be loaded is moved in the display interface, by the main thread to institute
It states the image after drawing and carries out rendering processing, the image after being rendered.
Second aspect provides a kind of image processing apparatus, which is characterized in that creation has main thread in described device, institute
Stating device includes:
Drawing unit is treated load image for the asynchronous thread based on selection and is drawn, the image after being drawn;
Rendering unit, for carrying out rendering processing to the image after the drafting by the main thread, after obtaining rendering
Image;
Display unit, for showing the image after the rendering by display interface.
In one possibly implementation, the asynchronous thread is stored in the thread pool created in described device,
The drawing unit, for choosing any asynchronous thread in the thread pool;Or, in the thread pool
An asynchronous thread is chosen according to preset order.
In one possibly implementation, further includes:
Processing unit, for the corresponding relationship based on the image to be loaded corresponding cell and display interface, to institute
Image to be loaded is stated to be drawn;
The corresponding relationship of the image to be loaded corresponding cell and display interface, including any one of following:
The corresponding cell of the image to be loaded is in the display interface;
The corresponding cell of the image to be loaded is adjacent the pre- of the currently displayed cell of the display interface
If the cell of number.
In one possibly implementation, the rendering unit, for working as the corresponding cell of the image to be loaded
When being moved in the display interface, rendering processing is carried out to the image after the drafting by the main thread, is rendered
Image afterwards.
The third aspect provides a kind of electronic equipment, comprising: processor and memory;
The memory, for storing operational order;
The processor, for executing above-mentioned image processing method by calling the operational order.
Fourth aspect, provides a kind of computer readable storage medium, and the computer storage medium is calculated for storing
Machine instruction, when run on a computer, so that computer executes above-mentioned image processing method.
By above-mentioned technical proposal, technical solution provided by the present disclosure is at least had the advantage that
In the disclosure, the asynchronous thread based on selection is treated load image and is drawn, the image after being drawn;Pass through
The main thread carries out rendering processing to the image after the drafting, the image after being rendered;Institute is shown by display interface
Image after stating rendering.The above-mentioned processing that the disclosure provides, realizes the timely display to image, passes through separated progress image
It draws and is handled with rendering, improve treatment effeciency, avoid the generation of Caton phenomenon in the interface UI, increase user uses body
It tests.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the disclosure
The limitation of embodiment.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow diagram for the image processing method that the embodiment of the present disclosure provides;
Fig. 2 is that a kind of specific process flow of the possible implementation for the image processing method that the embodiment of the present disclosure provides is shown
It is intended to;
Fig. 3 is the structural schematic diagram for the image processing apparatus that the embodiment of the present disclosure provides;
Fig. 4 is the structural schematic diagram of the electronic equipment for the image processing method that the embodiment of the present disclosure provides.
Specific embodiment
Present disclose provides a kind of image processing method, device, electronic equipment and computer readable storage mediums, tie below
Attached drawing is closed, disclosure specific embodiment is described in detail.
Embodiment of the disclosure is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the disclosure, and cannot be construed to the limitation to the disclosure.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in the specification of the disclosure
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in disclosure fields.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
To keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party
Formula is described in further detail.These specific embodiments can be combined with each other below, for the same or similar concept
Or process may repeat no more in certain embodiments.In the disclosure, which can be terminal device, be also possible to
Server in the disclosure and is not specifically limited.
As shown in Figure 1, the flow diagram of the image processing method provided for the disclosure, is applied on business device, industry
Creation has main thread in business equipment, and this method comprises the following steps:
Step S101, the asynchronous thread based on selection are treated load image and are drawn, the image after being drawn;
Step S102 carries out rendering processing to the image after drafting by main thread, the image after being rendered;
Step S103 passes through the image after display interface display rendering.
In the disclosure, the asynchronous thread based on selection is treated load image and is drawn, the image after being drawn;Pass through
Main thread carries out rendering processing to the image after drafting, the image after being rendered;Pass through the figure after display interface display rendering
Picture.The above-mentioned processing that the disclosure provides, realizes the timely display to image, at the separated drafting and rendering for carrying out image
Reason, improves treatment effeciency, avoids the generation of Caton phenomenon in the interface UI, increase the usage experience of user.
Based on technical solution provided by the above-mentioned disclosure, exhaustive is carried out to the technical solution below, such as Fig. 2 institute
Show, the specific process flow diagram of the possibly implementation of one of the image processing method provided for the disclosure, for this technology
Scheme can be applied to the usage scenarios such as web page browsing, comment area browsing.
In one possibly implementation, the processing of abovementioned steps S101 specifically includes the processing of following step S201.
Step S201 treats load image by asynchronous thread and is drawn.
For the disclosure, need to treat load image drawn when, above-mentioned draw can be carried out by asynchronous thread
System processing.
In one possibly implementation, above-mentioned asynchronous thread is chosen, may include the following two kinds mode:
Creation has a thread pool on business device, and at least one asynchronous thread is stored in the thread pool.
1) any asynchronous thread is chosen in thread pool;
Specifically, an asynchronous thread is randomly selected from the thread pool to carry out above-mentioned drawing modification;
2) asynchronous thread is chosen according to preset order in thread pool.
Specifically, it is stored with multiple asynchronous threads in the thread pool, and there is certain arrangement between multiple asynchronous thread
Sequentially, then can according between asynchronous thread multiple in thread pool put in order choose an asynchronous thread carry out it is above-mentioned
Drawing modification.
Wherein, for the setting that puts in order between asynchronous thread in thread pool, it can be and configured in advance, and the row
Any specific restriction is not done in the setting of column sequence.
In one possibly implementation, the processing drawn for treating load image, trigger action can be with
Include:
Based on the corresponding relationship of image to be loaded corresponding cell and display interface, treats load image and drawn.
Wherein, the corresponding relationship of image to be loaded corresponding cell and display interface may include following any:
1) the corresponding cell of image to be loaded is in display interface;
For the disclosure, above-mentioned loading method can be referred to as real-time loading mode, as long as image that is, to be loaded is corresponding
Cell is moved in current display interface, will image to be loaded corresponding to the cell carry out at corresponding drafting
Reason.
2) the corresponding cell of image to be loaded is the adjacent predetermined number of the currently displayed cell of display interface
Cell.
For the disclosure, above-mentioned loading method can be referred to as preloading mode, i.e. cell in current display interface
When there is certain positional relationship with cell corresponding to the image to be loaded, such as the cell A in current display interface
Position is 1, and the position of the corresponding cell B of image to be loaded is 4 namely cell A is adjacent the 4th of cell B
Cell also can carry out corresponding preload process to the image to be loaded at this time, can directly extract the pre-add subsequent
The image that load obtains is given to main thread and carries out rendering processing.
Wherein, above-mentioned cell can be stored in a cell list, and all in the cell list
Cell can equally be arranged according to a scheduled sequence.
In one possibly implementation, the processing of abovementioned steps S102 specifically includes the processing of following step S202.
Step S202 carries out rendering processing to the image after drafting by main thread.
For the disclosure, when the corresponding cell of image to be loaded is moved in display interface, it can by above-mentioned
Main thread rendering processing is carried out to the image after drafting, thus the image after being rendered.
In one possibly implementation, when treating load image using above-mentioned real-time loading mode, then when to
When the corresponding cell of load image is moved in display interface, the image to be loaded is drawn by the asynchronous thread of selection
System, and it is given to main thread by obtained image is drawn, the image obtained by main thread to the drafting carries out rendering processing.
In one possibly implementation, when treating load image using above-mentioned preloading mode, then when to be added
When carrying the corresponding cell of image and being moved in display interface, image after directly extracting the corresponding drafting of the image to be loaded,
And it is given to main thread by obtained image is drawn, the image obtained by main thread to the drafting carries out rendering processing.
In one possibly implementation, the processing of abovementioned steps S103 specifically includes the processing of following step S203.
Step S203 passes through the image after display interface display rendering.
For the disclosure, by main thread to image rendering after, the image after rendering is given on the interface UI and is shown.
Wherein, in the disclosure, either above-mentioned image rendering process or image rendering process, exclusive or are images
Display process, can be handled using existing corresponding operation, therefore not to specific in disclosed technique scheme
Image rendering process, image rendering process and image display process do specific explaination.
In the disclosure, the asynchronous thread based on selection is treated load image and is drawn, the image after being drawn;Pass through
Main thread carries out rendering processing to the image after drafting, the image after being rendered;Pass through the figure after display interface display rendering
Picture.The above-mentioned processing that the disclosure provides, realizes the timely display to image, at the separated drafting and rendering for carrying out image
Reason, improves treatment effeciency, avoids the generation of Caton phenomenon in the interface UI, increase the usage experience of user, and pass through
The introducing of asynchronous thread improves the processing speed of main thread, and then effectively improves the fluency of display.
Present disclose provides a kind of structural schematic diagrams of image processing apparatus, as shown in figure 3, the image procossing of the disclosure fills
Setting creation on 30 has main thread, which may include: drawing unit 31, rendering unit 32, display unit 33 and processing
Unit 34, wherein
Drawing unit 31 is treated load image for the asynchronous thread based on selection and is drawn, the figure after being drawn
Picture;
Rendering unit 32, for carrying out rendering processing to the image after drafting by main thread, the image after being rendered;
Display unit 33, for passing through the image after display interface display rendering.
In one possibly implementation, asynchronous thread is stored in the thread pool created on device,
Drawing unit 31, for choosing any asynchronous thread in thread pool;Or, for suitable according to presetting in thread pool
Sequence chooses an asynchronous thread.
In one possibly implementation, further includes:
Processing unit 34, for the corresponding relationship based on image to be loaded corresponding cell and display interface, to be added
Image is carried to be drawn;
The corresponding relationship of image to be loaded corresponding cell and display interface, including any one of following:
The corresponding cell of image to be loaded is in display interface;
The corresponding cell of image to be loaded is the adjacent predetermined number of the currently displayed cell of display interface
Cell.
In one possibly implementation, rendering unit 32, for being moved to when the corresponding cell of image to be loaded
When in display interface, rendering processing is carried out to the image after drafting by main thread, the image after being rendered.
In the disclosure, the asynchronous thread based on selection is treated load image and is drawn, the image after being drawn;Pass through
Main thread carries out rendering processing to the image after drafting, the image after being rendered;Pass through the figure after display interface display rendering
Picture.The above-mentioned processing that the disclosure provides, realizes the timely display to image, at the separated drafting and rendering for carrying out image
Reason, improves treatment effeciency, avoids the generation of Caton phenomenon in the interface UI, increase the usage experience of user, and pass through
The introducing of asynchronous thread improves the processing speed of main thread, and then effectively improves the fluency of display.
Below with reference to Fig. 4, it illustrates the electronic equipment (end of example as shown in figure 1 for being suitable for being used to realize the embodiment of the present disclosure
End equipment or server) 400 structural schematic diagram.Terminal device in the embodiment of the present disclosure can include but is not limited to such as move
Mobile phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP are (portable more
Media player), the mobile terminal and such as number TV, desktop computer of car-mounted terminal (such as vehicle mounted guidance terminal) etc.
Etc. fixed terminal.Electronic equipment shown in Fig. 4 is only an example, should not function and use to the embodiment of the present disclosure
Range band carrys out any restrictions.
As shown in figure 4, electronic equipment 400 may include processing unit (such as central processing unit, graphics processor etc.)
401, random access can be loaded into according to the program being stored in read-only memory (ROM) 402 or from storage device 408
Program in memory (RAM) 403 and execute various movements appropriate and processing.In RAM 403, it is also stored with electronic equipment
Various programs and data needed for 400 operations.Processing unit 401, ROM 402 and RAM 403 pass through the phase each other of bus 404
Even.Input/output (I/O) interface 405 is also connected to bus 404.
In general, following device can connect to I/O interface 405: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 406 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 407 of dynamic device etc.;Storage device 408 including such as tape, hard disk etc.;And communication device 409.Communication device
409, which can permit electronic equipment 400, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 4 shows tool
There is the electronic equipment 400 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 409, or from storage device 408
It is mounted, or is mounted from ROM402.When the computer program is executed by processing unit 401, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: obtaining at least two internet protocol addresses;Send to Node evaluation equipment includes institute
State the Node evaluation request of at least two internet protocol addresses, wherein the Node evaluation equipment is internet from described at least two
In protocol address, chooses internet protocol address and return;Receive the internet protocol address that the Node evaluation equipment returns;Its
In, the fringe node in acquired internet protocol address instruction content distributing network.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs
When being executed by the electronic equipment, so that the electronic equipment: receiving the Node evaluation including at least two internet protocol addresses and request;
From at least two internet protocol address, internet protocol address is chosen;Return to the internet protocol address selected;Wherein,
The fringe node in internet protocol address instruction content distributing network received.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the
One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
The electronic equipment that the disclosure provides, suitable for any embodiment of the above method, details are not described herein.
In the disclosure, the asynchronous thread based on selection is treated load image and is drawn, the image after being drawn;Pass through
The main thread carries out rendering processing to the image after the drafting, the image after being rendered;Institute is shown by display interface
Image after stating rendering.The above-mentioned processing that the disclosure provides, realizes the timely display to image, passes through separated progress image
It draws and is handled with rendering, improve treatment effeciency, avoid the generation of Caton phenomenon in the interface UI, increase user uses body
It tests, and by the introducing of asynchronous thread, improves the processing speed of main thread, and then effectively improve the fluency of display.
Present disclose provides a kind of computer readable storage medium, the computer readable storage medium is for storing computer
Instruction, when run on a computer, so that computer executes above-mentioned image processing method.
The computer readable storage medium that the disclosure provides, it is no longer superfluous herein suitable for any embodiment of the above method
It states.
In the disclosure, the asynchronous thread based on selection is treated load image and is drawn, the image after being drawn;Pass through
The main thread carries out rendering processing to the image after the drafting, the image after being rendered;Institute is shown by display interface
Image after stating rendering.The above-mentioned processing that the disclosure provides, realizes the timely display to image, passes through separated progress image
It draws and is handled with rendering, improve treatment effeciency, avoid the generation of Caton phenomenon in the interface UI, increase user uses body
It tests, and by the introducing of asynchronous thread, improves the processing speed of main thread, and then effectively improve the fluency of display.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram disclosed in the disclosure and/or flow graph.
Wherein, the modules of disclosure device can integrate in one, can also be deployed separately.Above-mentioned module can close
And be a module, multiple submodule can also be further split into.
It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, module or stream in attached drawing
Journey is not necessarily implemented necessary to the disclosure.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment
It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On
The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.
Above-mentioned disclosure serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Disclosed above is only several specific embodiments of the disclosure, and still, the disclosure is not limited to this, any ability
What the technical staff in domain can think variation should all fall into the protection scope of the disclosure.
Claims (10)
1. a kind of image processing method, which is characterized in that be applied on business device, creation has main line on the business device
Journey, which comprises
Asynchronous thread based on selection is treated load image and is drawn, the image after being drawn;
Rendering processing is carried out to the image after the drafting by the main thread, the image after being rendered;
The image after the rendering is shown by display interface.
2. the method as described in claim 1, which is characterized in that the asynchronous thread, which is stored in, to be created on the business device
In thread pool,
The selection asynchronous thread, including any one of following:
Any asynchronous thread is chosen in the thread pool;
An asynchronous thread is chosen according to preset order in the thread pool.
3. method according to claim 1 or 2, which is characterized in that the triggering processing treating load image and being drawn,
Include:
Based on the corresponding relationship of the image to be loaded corresponding cell and the display interface, to the image to be loaded into
Row is drawn;
The corresponding relationship of the image to be loaded corresponding cell and display interface, including any one of following:
The corresponding cell of the image to be loaded is in the display interface;
The corresponding cell of the image to be loaded is adjacent the default of the currently displayed cell of the display interface
Several cells.
4. method as claimed in claim 3, which is characterized in that it is described by the main thread to the image after the drafting into
Row rendering processing, the image after being rendered, comprising:
When the corresponding cell of the image to be loaded is moved in the display interface, drawn by the main thread to described
Image after system carries out rendering processing, the image after being rendered.
5. a kind of image processing apparatus, which is characterized in that creation has main thread in described device, and described device includes:
Drawing unit is treated load image for the asynchronous thread based on selection and is drawn, the image after being drawn;
Rendering unit, for carrying out rendering processing to the image after the drafting by the main thread, the figure after being rendered
Picture;
Display unit, for showing the image after the rendering by display interface.
6. device as claimed in claim 5, which is characterized in that the asynchronous thread is stored in the thread created in described device
Chi Zhong,
The drawing unit, for choosing any asynchronous thread in the thread pool;Or, in the thread pool according to
Preset order chooses an asynchronous thread.
7. such as device described in claim 5 or 6, which is characterized in that further include:
Processing unit, for the corresponding relationship based on the image to be loaded corresponding cell and display interface, to it is described to
Load image is drawn;
The corresponding relationship of the image to be loaded corresponding cell and display interface, including any one of following:
The corresponding cell of the image to be loaded is in the display interface;
The corresponding cell of the image to be loaded is adjacent the default of the currently displayed cell of the display interface
Several cells.
8. device as claimed in claim 7, which is characterized in that the rendering unit, for being corresponded to when the image to be loaded
Cell when being moved in the display interface, rendering processing is carried out to the image after the drafting by the main thread,
Image after being rendered.
9. a kind of electronic equipment characterized by comprising processor and memory;
The memory, for storing operational order;
The processor, for by calling any one of the operational order, execution the claims 1 to claim 4
The image processing method.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium refers to for storing computer
It enables, when run on a computer, so that computer executes the claims 1 to described in any one of claim 4
Image processing method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099986.5A CN109801210A (en) | 2019-01-31 | 2019-01-31 | Image processing method, device, electronic equipment and computer readable storage medium |
PCT/CN2020/070315 WO2020156035A1 (en) | 2019-01-31 | 2020-01-03 | View processing method and apparatus, and electronic device and computer-readable storage medium, and image processing method and apparatus, and electronic device and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099986.5A CN109801210A (en) | 2019-01-31 | 2019-01-31 | Image processing method, device, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109801210A true CN109801210A (en) | 2019-05-24 |
Family
ID=66560860
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910099986.5A Pending CN109801210A (en) | 2019-01-31 | 2019-01-31 | Image processing method, device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109801210A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190590A (en) * | 2020-01-07 | 2020-05-22 | 广州虎牙科技有限公司 | Catton optimization method, device, terminal and computer readable storage medium |
WO2020156035A1 (en) * | 2019-01-31 | 2020-08-06 | 北京字节跳动网络技术有限公司 | View processing method and apparatus, and electronic device and computer-readable storage medium, and image processing method and apparatus, and electronic device and computer-readable storage medium |
CN111880868A (en) * | 2020-06-16 | 2020-11-03 | 上海趣蕴网络科技有限公司 | Asynchronous image drawing method and device based on multi-level cache |
CN112115392A (en) * | 2020-08-18 | 2020-12-22 | 北京奇艺世纪科技有限公司 | Image display method, image display device, electronic equipment and readable storage medium |
WO2021185195A1 (en) * | 2020-03-18 | 2021-09-23 | 深圳市瑞立视多媒体科技有限公司 | Multi-thread-based motion capturing method and apparatus, device and storage medium |
CN113779451A (en) * | 2020-09-16 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Page loading method and device |
CN115482146A (en) * | 2022-08-31 | 2022-12-16 | 北京四维远见信息技术有限公司 | Method, device, equipment and storage medium for automatic cross-image pair roaming of stereoscopic image |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103617165A (en) * | 2013-10-22 | 2014-03-05 | 小米科技有限责任公司 | Picture loading method, device and terminal |
CN104834544A (en) * | 2015-05-04 | 2015-08-12 | 广州杰赛科技股份有限公司 | Data loading method and device |
CN107729094A (en) * | 2017-08-29 | 2018-02-23 | 口碑(上海)信息技术有限公司 | The method and device that a kind of user interface renders |
CN108549562A (en) * | 2018-03-16 | 2018-09-18 | 阿里巴巴集团控股有限公司 | A kind of method and device of image load |
-
2019
- 2019-01-31 CN CN201910099986.5A patent/CN109801210A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103617165A (en) * | 2013-10-22 | 2014-03-05 | 小米科技有限责任公司 | Picture loading method, device and terminal |
CN104834544A (en) * | 2015-05-04 | 2015-08-12 | 广州杰赛科技股份有限公司 | Data loading method and device |
CN107729094A (en) * | 2017-08-29 | 2018-02-23 | 口碑(上海)信息技术有限公司 | The method and device that a kind of user interface renders |
CN108549562A (en) * | 2018-03-16 | 2018-09-18 | 阿里巴巴集团控股有限公司 | A kind of method and device of image load |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020156035A1 (en) * | 2019-01-31 | 2020-08-06 | 北京字节跳动网络技术有限公司 | View processing method and apparatus, and electronic device and computer-readable storage medium, and image processing method and apparatus, and electronic device and computer-readable storage medium |
CN111190590A (en) * | 2020-01-07 | 2020-05-22 | 广州虎牙科技有限公司 | Catton optimization method, device, terminal and computer readable storage medium |
CN111190590B (en) * | 2020-01-07 | 2024-03-15 | 广州虎牙科技有限公司 | Katon optimization method, device, terminal and computer readable storage medium |
WO2021185195A1 (en) * | 2020-03-18 | 2021-09-23 | 深圳市瑞立视多媒体科技有限公司 | Multi-thread-based motion capturing method and apparatus, device and storage medium |
CN111880868A (en) * | 2020-06-16 | 2020-11-03 | 上海趣蕴网络科技有限公司 | Asynchronous image drawing method and device based on multi-level cache |
CN112115392A (en) * | 2020-08-18 | 2020-12-22 | 北京奇艺世纪科技有限公司 | Image display method, image display device, electronic equipment and readable storage medium |
CN112115392B (en) * | 2020-08-18 | 2023-08-25 | 北京奇艺世纪科技有限公司 | Image display method, device, electronic equipment and readable storage medium |
CN113779451A (en) * | 2020-09-16 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Page loading method and device |
CN115482146A (en) * | 2022-08-31 | 2022-12-16 | 北京四维远见信息技术有限公司 | Method, device, equipment and storage medium for automatic cross-image pair roaming of stereoscopic image |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109801210A (en) | Image processing method, device, electronic equipment and computer readable storage medium | |
CN109597617B (en) | Method and device for quickly generating service page based on template | |
CN109788334A (en) | Barrage processing method, device, electronic equipment and computer readable storage medium | |
CN110020329B (en) | Method, device and system for generating webpage | |
CN109634609B (en) | Dynamic popup display method, system, equipment and storage medium | |
CN111581555B (en) | Document loading method, device, equipment and storage medium | |
CN111367516B (en) | Application interface generation method and device and electronic equipment | |
CN109491742A (en) | Page tabular rendering method and device | |
CN110069308A (en) | The page starts method, apparatus, electronic equipment and storage medium | |
CN111324376B (en) | Function configuration method, device, electronic equipment and computer readable medium | |
CN110007936A (en) | Data processing method and device | |
CN111309304B (en) | Method, device, medium and electronic equipment for generating IDL file | |
CN112256275A (en) | Code obfuscation method, device, electronic device and medium | |
CN109408387A (en) | Page test method and device | |
CN111382381B (en) | User data sharing method and device, mobile terminal and storage medium | |
CN111552531B (en) | Page display method, device, terminal and storage medium | |
CN111258786B (en) | Decoupling method, device, terminal and storage medium in layered architecture | |
CN109901934A (en) | The method and apparatus for generating interface help document | |
CN109218339A (en) | request processing method and device | |
CN110262736B (en) | Data table creating method and device | |
CN112445517B (en) | Inlet file generation method, device, electronic equipment and computer readable medium | |
CN110222777A (en) | Processing method, device, electronic equipment and the storage medium of characteristics of image | |
CN112068742A (en) | Method, device, terminal and storage medium for controlling application window | |
CN110865810A (en) | Resource multiplexing method and device, electronic equipment and computer readable storage medium | |
CN109933380A (en) | Online table piecemeal loading method and 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: 20190524 |