CN108900844A - A kind of JPEG decoding apparatus, method and system - Google Patents
A kind of JPEG decoding apparatus, method and system Download PDFInfo
- Publication number
- CN108900844A CN108900844A CN201810843215.8A CN201810843215A CN108900844A CN 108900844 A CN108900844 A CN 108900844A CN 201810843215 A CN201810843215 A CN 201810843215A CN 108900844 A CN108900844 A CN 108900844A
- Authority
- CN
- China
- Prior art keywords
- unit
- data
- jpeg
- processing
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/44—Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/182—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/436—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation using parallelised computational arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/91—Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
Abstract
The invention discloses a kind of JPEG decoding apparatus, including:Image Dispatching Unit, for sending image processing tasks to each data pre-processing unit;Several data pre-processing units connecting with image Dispatching Unit obtain data to be decoded for pre-processing to image to be processed;The Huffman decoding unit being correspondingly connected with respectively with data pre-processing unit obtains decoded data for being decoded to received data to be decoded;The arbitration unit connecting with each Huffman decoding unit carries out channel switching to Huffman decoding unit for handling rule according to the data volume of inverse transformation unit, the data that multichannel Huffman decoding unit is sent is sent to inverse transformation unit.The device improves the decoded throughput of JPEG by multichannel Huffman decoding unit Parallel Implementation, reduces image procossing cost;The invention also discloses a kind of JPEG coding/decoding method and systems, have above-mentioned beneficial effect.
Description
Technical field
The present invention relates to image real time transfer field, in particular to a kind of JPEG decoding apparatus, method and system.
Background technique
Jpeg image compression algorithm can have relatively good reconstruction while providing good compression performance due to it
Quality, which becomes in storage system, stores most picture formats.
JPEG decoding algorithm can be divided into data prediction, Huffman decoding, inverse quantization and inverse DCT transformation three phases,
As shown in Figure 1.Current JPEG decoding process efficiency is lower, and throughput is low, for need daily at present to tens images into
For the data center of row processing, JPEG decoding process becomes the performance bottleneck of image processing process.
Therefore, the decoded throughput of JPEG how is improved, jpeg image processing cost is reduced, is that those skilled in the art need
Technical problems to be solved.
Summary of the invention
The object of the present invention is to provide a kind of JPEG decoding apparatus, this method can pass through multichannel Huffman decoding unit
Parallel Implementation improve the decoded throughput of JPEG, reduce jpeg image processing cost;It is a further object of the present invention to provide one
Kind JPEG coding/decoding method and system have above-mentioned beneficial effect.
In order to solve the above technical problems, the present invention provides a kind of JPEG decoding apparatus, including:
Image Dispatching Unit, for sending image processing tasks to each data pre-processing unit;Wherein, described image is handled
Task includes image to be processed;
Several data pre-processing units being connect with described image Dispatching Unit, it is pre- for being carried out to the image to be processed
Processing, obtains data to be decoded;
The Huffman decoding unit being correspondingly connected with respectively with the data pre-processing unit, for it is received it is described to
Decoding data carries out Huffman decoding, obtains decoded data;
The arbitration unit being connect with each Huffman decoding unit, for being handled according to the data volume of inverse transformation unit
Rule carries out channel switching to the Huffman decoding unit, and the data for respectively sending multichannel Huffman decoding unit are successively
It is sent to inverse transformation unit;
The inverse transformation unit, for carrying out inverse transformation processing to the data received.
Preferably, the data pre-processing unit includes:Handle subelement and processing feedback subelement;
Wherein, the processing subelement is correspondingly connected with for being sent to after pre-processing to the image to be processed
Huffman decoding unit;
The processing feedback subelement, if completed for current image processing tasks, to described image Dispatching Unit
Send end mark;
Then described image Dispatching Unit is specifically used for:When receiving end mark, sent to idle pretreatment unit
Image processing tasks.
Preferably, the data pre-processing unit includes:First pretreatment subelement, the second pretreatment subelement and the
Three pretreatment subelements;
The Huffman decoding unit then connecting with the data pre-processing unit includes:It is single with the first pretreatment
First decoding subunit of member connection;The second decoding subunit being connect with the second pretreatment subelement;With the third
Pre-process the third decoding subunit of subelement connection.
Preferably, the arbitration unit includes:Transmission subelement and switching subelement;
Wherein, the transmission subelement, the data for sending multichannel Huffman decoding unit are successively sent to contravariant
Change unit;
The switching subelement, the data volume for receiving single Huffman decoding unit reach single treatment thresholding
When value, switches to other Huffman decoding units and carry out data transmission.
Preferably, the arbitration unit further includes:
Abnormal switching subelement, for being more than time threshold when the data transmission period for receiving single Huffman decoding unit
When the data volume for being worth, and obtaining is not up to single treatment threshold value, channel switching is carried out.
The present invention discloses a kind of JPEG coding/decoding method, is based on above-mentioned JPEG decoding apparatus, including:
Image Dispatching Unit sends image processing tasks to each data pre-processing unit;Wherein, described image handles task
Including image to be processed;Several data pre-processing units pre-process the image to be processed, obtain data to be decoded;With
The Huffman decoding unit that the data pre-processing unit is correspondingly connected with carries out Huffman to the received data to be decoded
Decoding, obtains decoded data;Arbitration unit handles rule respectively by multichannel Huffman according to the data volume of inverse transformation unit
The data that decoding unit is sent successively are sent to inverse transformation unit;The inverse transformation unit carries out inverse transformation to the data received
Processing.
Preferably, several data pre-processing units, which pre-process to the image to be processed, includes:
Processing subelement is sent to the Huffman decoding being correspondingly connected with after pre-processing to the image to be processed single
Member;
If current image processing tasks are completed, processing feedback subelement is sent to described image Dispatching Unit terminates mark
Will;
Then described image Dispatching Unit is specially to each data pre-processing unit transmission image processing tasks:It is tied when receiving
When bundle flag, image Dispatching Unit sends image processing tasks to idle pretreatment unit.
The present invention discloses a kind of JPEG decoding system, including:
Task distributing device, for sending JPEG decoding task to JPEG decoding apparatus;
JPEG decoding apparatus generates decoded for receiving the JPEG decoding task after progress JPEG decoding process
Data;
Data sink carries out the decoded data of JPEG for receiving.
Preferably, the JPEG decoding system is specially:JPEG based on FPGA platform decodes system.
Preferably, the JPEG decoding system based on FPGA is specially:The JPEG realized based on FPGA platform OpenCL
Decoding system.
Since in current JPEG decoding process, inverse transformation (inverse quantization and inverse DCT transformation) unit degree of parallelism is higher, number
It is fast according to processing speed, but simultaneously Huffman decoding process due to needing to wait a upper data solution in decoding for variable length decoding
Current data can be just decoded after the completion of code, algorithm data dependence is very strong, and degree of parallelism is low, and data processing speed is slow, contravariant
Unit is changed to generally require that Huffman decoding unit is waited to generate enough data.JPEG decoding apparatus provided by the present invention, will
After multiple data pre-processing units are combined with Huffman decoding unit Parallel Implementation to the pretreatment of image data and
Huffman decoding process, i.e., when being a bite/s per solution bit rate all the way, the processing speed of inverse transformation unit is 3a bite/
When s, by three road pretreatment units and Huffman decoding unit it is parallel after, the data per second that can produce 3a bite pass through arbitration
Unit is input to inverse transformation unit, needs that Huffman decoding unit is waited to generate enough numbers relative to current inverse transformation unit
According to the plenty of time wasted when being handled, the decoded efficiency of JPEG can be greatly speeded up, it is decoded to improve unit time JPEG
Throughput improves single machine jpeg image processing capacity, reduces demand of the data center to number of servers, reduces at jpeg image
Manage cost.
The invention also discloses " feedback subelement is handled in data pre-processing unit in current image processing tasks completion
When, end mark is sent to described image Dispatching Unit;Image Dispatching Unit is when receiving end mark, to idle pre- place
Manage unit and send image processing tasks " this technical characteristic, data pre-processing unit is after the completion of a picture in its entirety is handled, processing
Feedback subelement sends end mark to image distribution module, waits new processing task, is ensured that in this way per all the way
New processing task can be taken as early as possible after the completion of Huffman decoding, when avoiding the occurrence of due to single progress considerable task distribution
Situation that task distribution is uneven to cause multichannel Huffman decoded state difference big (for example multichannel is unloaded, but still has a large amount of people all the way
Object is handled), to reach the load balancing between multichannel Huffman decoding, improve JPEG decoding efficiency.
The invention also discloses a kind of JPEG coding/decoding method and systems, have above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is current JPEG decoding algorithm schematic diagram;
Fig. 2 is a kind of JPEG decoding apparatus structural schematic diagram provided in an embodiment of the present invention;
Fig. 3 is another kind JPEG decoding apparatus structural schematic diagram provided in an embodiment of the present invention;
Fig. 4 is the flow chart of JPEG coding/decoding method provided in an embodiment of the present invention.
Specific embodiment
Core of the invention is to provide a kind of JPEG coding/decoding method, and the decoded throughput of JPEG can be improved in this method, drop
Low jpeg image processing cost;Another core of the invention is to provide a kind of JPEG coding/decoding method and system, has above-mentioned beneficial
Effect.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
JPEG decoding process is broadly divided into data prediction, Huffman decoding, inverse quantization and inverse DCT three phases.Its
In, data prediction includes removal data type label and the 0xFFFF type reduction of storage (is JPEG mark by data convert
Quasi- data type label -0xFF);Huffman decoding is that binary bit stream is converted to decimal data;Inverse quantization and anti-
The conversion of dct transform fingering row image data format, for example frequency domain image data are converted into time-domain image data etc..
Data prediction is used only for removal and data type mark and goes back original digital image data, substantially without calculating task, because
This program executes can quickly.The image macro that inverse quantization and inverse DCT transformation are all based on 8x8 is handled, inside macro block data
It does not rely on, degree of parallelism is higher.And since Huffman coding is variable-length encoding, decoding process needs to wait a upper data
Decoding is completed just decode current data, and algorithm data dependence is very strong, and degree of parallelism is low, therefore Huffman is decoded as JPEG
Performance bottleneck in decoding algorithm, measured result are identical as the above results.
Inverse quantization and inverse DCT transformation account in decoding process 80% or more computational load, in the higher situation of degree of parallelism
A large amount of logical resource and DSP can be occupied, for the computing resource for making full use of inverse transformation, the present invention proposes as shown in Figure 1
JPEG decoding apparatus realizes that Huffman is decoded parallel by increasing the decoded data flow number of Huffman, and opposite raising is single
The Huffman decoding data amount generated in the time of position promotes decoding speed.
Fig. 2 is JPEG decoding apparatus schematic diagram provided in this embodiment, which mainly includes:Image distribution
Unit, data pre-processing unit, Huffman decoding unit, arbitration unit and inverse transformation unit.
Wherein, image Dispatching Unit is mainly used for sending image processing tasks to each data pre-processing unit;Wherein, image
Processing task includes image to be processed.
Several data pre-processing units are connected in parallel to image Dispatching Unit, for being pre-processed to image to be processed,
Including being responsible for removing data type mark and going back original digital image data etc., data to be decoded are obtained.
Huffman decoding unit is connect with data pre-processing unit, is responsible for decoding binary bit stream.Pass through multichannel
Huffman decoding unit is parallel, is effectively utilized inverse quantization in JPEG decoding process, the degree of parallelism of inverse DCT transformation and calculation power, base
In the parallel acceleration of JPEG decoding of multichannel Huffman, it can make full use of the concurrency of FPGA, it is decoded greatly to improve JPEG
Throughput.
It without limitation to the quantity of pretreatment unit and corresponding Huffman decoding unit at this, can be according to contravariant
The processing speed for changing unit is set.Wherein, by largely detecting, the processing speed of inverse transformation unit is about at present
Three times of Huffman decoding unit processing speed, it is therefore preferred that three parallel channels can be set, specifically, data are pre-
Processing unit includes:First pretreatment subelement, the second pretreatment subelement and third pre-process subelement;It is then pre- with data
Processing unit connection Huffman decoding unit be specially:The first decoding subunit being connect with the first pretreatment subelement;With
Second decoding subunit of the second pretreatment subelement connection;The third decoding subunit being connect with third pretreatment subelement,
It may be implemented to guarantee decoding speed under the premise of reducing installation cost.
Arbitration unit is connect with Huffman decoding unit, right for handling rule according to the data volume of inverse transformation unit
Huffman decoding unit carries out channel switching, and the data that multichannel Huffman decoding unit is sent successively are sent to contravariant respectively
Change unit.In JPEG picture format, the macro block of 8x8 is minimal processing unit, several 8x8 macro blocks form a MCU, JPEG solution
It needs when pressure using MCU as basic processing unit, therefore arbitration unit needs that a complete MCU Huffman is waited to decode
It is switched in addition Huffman decoding all the way.It without limitation to switching mode at this, can be according to the time or biography for transmitting data
Defeated data volume carries out the switching in channel as decision condition.Wherein it is preferred to can be by the data volume of transmission as judgement
Condition, then arbitration unit specifically includes:Transmission subelement and switching subelement;Transmission subelement is used for multichannel Huffman
The data that decoding unit is sent successively are sent to inverse transformation unit;Switching subelement, it is single for receiving single Huffman decoding
When the data volume of member reaches single treatment threshold value, switches to other Huffman decoding units and carry out data transmission.
For example, inverse transformation unit needs simultaneously to handle 4 macro block datas, when the first Huffman decoding unit will
It is single to arbitration to the first Huffman decoding unit after 4 macro block datas generated are transmitted to inverse transformation unit by arbitration unit
The channel of member transmission data is closed, and is switched to other Huffman decoding units and is carried out data transmission.Wherein, channel is closed
Huffman decoding unit is still within working condition, still can generate decoded data.
Further optionally, arbitration unit can further include receiving single Huffman decoding unit data transmission for working as
More than time threshold, but when the data volume obtained is still not up to single treatment threshold value, the possible data channel or
Huffman decoding unit data exception carries out channel switching at this time, switches to other channels and carry out data transmission, avoid falling into
Endless loop.
When every solution bit rate all the way is a bite/s, when the processing speed of inverse transformation unit is 3a bite/s, Jiang Sanlu
After pretreatment unit and Huffman decoding unit are parallel, the data per second that can produce 3a bite are input to by arbitration unit
Inverse transformation unit needs that the enough data of Huffman decoding unit generation is waited to be handled relative to current inverse transformation unit
When plenty of time for wasting, the decoded efficiency of JPEG can be greatly speeded up.
Inverse transformation unit is mainly used for carrying out inverse transformation processing to the data received, main to complete inverse quantization and inverse transformation
Operation.The specific workflow of inverse transformation unit please refers to the prior art, and details are not described herein.
Certainly, JPEG decoding apparatus may be structure as shown in Figure 3, as long as Huffman decoding unit may be implemented
It is parallel.Structure shown in Fig. 3 is not repeated them here at this, can refer to the corresponding introduction of Fig. 1.
Based on the above-mentioned technical proposal, JPEG decoding apparatus provided by the present embodiment, by multiple data pre-processing units with
Pretreatment and Huffman decoding process of the Parallel Implementation to image data after the combination of Huffman decoding unit, relative to current
Inverse transformation unit needs that Huffman decoding unit is waited to generate the plenty of time wasted when enough data are handled, can be with
The decoded efficiency of JPEG is greatly speeded up, the decoded throughput of unit time JPEG is improved, improves single machine jpeg image processing capacity,
Demand of the data center to number of servers is reduced, jpeg image processing cost is reduced.
Based on the above embodiment, if a collection of JPEG picture has the biggish picture of resolution ratio, there is resolution ratio lesser
Picture, if assign to is big picture entirely for Huffman decoding all the way, it is small picture entirely that in addition Huffman decoding, which is assigned to, all the way why
It can most cause that road Huffman for assigning to small picture decoding that can be quickly completed task, be then in light condition, and then influence to calculate
Method overall performance, to avoid task to distribute the case where unevenness causes decoding efficiency to reduce as far as possible, it is preferable that data pre-processing unit
It can specifically include:Handle subelement and processing feedback subelement;Subelement is handled, for being located in advance to image to be processed
The Huffman decoding unit being correspondingly connected with is sent to after reason;Feedback subelement is handled, if the image processing tasks for current are complete
Cheng Shi sends end mark to image Dispatching Unit;Then image Dispatching Unit is specifically used for:When receiving end mark, to
Idle pretreatment unit sends image processing tasks.
For data pre-processing unit after the completion of a picture in its entirety is handled, processing feedback subelement sends end mark to image
Distribution module waits new processing task, information feedback is carried out by data pre-processing unit and picture distribution unit, according to place
The distribution that situation carries out task is managed, load balancing is carried out to Huffman decoding unit, is ensured that in this way per all the way
New processing task can be taken as early as possible after the completion of Huffman decoding, when avoiding the occurrence of due to single progress considerable task distribution
Situation that task distribution is uneven to cause multichannel Huffman decoded state difference big (for example multichannel is unloaded, but still has a large amount of people all the way
Object is handled), to reach the load balancing between multichannel Huffman decoding, improve JPEG decoding efficiency.
Specifically, the decoded course of work of JPEG that load balancing is added is specifically as follows:Picture distribution module, which is sent, to be needed
To data preprocessing module, data preprocessing module starts to carry out data class JPEG picture information to be processed after receiving information
Type mark and the going back original digital image data of the task send end mark to image and distribute mould after the completion of picture in its entirety processing
Block waits new processing task.
By carrying out load balancing to picture to be processed in the present embodiment, JPEG decoding efficiency is substantially increased.
Referring to FIG. 4, Fig. 4 is the flow chart of JPEG coding/decoding method provided in this embodiment;This method may include:
Step s410:Image Dispatching Unit sends image processing tasks to each data pre-processing unit;Wherein, image procossing
Task includes image to be processed.
Step s420:Several data pre-processing units pre-process image to be processed, obtain data to be decoded.
Step s430:The Huffman decoding unit being correspondingly connected with data pre-processing unit is to received data to be decoded
Huffman decoding is carried out, decoded data are obtained.
Step s440:Arbitration unit handles rule according to the data volume of inverse transformation unit and respectively decodes multichannel Huffman
The data that unit is sent successively are sent to inverse transformation unit.
Step s450:Inverse transformation unit carries out inverse transformation processing to the data received.
Preferably, several data pre-processing units, which carry out pretreatment to image to be processed, can specifically include:
Processing subelement is sent to the Huffman decoding unit being correspondingly connected with after pre-processing to image to be processed;
If current image processing tasks are completed, processing feedback subelement sends end mark to image Dispatching Unit;
Then image Dispatching Unit is specially to each data pre-processing unit transmission image processing tasks:Terminate mark when receiving
When will, image Dispatching Unit sends image processing tasks to idle pretreatment unit.
Preferably, arbitration unit handles rule according to the data volume of inverse transformation unit and multichannel Huffman is decoded list respectively
The data that member is sent, which are successively sent to inverse transformation unit, can specifically include:
The data that multichannel Huffman decoding unit is sent successively are sent to inverse transformation list by transmission subelement in arbitration unit
Member;
When the data volume for receiving single Huffman decoding unit reaches single treatment threshold value, cut in arbitration unit
It changes subelement and switches to other Huffman decoding units and carry out data transmission.
JPEG coding/decoding method provided in this embodiment can mutually be compareed with above-mentioned JPEG decoding apparatus, can achieve multichannel
Load balancing between Huffman decoding, improves JPEG decoding efficiency.
The present embodiment provides a kind of JPEG to decode system, including:Task distributing device, for being sent to JPEG decoding apparatus
JPEG decoding task;JPEG decoding apparatus generates decoded for receiving JPEG decoding task after progress JPEG decoding process
Data.Specifically, JPEG decoding apparatus can refer to the introduction of one corresponding embodiment of figure, no longer superfluous to specific work process at this
It states;And data sink, the decoded data of JPEG are carried out for receiving.
It is all that a large amount of data calculate in jpeg format encoding and decoding and processing, FPGA has powerful data compared with CPU
Computation capability, and CPU+FPGA is widely being studied and is being inquired into as a kind of new heterogeneous computing platforms, preferably
Ground can carry out JPEG decoding using the JPEG decoding system based on FPGA.
Traditional FPGA exploitation can generally carry out the system design of RTL level, this mode using Verilog or VHDL language
Threshold is high, difficulty is big, the development cycle is very long.And OpenCL is a kind of new special class C programming towards " Heterogeneous Computing "
Language can greatly shorten the development cycle.Intel and Xilinx is each provided with the FPGA programming development ring towards OpenCL at present
Border.It is therefore preferred that the JPEG that can be realized based on the OpenCL of FPGA decodes system.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
JPEG decoding apparatus provided by the present invention, method and system are described in detail above.It is used herein
A specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand
Method and its core concept of the invention.It should be pointed out that for those skilled in the art, not departing from this
, can be with several improvements and modifications are made to the present invention under the premise of inventive principle, these improvement and modification also fall into the present invention
In scope of protection of the claims.
Claims (10)
1. a kind of JPEG decoding apparatus, which is characterized in that including:
Image Dispatching Unit, for sending image processing tasks to each data pre-processing unit;Wherein, described image handles task
Including image to be processed;
Several data pre-processing units being connect with described image Dispatching Unit, for being located in advance to the image to be processed
Reason, obtains data to be decoded;
The Huffman decoding unit being correspondingly connected with respectively with the data pre-processing unit, for received described to be decoded
Data carry out Huffman decoding, obtain decoded data;
The arbitration unit being connect with each Huffman decoding unit, for handling rule according to the data volume of inverse transformation unit
Channel switching is carried out to the Huffman decoding unit, respectively successively sends the data that multichannel Huffman decoding unit is sent
To inverse transformation unit;
The inverse transformation unit, for carrying out inverse transformation processing to the data received.
2. JPEG decoding apparatus as described in claim 1, which is characterized in that the data pre-processing unit includes:Processing
Unit and processing feedback subelement;
Wherein, the processing subelement is correspondingly connected with for being sent to after pre-processing to the image to be processed
Huffman decoding unit;
If the processing feedback subelement is sent complete for current image processing tasks to described image Dispatching Unit
End mark;
Then described image Dispatching Unit is specifically used for:When receiving end mark, image is sent to idle pretreatment unit
Processing task.
3. JPEG decoding apparatus as described in claim 1, which is characterized in that the data pre-processing unit includes:First is pre-
It handles subelement, the second pretreatment subelement and third and pre-processes subelement;
The Huffman decoding unit then connecting with the data pre-processing unit includes:Connect with the first pretreatment subelement
The first decoding subunit connect;The second decoding subunit being connect with the second pretreatment subelement;Locate in advance with the third
Manage the third decoding subunit of subelement connection.
4. JPEG decoding apparatus as described in claim 1, which is characterized in that the arbitration unit includes:Transmission subelement with
And switching subelement;
Wherein, the transmission subelement, the data for sending multichannel Huffman decoding unit are successively sent to inverse transformation list
Member;
The switching subelement, when the data volume for receiving single Huffman decoding unit reaches single treatment threshold value,
Other Huffman decoding units are switched to carry out data transmission.
5. JPEG decoding apparatus as claimed in claim 4, which is characterized in that the arbitration unit further includes:
Abnormal switching subelement, for being more than time threshold when the data transmission period for receiving single Huffman decoding unit, and
When the data volume of acquisition is not up to single treatment threshold value, channel switching is carried out.
6. a kind of JPEG coding/decoding method, which is characterized in that be based on the described in any item JPEG decoding apparatus of claim 1-5, packet
It includes:
Image Dispatching Unit sends image processing tasks to each data pre-processing unit;Wherein, described image processing task includes
Image to be processed;Several data pre-processing units pre-process the image to be processed, obtain data to be decoded;With it is described
The Huffman decoding unit that data pre-processing unit is correspondingly connected with carries out Huffman decoding to the received data to be decoded,
Obtain decoded data;Arbitration unit handles rule according to the data volume of inverse transformation unit and respectively decodes multichannel Huffman
The data that unit is sent successively are sent to inverse transformation unit;The inverse transformation unit carries out at inverse transformation the data received
Reason.
7. JPEG coding/decoding method as claimed in claim 6, which is characterized in that several data pre-processing units to it is described to
Processing image carries out pretreatment:
Processing subelement is sent to the Huffman decoding unit being correspondingly connected with after pre-processing to the image to be processed;
If current image processing tasks are completed, processing feedback subelement sends end mark to described image Dispatching Unit;
Then described image Dispatching Unit is specially to each data pre-processing unit transmission image processing tasks:Terminate mark when receiving
When will, image Dispatching Unit sends image processing tasks to idle pretreatment unit.
8. a kind of JPEG decodes system, which is characterized in that including:
Task distributing device, for sending JPEG decoding task to JPEG decoding apparatus;
As JPEG decoding apparatus described in any one of claim 1 to 5 carries out JPEG for receiving the JPEG decoding task
Decoded data are generated after decoding process;
Data sink carries out the decoded data of JPEG for receiving.
9. JPEG as claimed in claim 8 decodes system, which is characterized in that the JPEG decodes system and is specially:It is based on
The JPEG of FPGA platform decodes system.
10. JPEG as claimed in claim 8 decodes system, which is characterized in that the JPEG decoding system tool based on FPGA
Body is:System is decoded based on the JPEG that FPGA platform OpenCL is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810843215.8A CN108900844B (en) | 2018-07-27 | 2018-07-27 | JPEG decoding device, method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810843215.8A CN108900844B (en) | 2018-07-27 | 2018-07-27 | JPEG decoding device, method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108900844A true CN108900844A (en) | 2018-11-27 |
CN108900844B CN108900844B (en) | 2021-06-29 |
Family
ID=64352235
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810843215.8A Active CN108900844B (en) | 2018-07-27 | 2018-07-27 | JPEG decoding device, method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108900844B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050276501A1 (en) * | 2004-06-15 | 2005-12-15 | Canon Kabushiki Kaisha | Image decoding apparatus and its control method |
CN105828083A (en) * | 2015-01-06 | 2016-08-03 | 中兴通讯股份有限公司 | Method and device for decoding data streams |
CN106341692A (en) * | 2015-07-07 | 2017-01-18 | 杭州海康威视数字技术股份有限公司 | Image data Huffman decoding device and method |
CN107404654A (en) * | 2017-08-23 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of jpeg image decompression method, device and platform |
CN107483952A (en) * | 2017-08-29 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of method, apparatus and system of jpeg image decompression |
CN107517330A (en) * | 2017-09-26 | 2017-12-26 | 南京哈卢信息科技有限公司 | A kind of method and system of desktop portable type one-way safety transmission |
-
2018
- 2018-07-27 CN CN201810843215.8A patent/CN108900844B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050276501A1 (en) * | 2004-06-15 | 2005-12-15 | Canon Kabushiki Kaisha | Image decoding apparatus and its control method |
CN105828083A (en) * | 2015-01-06 | 2016-08-03 | 中兴通讯股份有限公司 | Method and device for decoding data streams |
CN106341692A (en) * | 2015-07-07 | 2017-01-18 | 杭州海康威视数字技术股份有限公司 | Image data Huffman decoding device and method |
CN107404654A (en) * | 2017-08-23 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of jpeg image decompression method, device and platform |
CN107483952A (en) * | 2017-08-29 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of method, apparatus and system of jpeg image decompression |
CN107517330A (en) * | 2017-09-26 | 2017-12-26 | 南京哈卢信息科技有限公司 | A kind of method and system of desktop portable type one-way safety transmission |
Also Published As
Publication number | Publication date |
---|---|
CN108900844B (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2020174374A (en) | Digital image recompression | |
CN109076212A (en) | The method and code device of code rate control | |
CN103188521B (en) | Transcoding distribution method and device, code-transferring method and equipment | |
US10848775B2 (en) | Memory layout for JPEG accelerator | |
CN106161633A (en) | A kind of based on the transmission method of packaging file under cloud computing environment and system | |
US20200145682A1 (en) | Work allocation for jpeg accelerator | |
US8576100B2 (en) | Parallel entropy encoder and parallel entropy decoder | |
CN1478346A (en) | Intercommunication preprocessor | |
CN1235483A (en) | Prediction filter | |
WO2020015087A1 (en) | Method and system for large-scale processing of images, computer device, and computer storage medium | |
CN1193621C (en) | Approximate IDCT for scalable video and image decoding of computational complexity | |
CN113382265B (en) | Hardware implementation method, apparatus, medium, and program product for video data entropy coding | |
CN109213745B (en) | Distributed file storage method, device, processor and storage medium | |
CN108900844A (en) | A kind of JPEG decoding apparatus, method and system | |
CN105100799A (en) | Method for reducing intraframe coding time delay in HEVC encoder | |
CN109407578A (en) | A kind of data processing method of Profibus-DP bus control unit | |
CN111757104B (en) | Image coding method and device, electronic equipment and storage medium | |
CN1258169A (en) | Pipline discrete cosine transformation apparatus | |
WO2024037244A1 (en) | Method and apparatus for decoding point cloud data, method and apparatus for encoding point cloud data, and storage medium and device | |
CN100551066C (en) | The implementation method of encoder and adaptive arithmetic code and device | |
CN108427555A (en) | A kind of model for distributed storage variable data distribution method and system | |
CN109587484B (en) | Multi-mode HEVC video encoder design method based on double-chip DSP | |
CN103491375B (en) | JPEG compression system based on bin DCT algorithm | |
CN101616319B (en) | Method for processing data and service equipment | |
Scavongelli et al. | FPGA implementation of JPEG encoder architectures for wireless networks |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |