A kind of devices and methods therefor of Video Decoder caching high efficiency processing
Technical field
The present invention relates to communication technical field, more particularly to a kind of device of Video Decoder caching high efficiency processing and its
Method.
Background technology
Shown in Figure 1, an existing Video Decoder generally only buffered memory modules, frame of video is frequently as one
Individual block is transmitted, i.e. reference block;This is with reference to Block Brightness address command and colourity address command all in a buffer storage mould
Handled in block, buffered memory modules processing single order needs to consume the regular hour, if had in the short time a large amount of
Address command enter, will buffer storage command input end formed block, fetch ginseng so as to elongate Video Decoder
The time of block is examined, reduces the efficiency of Video Decoder.And due to the reference frame luminance component and colourity in video decoding process
Component is stored separately, if the hit rate of buffer storage will be reduced by carrying out access using same buffer storage,
Increase the number fetched on outside DDR, extend the time that subsequent module in decoder obtains data from buffer storage, so as to
Reduce the service efficiency of buffer storage.
A kind of " method and be that the dynamic caching module of the data deduplication of optimization selects is disclosed in the prior art
System ", is shown in Publication No.:104050098A, publication date are:2014-09-17 Chinese patent, the embodiment of the invention provide use
In method, system and computer program product that the dynamic caching module of the data deduplication for optimization selects.At this
In the embodiment of invention, there is provided the method that the dynamic caching module for the data deduplication for optimization selects.The party
Method includes receiving the request of retrieval data and the request of classifying.This method also include from it is each have it is different configuration of it is multiple not
The identification specific cache module associated with the classification asked in same cache module.Finally, this method includes
To data deduplication in the cache module of identification.But the technical scheme of the invention with the present invention and differ, this specially
Profit application on the basis of the existing single buffer storage of Video Decoder using a buffered memory modules are further added by, respectively
Reference block luminance component retrieval command and chromatic component retrieval command are operated.
The content of the invention
One of the technical problem to be solved in the present invention, it is to provide a kind of dress of Video Decoder caching high efficiency processing
Put, both improved the disposal ability with reference to block command, improve the hit rate of single buffer memory again, so as to improve reference block
Access speed, lift the performance of Video Decoder;Reduce DDR access number, reduce DDR power consumption.
What one of the problem of of the invention, was realized in:A kind of device of Video Decoder caching high efficiency processing, including
Brightness buffer storage, chroma buffer memory, command catalog module and data combiners block, the command catalog module point
Be not connected with brightness buffer storage, chroma buffer memory, the data combiners block respectively with brightness buffer storage, color
Spend buffer storage connection;The command catalog module is used for the command catalog of input into chromatic component order and luminance component
Order, the brightness buffer storage are used for the luminance component order for handling reference block, and the chroma buffer memory is used to locate
Manage the chromatic component order of reference block;The data combiners block is suitable according to the luminance component order and chromatic component order of input
Sequence, it is sequentially output luminance block data and chrominance block data.
Further, the brightness buffer storage is specially:For handling the luminance component order of reference block, and cache
The data for the reference Block Brightness fetched from the DDR being connected with Video Decoder, if access next time according to when, corresponding reference
The brightness data of the address of block exists in brightness buffer storage, then need not take the data of brightness from DDR again, directly from
Corresponding brightness data is taken in brightness buffer storage.
Further, the chroma buffer memory is specially:For handling the chromatic component order of reference block, and cache
The data for the reference block colourity fetched from the DDR being connected with Video Decoder, if access next time according to when, corresponding reference
The chroma data of the address of block exists in chroma buffer memory, then need not take the data of colourity from DDR again, directly from
Corresponding chroma data is taken in chroma buffer memory.
Further, described device further comprises:The command catalog module is by the command catalog of the reference block of input
Into the chromatic component order of reference block and the luminance component order of reference block;Flag bit, the mark are carried in the order of each reference block
Will position is used to indicate that current reference block command is luminance component order or the size of chromatic component order and current reference block;
Brightness or chroma-type of the command catalog module according to current reference block command, the size of block, mark corresponding to generation is simultaneously
It is sent into a flag bit FIFO variables;The chromatic component order of sorted each reference block and the luminance component order difference of reference block
Handled in corresponding input chroma buffer memory and brightness buffer storage, the data combiners block sequential reads out FIFO
Flag bit in variable, the flag bit order in FIFO variables, judges to be currently needed for the brightness for inserting data block and color
Type and size are spent, then takes out the luminance block data of corresponding length respectively from brightness buffer storage, chroma buffer memory
With chrominance block data.
Further, being sequentially output luminance block data and chrominance block data is exported in units of block.
The second technical problem to be solved by the present invention, it is to provide a kind of side of Video Decoder caching high efficiency processing
Method, had both improved the disposal ability with reference to block command, improved the hit rate of single buffer memory again, so as to improve reference block
Access speed, lift the performance of Video Decoder;Reduce DDR access number, reduce DDR power consumption.
What the two of the problem of of the invention were realized in:A kind of method of Video Decoder caching high efficiency processing, it is described
Method need to provide brightness buffer storage, chroma buffer memory, command catalog module and data combiners block;The order
Sort module by the command catalog of the reference block of input into the chromatic component order of reference block and the luminance component order of reference block,
Using the luminance component order of brightness buffer storage processing reference block, chroma buffer memory handles the chromatic component of reference block
Order;Luminance component order and chromatic component command sequences of the data combiners block according to input, are sequentially output luminance block data
With chrominance block data.
Further, the brightness buffer storage is specially:For handling the luminance component order of reference block, and cache
The data for the reference Block Brightness fetched from the DDR being connected with Video Decoder, if access next time according to when, corresponding reference
The brightness data of the address of block exists in brightness buffer storage, then need not take the data of brightness from DDR again, directly from
Corresponding brightness data is taken in brightness buffer storage.
Further, the chroma buffer memory is specially:For handling the chromatic component order of reference block, and cache
The data for the reference block colourity fetched from the DDR being connected with Video Decoder, if access next time according to when, corresponding reference
The chroma data of the address of block exists in chroma buffer memory, then need not take the data of colourity from DDR again, directly from
Corresponding chroma data is taken in chroma buffer memory.
Further, methods described further comprises:The command catalog module is by the command catalog of the reference block of input
Into the chromatic component order of reference block and the luminance component order of reference block;Flag bit, the mark are carried in the order of each reference block
Will position is used to indicate that current reference block command is luminance component order or the size of chromatic component order and current reference block;
Brightness or chroma-type of the command catalog module according to current reference block command, the size of block, mark corresponding to generation is simultaneously
It is sent into a flag bit FIFO variables;The chromatic component order of sorted each reference block and the luminance component order difference of reference block
Handled in corresponding input chroma buffer memory and brightness buffer storage, the data combiners block sequential reads out FIFO
Flag bit in variable, the flag bit order in FIFO variables, judges to be currently needed for the brightness for inserting data block and color
Type and size are spent, then takes out the luminance block data of corresponding length respectively from brightness buffer storage, chroma buffer memory
With chrominance block data.
Further, being sequentially output luminance block data and chrominance block data is exported in units of block.
The invention has the advantages that:The present invention is pressed using the reference block address to input video decoder buffer memory
Brightness, chroma-type are classified, and different reference block address is handled using different buffer storage, double buffering is formd and deposits
The parallel processing of reservoir, had both improved the disposal ability with reference to block command, improved the hit rate of single buffer memory again, so as to
The access speed of reference block is improved, lifts the performance of Video Decoder;Reduce DDR access number, reduce DDR work(
Consumption.
Brief description of the drawings
Fig. 1 is the structured flowchart of Video Decoder buffer storage in the prior art.
Fig. 2 is the structured flowchart of the present invention.
Fig. 3 is the schematic flow sheet of the present invention.
Embodiment
Refer to shown in Fig. 2, a kind of device of Video Decoder of the invention caching high efficiency processing, including brightness buffering
Memory, chroma buffer memory, command catalog module and data combiners block, the command catalog module respectively with brightness
Buffer storage, the connection of chroma buffer memory, the data combiners block are deposited with brightness buffer storage, chroma buffer respectively
Reservoir connects;(DDR being connected with Video Decoder is connected such as Fig. 1 with brightness buffer storage, chroma buffer memory respectively)
The command catalog module is used for chromatic component order of the command catalog of the reference block of input into reference block and reference block
Luminance component order, the brightness buffer storage are used for the luminance component order for handling reference block, the chroma buffer storage
Device is used for the chromatic component order for handling reference block;The data combiners block is according to the luminance component order of input and colourity point
Command sequences are measured, are sequentially output luminance block data and chrominance block data.This is sequentially output luminance block data and chrominance block data
Exported in units of block (as shown in dotted line frame in Fig. 2).
In addition, the brightness of reference block and chromatic component order are to separate synchronization process in the present invention, it is and decoding process one
Corresponding to one.
In the present invention, the brightness buffer storage is specially:For handling the luminance component order of reference block, and press
The data for the reference Block Brightness fetched according to storage substitute mode caching from the DDR being connected with Video Decoder, if taken next time
When data, the brightness data of the address of corresponding reference block exists in brightness buffer storage, then need not be again from DDR
The data of brightness are taken, corresponding brightness data is directly taken from brightness buffer storage.
The chroma buffer memory is specially:Replaced for handling the chromatic component order of reference block, and according to storage
Mode caches the data for the reference block colourity fetched from the DDR being connected with Video Decoder, if next time access according to when,
The chroma data of the address of corresponding reference block exists in chroma buffer memory, then need not take the number of colourity from DDR again
According to directly taking corresponding chroma data from chroma buffer memory.
Need exist for explanation be:Described device further comprises:The command catalog module is by the reference block of input
Command catalog is into the chromatic component order of reference block and the luminance component order of reference block;With mark in the order of each reference block
Position, the flag bit are used to indicate that current reference block command is luminance component order or chromatic component order and current reference block
Size;Brightness or chroma-type of the command catalog module according to current reference block command, the size of block, corresponding to generation
Indicate and be sent into a flag bit FIFO variables;The chromatic component order of sorted each reference block and the luminance component life of reference block
Order is corresponded to handled in input chroma buffer memory and brightness buffer storage respectively, and the data combiners block is read successively
The flag bit gone out in FIFO variables, the flag bit order in FIFO variables, judges to be currently needed for inserting the bright of data block
Degree and chroma-type and size, then the brightness of corresponding length is taken out from brightness buffer storage, chroma buffer memory respectively
Block number evidence and chrominance block data.(i.e. using be transmitted through in FIFO variables come flag bit and data length sequence from corresponding colourity
Luminance block data and chrominance block data are read in buffer storage or brightness buffer storage) flag bit in the FIFO variables,
For notifying how data combiners block merges to brightness and chroma data.
Refer to shown in Fig. 2 and Fig. 3, a kind of method of Video Decoder of the invention caching high efficiency processing, the side
Method need to provide brightness buffer storage, chroma buffer memory, command catalog module and data combiners block;The order point
Generic module into the chromatic component order of reference block and the luminance component order of reference block, adopts the command catalog of the reference block of input
With the luminance component order of brightness buffer storage processing reference block, the chromatic component life of chroma buffer memory processing reference block
Order;Luminance component order and chromatic component command sequences of the data combiners block according to input, be sequentially output luminance block data and
Chrominance block data.This is sequentially output luminance block data and chrominance block data are that (dotted line frame in such as Fig. 2 is exported in units of block
It is shown).
In the present invention, the brightness buffer storage is specially:For handling the luminance component order of reference block, and press
The data for the reference Block Brightness fetched according to storage substitute mode caching from the DDR being connected with Video Decoder, if taken next time
When data, the brightness data of the address of corresponding reference block exists in brightness buffer storage, then need not be again from DDR
The data of brightness are taken, corresponding brightness data is directly taken from brightness buffer storage.
The chroma buffer memory is specially:Replaced for handling the chromatic component order of reference block, and according to storage
Mode caches the data for the reference block colourity fetched from the DDR being connected with Video Decoder, if next time access according to when,
The chroma data of the address of corresponding reference block exists in chroma buffer memory, then need not take the number of colourity from DDR again
According to directly taking corresponding chroma data from chroma buffer memory.
In addition, methods described further comprises:The command catalog module is by the command catalog of the reference block of input into ginseng
Examine the chromatic component order of block and the luminance component order of reference block;Flag bit, the flag bit are carried in the order of each reference block
For indicating that current reference block command is luminance component order or the size of chromatic component order and current reference block;It is described
Brightness or chroma-type of the command catalog module according to current reference block command, the size of block, generate corresponding mark and be sent into
One flag bit FIFO variables;The chromatic component order of sorted each reference block and the luminance component order of reference block correspond to respectively
Handled in input chroma buffer memory and brightness buffer storage, the data combiners block sequential reads out FIFO variables
In flag bit, in FIFO variables flag bit order, judge to be currently needed for the brightness for inserting data block and colourity class
Type and size, then the luminance block data and color of corresponding length are taken out from brightness buffer storage, chroma buffer memory respectively
Spend block number evidence.Flag bit in the FIFO variables, for notifying data combiners block is how to carry out to brightness and chroma data
Merge.
In a word, the present invention presses brightness, chroma-type using the reference block address to input video decoder buffer memory
Classified, different reference block address is handled using different buffer storage, form the parallel place of double-buffer memory
Reason, had both improved the disposal ability with reference to block command, and had improved the hit rate of single buffer memory again, so as to improve reference block
Access speed, lift the performance of Video Decoder;Reduce DDR access number, reduce DDR power consumption.
The foregoing is only presently preferred embodiments of the present invention, all equivalent changes done according to scope of the present invention patent with
Modification, it should all belong to the covering scope of the present invention.