CN109842673A - Picture downloads device and method, picture downloading accelerator and medium - Google Patents
Picture downloads device and method, picture downloading accelerator and medium Download PDFInfo
- Publication number
- CN109842673A CN109842673A CN201811564550.0A CN201811564550A CN109842673A CN 109842673 A CN109842673 A CN 109842673A CN 201811564550 A CN201811564550 A CN 201811564550A CN 109842673 A CN109842673 A CN 109842673A
- Authority
- CN
- China
- Prior art keywords
- picture
- queue
- download
- serial number
- downloading
- 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
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses picture downloading device and method, picture downloading accelerator and media.It includes: queue management device that the picture, which downloads equipment, it is configured as the downloading to picture and carries out the management of single thread deque, wherein, first queue is current downloading queue, for controlling actual download sequence, second queue is pre-download queue, and for adjusting the pre-download sequence of downloading buffer pool, and first queue and second queue are tandem queue.The downloading process of picture is managed by using single thread deque, can be maximized while not excessive occupying system resources and be improved picture speed of download, promote customer experience.
Description
Technical field
The present invention relates to picture download technology more particularly to picture downloading device and method, picture downloading accelerator and Jie
Matter.
Background technique
When user uses the advance of player, fallback function, player can provide the preview diagram page of wicket, display pair
Preview graph frame picture between seasonable, to facilitate user that the required time advanced, retreated is accurately positioned.
It follows that the speed of preview graph downloading is faster, user experience is better, once and preview graph speed of download is slow, meeting
The practicability of the function is caused to decline, user experience is deteriorated.
Traditional progressive download preview graph mode causes speed of download slow, and cannot preferentially obtain the desired figure of user
Piece.
Traditional asynchronous downloading preview graph mode needs to service using multithreading, and these multithreading services need to wait
System distributes resource, and when system resource is insufficient and/or this downloading task priority is lower, it is slow to will lead to speed of download, and
Cause excessively to occupy resource.
Therefore, it needs a kind of neither excessive occupy resource, picture speed of download, the preferential user needs of obtaining can be promoted again
The solution of picture.
Summary of the invention
One of in order to solve problem above, the present invention provides a kind of picture downloading device and method, picture downloadings to accelerate
Device and medium promote customer experience to maximize and improve picture speed of download while not excessive occupying system resources.
According to one embodiment of present invention, a kind of picture downloading equipment is provided, comprising: queue management device is configured as
The management of single thread deque is carried out to the downloading of picture, wherein first queue is current downloading queue, for controlling actual download
Sequentially, second queue is pre-download queue, for adjusting the pre-download sequence of downloading buffer pool, and first queue and the second team
Column are tandem queue.
Optionally, above-mentioned first queue is used to place the serial number for the picture currently downloaded and downloaded, second queue
For placing the serial number of the picture of downloading buffer pool.
Optionally, above-mentioned picture downloads equipment further include: pre-download adjuster is configured as once for choosing target figure
The picture of picture in piece set chooses operation to be triggered, then the picture pre-download sequence in second queue is adjusted, so that the choosing
The serial number of middle picture and in Target Photo set with the serial number of the picture that choose picture adjacent pre-download sequentially before
It moves.
Optionally, the picture sequence numbers in above-mentioned first queue are derived from the picture sequence of pre-download front in second queue
Number.
According to another embodiment of the invention, a kind of picture method for down loading is provided, comprising: carry out to the downloading of picture single
Thread deque management, wherein first queue is current downloading queue, and for controlling actual download sequence, second queue is pre-
Queue is downloaded, for adjusting the pre-download sequence of downloading buffer pool, and first queue and second queue are tandem queue.
Optionally, above-mentioned first queue is used to place the serial number for the picture currently downloaded and downloaded, second queue
For placing the serial number of the picture of downloading buffer pool.
Optionally, above-mentioned picture method for down loading further include: once for choosing the picture of the picture in Target Photo set
It chooses operation to be triggered, then the picture pre-download sequence in second queue is adjusted, so that this is chosen the serial number of picture and in mesh
It sequentially moves forward with the serial number of the picture that choose picture adjacent in pre-download in piece set of marking on a map.
Optionally, the picture sequence numbers in above-mentioned first queue are derived from the picture sequence of pre-download front in second queue
Number.
According to one embodiment of present invention, a kind of picture method for down loading is provided, comprising: creation is working as tandem queue
Preceding downloading queue and pre-download queue, wherein current downloading queue is sky, includes in Target Photo set in pre-download queue
The serial number of each picture, these serial numbers are arranged in order in pre-download queue;When needing to download the picture in Target Photo set
When, the serial number of required picture is packed into downloading queue, and the serial number of the required picture is deleted from pre-download queue;And work as
After the completion of the required picture downloading, first serial number is taken out from pre-download queue head, is packed into the tail portion of current downloading queue, under
The corresponding picture of first serial number is carried, and first serial number is deleted from pre-download queue.
Optionally, wherein the picture sequence when picture chooses operation to be triggered, in adjustment in real time and update pre-download queue
Number, that is, the serial number X for the picture that user chooses is inserted into the head of pre-download queue, while by before and after serial number X adjacent two
The serial number (X+1) of picture, (X-1) are inserted into behind the serial number X in pre-download queue.
According to one embodiment of present invention, a kind of picture downloading equipment is provided, comprising: queue creating device is configured
For create be tandem queue current downloading queue and pre-download queue, wherein current downloading queue is sky, pre-download team
It include the serial number of each picture in Target Photo set in column, these serial numbers are arranged in order in pre-download queue;Queue pipe
Device is managed, when needing to download the picture in Target Photo set, the serial number of required picture is packed into downloading queue, and this is required
The serial number of picture is deleted from pre-download queue, and after the completion of the required picture downloading, is taken out from pre-download queue head
First serial number is packed into the tail portion of current downloading queue, downloads the corresponding picture of first serial number, and by first serial number
It is deleted from pre-download queue.
Optionally, above-mentioned picture downloading equipment further includes pre-download manager, is configured for choosing operation quilt when picture
When triggering, the serial number X for the picture that user chooses is inserted into the head of pre-download queue by the pre-download manager, while will be with
The serial number (X+1) of two adjacent pictures, (X-1) are inserted into the serial number X's in pre-download queue before and after the picture chosen
Below.
Still another embodiment in accordance with the present invention provides a kind of picture downloading accelerator, comprising: processor;And storage
Device is stored thereon with executable code, when the executable code is executed by the processor, executes the processor
One of the method for face description.
According to still another embodiment of the invention, a kind of non-transitory machinable medium is provided, is stored thereon with
Executable code makes the processor execute one of method described above when the executable code is executed by processor.
The present invention manages the downloading process of picture by using single thread deque, can either avoid it is traditional it is asynchronous under
Multithreading caused by load mode occupies resource and the excessively slow problem of speed, also can be avoided caused by traditional progressive download mode
The problem of speed is excessively slow and the desired picture of user cannot be downloaded in time, can be in not excessive occupying system resources to realize
While, picture speed of download is greatly improved, effectively promotion customer experience.
Detailed description of the invention
Disclosure illustrative embodiments are described in more detail in conjunction with the accompanying drawings, the disclosure above-mentioned and its
Its purpose, feature and advantage will be apparent, wherein in disclosure illustrative embodiments, identical appended drawing reference
Typically represent same parts.
Fig. 1 gives the schematic block diagram of the image downloading equipment of an exemplary embodiment according to the present invention.
Fig. 2 gives the schematic diagram of the dual serial queue of the initialization of an exemplary embodiment according to the present invention.
Fig. 3 give the download pictures in sequence of an exemplary embodiment according to the present invention deque operation and
The schematic diagram of administrative mechanism.
Fig. 4 gives the deque's operation preferentially downloaded and administrative mechanism of an exemplary embodiment according to the present invention
Schematic diagram.
Fig. 5 gives the specific example of the sequence of an adjustment second queue.
Fig. 6 gives the schematic diagram of the image download management mode of an exemplary embodiment according to the present invention.
Fig. 7 gives the schematic flow chart of the image downloading method of an exemplary embodiment according to the present invention.
Fig. 8 gives the schematic block diagram of the image downloading equipment of another exemplary embodiment according to the present invention.
Fig. 9 gives the schematic block diagram of the image downloading accelerator of an exemplary embodiment according to the present invention.
Specific embodiment
The preferred embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Preferred embodiment, however, it is to be appreciated that may be realized in various forms the disclosure without the embodiment party that should be illustrated here
Formula is limited.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and can be by the disclosure
Range is completely communicated to those skilled in the art.What needs to be explained here is that number, serial number and attached drawing in the application
Mark it is merely for convenience description and occur, for step of the invention, sequence etc. be not limited in any way, unless
The execution that step has been explicitly pointed out in specification has specific sequencing.
As previously mentioned, will lead to speed of download to solve traditional progressive download preview graph or asynchronous downloading preview graph
Slowly, the problem of excessively occupying resource, the present invention provide a kind of neither excessive occupancy resource, can be promoted again preview graph speed of download,
The preferential solution for obtaining the preview graph that user wants.
Fig. 1 gives the schematic block diagram of the picture downloading equipment of an exemplary embodiment according to the present invention.
In the present invention, the management of single thread deque, one of queue are carried out to the downloading of picture (such as preview graph)
It is current downloading queue, for controlling actual download sequence, another queue is pre-download queue, for adjusting downloading buffer pool
Pre-download sequence.
As shown in Figure 1, the image downloading equipment 100 of an exemplary embodiment according to the present invention may include queue pipe
Device 110 is managed, which can be configured as the downloading to picture and carry out the management of single thread deque.
Wherein, the first queue that queue management device 110 is managed is current downloading queue, suitable for controlling actual download
Sequence, the second queue that queue management device 110 is managed are pre-download queues, for adjusting the pre-download sequence of downloading buffer pool,
And first queue and second queue are tandem queue, as shown in Figure 2.
Further optionally, above-mentioned image downloading equipment 100 can also include pre-download adjuster 120, pre-download adjuster
120 can be configured as once being used to choose the picture of picture that operation is chosen to be triggered, then the picture adjusted in second queue is pre-
Downloading order so that this choose the serial number of picture and in Target Photo set with the serial number of the picture that choose picture adjacent
It sequentially moves forward in pre-download.
In order to enable the present invention becomes apparent from and is easier to understand, Fig. 2 gives an exemplary implementation according to the present invention
The schematic diagram of the dual serial queue of the initialization of example.
As shown in Fig. 2, first queue (queue 1) and second queue (queue 2) are tandem queue, wherein first queue
It can be sky under init state, second queue may include the picture sequence numbers of Target Photo set under init state
Whole or part of it.
First queue is current downloading queue, including the serial number for the picture currently downloaded and downloaded, that is, can be with
Before wanting one picture of actual download, the serial number of the picture is put into first queue, for recording and controlling picture
Actual download sequence.Wherein, currently download queue (first queue) in picture serial number can according in figure from left to right
Sequence successively record the picture downloaded and downloaded, in this way, when there is new picture to download, new picture
Serial number can be placed into the tail portion (rightmost side) of the queue.
Second queue is pre-download queue, that is, the serial number for the picture having not yet been downloaded is recorded in second queue, and can
With before wanting one picture of actual download, the serial number of the picture in second queue is deleted (can with by the picture
Serial number to be put into first queue corresponding).Furthermore, it is possible to the pre-download sequence of buffer pool is downloaded in adjustment in the second queue,
I.e., it is possible to putting in order for the picture sequence numbers in second queue be adjusted as needed, so that desired picture can be downloaded preferentially.
Wherein, can successively record according to the sequence in figure from left to right can for the serial number of the picture in pre-download queue (second queue)
Can be by picture to be downloaded, in this way, when there is new picture to download, the picture on the head (leftmost side) in pre-download queue
Serial number can be placed into the tail portion (rightmost side of current downloading queue) of current downloading queue.
The sortord that note that the serial number of the picture in the first queue and second queue enumerated above is only that one kind is shown
The example of meaning can also in other ways be ranked up the serial number of picture, and the present invention is not intended to be limited in any this.
That is, the present invention at least supports two kinds of downloading modes, i.e. progressive download mode and preferential downloading mode, such as scheme
Shown in 6.Specifically, if not adjusting the sequence of the picture sequence numbers in second queue, it can be according to picture sequence numbers
Original sequence (for example, according to sequence of the serial number size of the picture in Target Photo set) in two queues successively downloads correspondence
Each picture, as shown in Figure 3;When the sequence for needing to adjust the picture sequence numbers in second queue, such as when user chooses picture
When operation occurs, then the movement of the sequence of the picture sequence numbers in adjustment second queue is triggered.For example, when user uses player
When advance, fallback function, player can provide the preview diagram page of wicket, show the preview graph frame picture of corresponding time, side
Just the time advanced needed for user is accurately positioned, retreated, and user chooses interested time point or time in which can be convenient
The preview graph (such as passing through the advance of progress bar or player, backspace button etc.) of section.When user have selected it is interested pre-
Look at figure when, which downloads fastlyer, and user experience is better.At this time, if it is possible to preferential downloading user choose this is pre-
Look at figure, then the available significant increase of user experience.And preferential downloading mode as shown in Figure 4 through the invention, Ke Yishi
The now function.
Fig. 3 give the download pictures in sequence of an exemplary embodiment according to the present invention deque operation and
The schematic diagram of administrative mechanism.
As shown in figure 3, placed 0,1,2 in queue 1 in order ..., this N number of picture sequence numbers of N-1, queue 2
In placed this M-N+1 picture sequence numbers of N, N+1 ..., M in order, this indicates 0,1,2 ..., N-1 this N number of picture is
It is downloaded or is being downloaded (for instance it can be possible that top n picture has been downloaded, picture N is being downloaded), N, N+1 ..., M
This M-N+1 picture is not yet downloaded, that is, is also in downloading buffer pool.
If continuing progressive download mode, can the last one picture N-1 in queue 1 be downloaded and complete it
Afterwards, the picture N (as shown in Figure 4) for coming front is taken from second queue, is put into queue 1 to start download pictures N, while from
N is deleted in queue 2.
In this example, the picture sequence numbers in queue 1 and 2 are arranged according to size order, are arranged according to size order
The mode of column is more conform with the requirement for playing preview graph.However, it is noted that the picture sequence numbers in queue 1 and 2 can certainly root
It according to demand, is in other ways ranked up, the present invention is not intended to be limited in any this.
Fig. 4 gives the deque's operation preferentially downloaded and administrative mechanism of an exemplary embodiment according to the present invention
Schematic diagram, and Fig. 5 show one adjustment queue 2 in sequence specific example, to be illustrated more clearly that the team of queue 2
Column adjustment operation.
As shown in figure 4, choose operation to be triggered when picture, for example, when the user clicks backspace button or pulled into
Item is spent, the picture to be downloaded at this time (its picture sequence numbers is X) cannot may be downloaded according to placing under order above,
Need preferentially to download the picture frame picture X (for example, picture 5 as shown in Figure 5) that user is chosen by button or progress bar, this
When, picture sequence numbers X is inserted into the head of queue 2, two adjacent with the picture can be placed behind picture sequence numbers X simultaneously
Next serial number X+1, the X-1 of picture may most want to see after the picture that downloading user chooses, to continue downloading user in time
Two frame pictures.
It placed 0,1,2 now in queue 1 ..., this N+1 picture sequence numbers of N placed X, X+ in queue 2
1, X-1, N+1 ..., M these picture sequence numbers, wherein X, X+1, X-1 (for example, as shown in Figure 85,6,4) these three picture sequences
Number sequence chosen operation to trigger sequence by user to adjust, so that their sequence move forward, that is, have occurred sequentially
Adjustment.Here, it is contemplated that after the picture downloading that user chooses, next user may most want to see adjacent with before and after the picture
Two pictures, it is subsequent and at present to facilitate so also the serial number of this two adjacent pictures is moved forward in queue 2
It carries.
Preferential downloading mode has been had begun at this time, i.e., after first being adjusted to picture sequence numbers, next in queue 1
Picture sequence numbers X is placed in middle tail portion, then starts download pictures X, while deleting picture sequence numbers X from the head of queue 2.
After download pictures X, if picture chooses operation not to be triggered, progressive download mode can be executed, i.e.,
Picture sequence numbers X+1 is put into 1 tail portion of queue, starts download pictures X+1, then deletes X+1 from 2 head of queue.
And if picture chooses operation to be triggered, preferential downloading mode is continued to execute, i.e., by the serial number for the picture chosen
Forward, such as it is advanced to 2 head of queue, while the serial number of two pictures adjacent with its front and back also being moved forward, for example, immediately in
It chooses behind picture sequence numbers, then chooses the serial number of picture to be put into queue 1 this, start to download this and choose picture, while from
The serial number of the picture is deleted in queue 2.
By above description it is found that the present invention can support progressive download and preferential downloading two ways, and by pair
The downloading of picture carries out the double array managements of single thread, can be realized neither excessive occupying system resources, and can be quick-downloading, and energy
The desired picture of user is obtained more in time.
It note that the example that fig. 3 above and Fig. 4 provide cannot be construed as limiting the invention, the present invention is for suitable
There is no the limitations supported sequentially for the support of sequence downloading mode and preferential downloading mode, that is, progressive download can be first carried out, with
When switch to preferential downloading mode, can also directly advanced row major downloading, switch to progressive download mode at any time.
Fig. 7 gives the schematic flow chart of the image downloading method of an exemplary embodiment according to the present invention.
As shown in fig. 7, in step S110, initialization two queues of creation, one is currently to download queue A (i.e. the
One queue), one is pre-download queue B (i.e. second queue), and regulation A, B queue are tandem queue.Also, A's is initial
Changing downloading data can be sky, and the initialization downloading data of B can be [0,1,2 ..., M] (i.e., it is possible to carry out sequence by picture sequence numbers
Arrangement).
It, can be first by picture sequence numbers N (N is the integer more than or equal to 0) dress when needing to obtain picture in step S120
Enter A, and picture sequence numbers N is deleted from B.
First serial number is taken out from the head of B, is packed into A's after the completion of the picture downloading of serial number N in step S130
The corresponding picture is downloaded, and the serial number is deleted from B in tail portion.
Serial number in step S140, when picture chooses operation to be triggered, in adjustment in real time and update queue B, that is, will use
The serial number X for the picture that family is chosen is inserted into the head of queue B, while by the serial number (X+1) of two adjacent pictures of its front and back,
(X-1) it is inserted into behind the X in queue B.
Through the above steps, can guarantee in the case where Internet resources expend least situation, the preferential figure downloading user and choosing
Piece achievees the purpose that quickly to show.To which, the present invention can accelerate user to want to see while minimum occupies Internet resources
The downloading and displaying of picture.
In addition, as previously mentioned, other picture download management mode can be parallel queue's processing, but due to download pictures
File is relatively time-consuming larger, and resource needed for other broadcastings is higher than the priority that preview graph is downloaded, it is therefore desirable to avoid using
Parallel mode download pictures occupy Internet resources.In addition, being also possible to a queue, using under sequence about serial manner
It carries, but this mode will lead to user and want that the picture seen cannot load out rapidly, relatively etc. to be delayed longer.
And the present invention uses tandem queue mode, can download preview graph needs Internet resources to be used to be reduced to most
It is small, more Internet resources are saved to the higher business of other priority;Moreover, the present invention also uses deque to control, it can
Dynamically to adjust the sequence of queue, guarantee that the picture that user chooses preferentially can be downloaded and be shown, promotes user experience.
Fig. 8 gives the schematic block diagram of the image downloading equipment of another exemplary embodiment according to the present invention.
As shown in figure 8, the picture downloading equipment 200 of another exemplary embodiment according to the present invention may include queue
Creating device 205, queue management device 210.
Wherein, queue creating device 205 is configured for the current downloading queue and pre-download that creation is tandem queue
Queue, wherein current downloading queue is sky, includes the serial number of each picture in Target Photo set in pre-download queue, these
Serial number is arranged in order in pre-download queue.
Queue management device 210 is configured for, when needing to download the picture in Target Photo set, by required picture
Serial number is packed into downloading queue, and the serial number of the required picture is deleted from pre-download queue, and when the required picture downloading
After the completion, first serial number is taken out from pre-download queue head, is packed into the tail portion of current downloading queue, downloads first serial number
Corresponding picture, and first serial number is deleted from pre-download queue.
Further optionally, above-mentioned picture downloading equipment 200 can also include pre-download manager 220, pre-download manager
220 are configured for when picture chooses operation to be triggered, and the pre-download manager inserts the serial number X for the picture that user chooses
Enter to the head of pre-download queue, while by the serial number (X+1) of adjacent two pictures before and after with the picture chosen, (X-1)
It is inserted into behind the serial number X in pre-download queue.
Although note that in example shown in Fig. 1 and Fig. 8, queue management device is to be separated from each other with pre-download manager
Component, but they are also possible to the component integrated, for example, pre-download manager can be included in queue management
Component in device, or it may also be said that queue management device includes pre-download manager.In short, the present invention is for queue management device
It is not intended to be limited in any with the implementation of pre-download manager.
Using the method for creating and using dual serial queue in the present invention, the sequence of downloading queue can be dynamically adjusted,
Guarantee that the picture that user chooses preferentially can be downloaded and be shown, and can also download preview graph need to Internet resources to be used
It is reduced to minimum, more Internet resources are saved to the higher business of other priority, to effectively improve user experience.
Fig. 9 gives the schematic block diagram of the image downloading accelerator of an exemplary embodiment according to the present invention.
Referring to Fig. 9, it includes memory 10 and processor 20 which, which downloads accelerator 1,.
Processor 20 can be the processor of a multicore, also may include multiple processors.In some embodiments, locate
Reason device 20 may include a general primary processor and one or more special coprocessors, such as graphics processor
(GPU), digital signal processor (DSP) etc..In some embodiments, the circuit realization of customization can be used in processor 20,
Such as application-specific IC (ASIC, Application Specific Integrated Circuit) or scene can
Programmed logic gate array (FPGA, Field Programmable Gate Arrays).
It is stored with executable code on memory 10, when the executable code is executed by the processor 20, makes institute
It states processor 20 and executes one of data migration method described above.Wherein, memory 10 may include various types of storages
Unit, such as Installed System Memory, read-only memory (ROM) and permanent storage.Wherein, ROM can store processor 20 or
The static data or instruction that other modules of computer need.Permanent storage can be read-write storage device.Forever
Long storage device will not lose the non-volatile memory device of the instruction and data of storage can be after computer circuit breaking.
In some embodiments, permanent storage device is using mass storage device (such as magnetically or optically disk, flash memory) as permanent
Storage device.In other embodiment, permanent storage device can be removable storage equipment (such as floppy disk, light
It drives).Installed System Memory can be read-write storage equipment or the read-write storage equipment of volatibility, such as in dynamic random-access
It deposits.Installed System Memory can store the instruction and data that some or all processors need at runtime.In addition, memory 10 can
To include the combination of any computer readable storage medium, including various types of semiconductor memory chips (DRAM, SRAM,
SDRAM, flash memory, programmable read only memory), disk and/or CD can also use.In some embodiments, memory
10 may include removable storage equipment that is readable and/or writing, such as laser disc (CD), read-only digital versatile disc
(such as DVD-ROM, DVD-dual layer-ROM), read-only Blu-ray Disc, super disc density, flash card (such as SD card, min SD card,
Micro-SD card etc.), magnetic floppy disc etc..Computer readable storage medium does not include carrier wave and by wirelessly or non-wirelessly transmitting
Momentary electron signal.
In addition, being also implemented as a kind of computer program or computer program product, the meter according to the method for the present invention
Calculation machine program or computer program product include the calculating for executing the above steps limited in the above method of the invention
Machine program code instruction.
Alternatively, the present invention can also be embodied as a kind of (or the computer-readable storage of non-transitory machinable medium
Medium or machine readable storage medium), it is stored thereon with executable code (or computer program or computer instruction code),
When the executable code (or computer program or computer instruction code) by electronic equipment (or calculate equipment, server
Deng) processor execute when, so that the processor is executed each step according to the above method of the present invention.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein
Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.
What flow chart and block diagram in attached drawing etc. showed the system and method for multiple embodiments according to the present invention can
The architecture, function and operation being able to achieve.In this regard, each box in flowchart or block diagram can represent a mould
A part of block, program segment or code, a part of the module, section or code include one or more for realizing rule
The executable instruction of fixed logic function.It should also be noted that in some implementations as replacements, the function of being marked in box
It can also be occurred with being different from the sequence marked in attached drawing.For example, two continuous boxes can actually be substantially in parallel
It executes, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/
Or the combination of each box in flow chart and the box in block diagram and or flow chart, can with execute as defined in function or
The dedicated hardware based system of operation is realized, or can be realized using a combination of dedicated hardware and computer instructions.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport
In the principle, practical application or improvement to the technology in market for best explaining each embodiment, or make the art
Other those of ordinary skill can understand each embodiment disclosed herein.
Claims (14)
1. a kind of picture downloads equipment, which is characterized in that including queue management device, first queue and second queue;Wherein,
Queue management device is configured as the downloading to picture and carries out the management of single thread deque, wherein first queue is when front lower
Queue is carried, for controlling actual download sequence, second queue is pre-download queue, and the pre-download for adjusting downloading buffer pool is suitable
Sequence, and first queue and second queue are tandem queue.
2. picture as described in claim 1 downloads equipment, which is characterized in that wherein, first queue for place it is current under
The serial number for the picture for carrying and downloading, second queue are used to place the serial number of the picture of downloading buffer pool.
3. picture as claimed in claim 1 or 2 downloads equipment, which is characterized in that further include:
Pre-download adjuster is configured as the picture once for choosing the picture in Target Photo set and operation is chosen to be touched
Hair then adjusts the picture pre-download sequence in second queue, so that this is chosen the serial number of picture and in Target Photo set
It sequentially moves forward with the serial number of the picture that choose picture adjacent in pre-download.
4. picture as claimed in claim 1 or 2 downloads equipment, which is characterized in that wherein, the picture sequence numbers in first queue take
The picture sequence numbers of pre-download front from second queue.
5. a kind of picture method for down loading characterized by comprising
The management of single thread deque is carried out to the downloading of picture, wherein first queue is current downloading queue, for controlling reality
Downloading order, second queue are pre-download queues, for adjusting the pre-download sequence of downloading buffer pool, and first queue and the
Two queues are tandem queue.
6. picture method for down loading as claimed in claim 5, which is characterized in that wherein, first queue for place it is current under
The serial number for the picture for carrying and downloading, second queue are used to place the serial number of the picture of downloading buffer pool.
7. such as picture method for down loading described in claim 5 or 6, which is characterized in that further include:
Once the picture chooses operation to be triggered, then the picture pre-download sequence in second queue is adjusted, so that this chooses figure
It the serial number of piece and sequentially moves forward with the serial number of the picture that choose picture adjacent in pre-download in Target Photo set.
8. such as picture method for down loading described in claim 5 or 6, which is characterized in that wherein, the serial number of the picture in first queue
It is derived from the picture sequence numbers of pre-download front in second queue.
9. a kind of picture method for down loading characterized by comprising
Creation is the current downloading queue and pre-download queue of tandem queue, wherein current downloading queue is sky, pre-download team
It include the serial number of each picture in Target Photo set in column, these serial numbers are arranged in order in pre-download queue;
When needing to download the picture in Target Photo set, the serial number of required picture is packed into downloading queue, and this is required
The serial number of picture is deleted from pre-download queue;And
After the completion of the required picture downloading, first serial number is taken out from pre-download queue head, is packed into current downloading queue
The corresponding picture of first serial number is downloaded, and first serial number is deleted from pre-download queue in tail portion.
10. picture method for down loading as claimed in claim 9, which is characterized in that wherein, the picture method for down loading further include:
When picture chooses operation to be triggered, the serial number X for the picture that user chooses is inserted into the head of pre-download queue, simultaneously
The serial number (X+1) of two pictures adjacent with before and after the picture chosen, (X-1) are inserted into the serial number in pre-download queue
Behind X.
11. a kind of picture downloads equipment characterized by comprising
Queue creating device is configured for current downloading queue and pre-download queue that creation is tandem queue, wherein when
Preceding downloading queue is sky, includes the serial number of each picture in Target Photo set in pre-download queue, these serial numbers are in pre-download
It is arranged in order in queue;
The serial number of required picture is packed into downloading queue when needing to download the picture in Target Photo set by queue management device,
And delete the serial number of the required picture from pre-download queue, and after the completion of the required picture downloading, from pre-download team
It arranges head and takes out first serial number, be packed into the tail portion of current downloading queue, download the corresponding picture of first serial number, and should
First serial number is deleted from pre-download queue.
12. picture as claimed in claim 11 downloads equipment, which is characterized in that the picture downloads equipment further include:
Pre-download manager is configured for when picture chooses operation to be triggered, and the pre-download manager chooses user
The serial number X of picture be inserted into the head of pre-download queue, while by two pictures adjacent with before and after the picture chosen
Serial number (X+1), (X-1) are inserted into behind the serial number X in pre-download queue.
13. a kind of picture downloads accelerator, comprising:
Processor;And
Memory is stored thereon with executable code, when the executable code is executed by the processor, makes the processing
Device executes the method as described in any one of claim 5~10.
14. a kind of non-transitory machinable medium, is stored thereon with executable code, when the executable code is located
When managing device execution, the processor is made to execute the method as described in any one of claim 5~10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811564550.0A CN109842673A (en) | 2018-12-20 | 2018-12-20 | Picture downloads device and method, picture downloading accelerator and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811564550.0A CN109842673A (en) | 2018-12-20 | 2018-12-20 | Picture downloads device and method, picture downloading accelerator and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109842673A true CN109842673A (en) | 2019-06-04 |
Family
ID=66883244
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811564550.0A Pending CN109842673A (en) | 2018-12-20 | 2018-12-20 | Picture downloads device and method, picture downloading accelerator and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109842673A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111916184A (en) * | 2020-07-31 | 2020-11-10 | 平安好医投资管理有限公司 | Medical examination image downloading method and device and computer equipment |
CN112202865A (en) * | 2020-09-25 | 2021-01-08 | 北京微步在线科技有限公司 | Picture downloading method and device |
CN112434235A (en) * | 2020-11-06 | 2021-03-02 | 金蝶云科技有限公司 | Webpage picture loading method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8156428B1 (en) * | 2005-02-25 | 2012-04-10 | Adobe Systems Incorporated | Method and apparatus for merging digital content |
CN103793380A (en) * | 2012-10-26 | 2014-05-14 | 北京新媒传信科技有限公司 | Method and system for downloading picture in application |
CN104426946A (en) * | 2013-08-27 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method and device for bulk download data processing |
CN104731645A (en) * | 2015-03-19 | 2015-06-24 | 蔡树彬 | Task scheduling method and device and data downloading method and device |
CN105868420A (en) * | 2016-06-08 | 2016-08-17 | 腾讯科技(深圳)有限公司 | Network resource loading mode configuration method and device |
CN108235063A (en) * | 2017-12-04 | 2018-06-29 | 北京奇艺世纪科技有限公司 | A kind of method for processing video frequency, device, electronic equipment and storage medium |
-
2018
- 2018-12-20 CN CN201811564550.0A patent/CN109842673A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8156428B1 (en) * | 2005-02-25 | 2012-04-10 | Adobe Systems Incorporated | Method and apparatus for merging digital content |
CN103793380A (en) * | 2012-10-26 | 2014-05-14 | 北京新媒传信科技有限公司 | Method and system for downloading picture in application |
CN104426946A (en) * | 2013-08-27 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method and device for bulk download data processing |
CN104731645A (en) * | 2015-03-19 | 2015-06-24 | 蔡树彬 | Task scheduling method and device and data downloading method and device |
CN105868420A (en) * | 2016-06-08 | 2016-08-17 | 腾讯科技(深圳)有限公司 | Network resource loading mode configuration method and device |
CN108235063A (en) * | 2017-12-04 | 2018-06-29 | 北京奇艺世纪科技有限公司 | A kind of method for processing video frequency, device, electronic equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111916184A (en) * | 2020-07-31 | 2020-11-10 | 平安好医投资管理有限公司 | Medical examination image downloading method and device and computer equipment |
CN112202865A (en) * | 2020-09-25 | 2021-01-08 | 北京微步在线科技有限公司 | Picture downloading method and device |
CN112434235A (en) * | 2020-11-06 | 2021-03-02 | 金蝶云科技有限公司 | Webpage picture loading method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109842673A (en) | Picture downloads device and method, picture downloading accelerator and medium | |
JP6750020B2 (en) | Method and apparatus for realizing color tween animation | |
US8707150B2 (en) | Applying effects to a video in-place in a document | |
US20120198319A1 (en) | Media-Editing Application with Video Segmentation and Caching Capabilities | |
JP2006129501A (en) | Features such as titles, transitions, and/or effects which vary according to positions | |
JP6882992B2 (en) | How and devices to preview moving images, and how and devices to display representation packages | |
JP2000148976A (en) | Device and method for managing image, image processing method and storage medium | |
JP2014106968A (en) | Apparatus, method and computer readable recording medium for automatically arranging a plurality of items in canvas | |
US10891984B2 (en) | System and method for automating the configuration and sequencing of temporal elements within a digital video composition | |
JP2004102498A5 (en) | ||
US20170371641A1 (en) | Multi-tenant upgrading | |
EP2779104B1 (en) | Preserving and reusing intermediate data | |
CN114154000A (en) | Multimedia resource publishing method and device | |
US20140002451A1 (en) | Scene graph for defining a stereoscopic graphical object | |
KR101970383B1 (en) | Device and method for contents production | |
CN109862295A (en) | GIF generation method, device, computer equipment and storage medium | |
CN110069757A (en) | Special efficacy word edit methods and equipment | |
CN109101271A (en) | A kind of program extended method and relevant apparatus | |
CN109298903A (en) | Method, calculating equipment and storage medium for seamless preview picture | |
CN109089145A (en) | Method, calculating equipment and storage medium without intrusion control video playing | |
Isenberg et al. | Breaking the pixel barrier | |
CN109828828A (en) | Object method for uploading, device, electronic equipment and machine readable storage medium | |
CN109165023A (en) | Modify the method, apparatus and equipment of ISO image file | |
CN103905695B (en) | A kind of material processing method and device | |
CN116795361A (en) | Page setting method, computing device and storage medium |
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: 20190604 |