CN101335887A - Progressive JPEG image decoding method - Google Patents

Progressive JPEG image decoding method Download PDF

Info

Publication number
CN101335887A
CN101335887A CN 200710112700 CN200710112700A CN101335887A CN 101335887 A CN101335887 A CN 101335887A CN 200710112700 CN200710112700 CN 200710112700 CN 200710112700 A CN200710112700 A CN 200710112700A CN 101335887 A CN101335887 A CN 101335887A
Authority
CN
China
Prior art keywords
decoding
data
those
scanning
scanning slice
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
Application number
CN 200710112700
Other languages
Chinese (zh)
Other versions
CN100589573C (en
Inventor
陈昱志
黄志文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sunplus Technology Co Ltd
Original Assignee
Sunplus Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sunplus Technology Co Ltd filed Critical Sunplus Technology Co Ltd
Priority to CN 200710112700 priority Critical patent/CN100589573C/en
Publication of CN101335887A publication Critical patent/CN101335887A/en
Application granted granted Critical
Publication of CN100589573C publication Critical patent/CN100589573C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention discloses a transmission method of multimedia broadcast subtitle information and transmitting/receiving apparatus, wherein the method includes: packaging the subtitling information of the program in the data unit of data segment in the multiplexed sub-frame; setting the data unit type field in the data segment head of the data segment, as data unit representing the data unit is packaged with subtitling information; transmitting the multiplexed sub-frame including subtitling information through a mobile multimedia broadcasting network. The present invention improves the user experience of services.

Description

Progressive JPEG image decoding method
Technical field
The present invention relates to a kind of picture decoding method, and be particularly related to a kind of progressive JPEG image decoding method.
Background technology
With gradual (Progressive) discrete cosine transform (Discrete CosineTransformation, DCT) be joint photographic expert group (the Joint PhotographicExperts Group on basis, JPEG) compress technique is to take entire image is encoded in the mode of repeatedly scanning, makes its jpeg data stream of encoding comprise the data of a plurality of scanning slices.Therefore in decode procedure, the data that need a plurality of scanning slices of decoding are to rebuild original image, and each scanning slice all records the Partial Feature of original image, therefore the image that each scanning slice decoded can show original image by summary, and its image quality can improve with the increase of the scanning slice number that decodes.
What Fig. 1 illustrated is traditional progressive JPEG decoding device, comprise length-changeable decoding (Variable Length Decoding, VLD) device 110, memory device 120, inverse quantization (Inverse Quantizer) device 130 and inverse discrete cosine transformation (InverseDCT) device 140 in the decoding device 100.Promptly need handle through said apparatus in the decode procedure of gradual DCT, its decoding process is summarized as follows:
The jpeg data of having encoded at first, can be handled through variable length decoding apparatus 110 earlier.Because each scanning slice needs the information with reference to previous scanning slice when this variable length decoding apparatus 110 is handled, so its result need have memory device 120 storages identical with the image size, with the foundation as the reference when variable length decoding apparatus 110 is handled of next scanning slice.After memory device 120 has been collected all coefficients of a scanning slice, then can send into inverse quantization device 130 and inverse discrete cosine transformation device 140 in regular turn, handle to carry out inverse quantization and inverse discrete cosine transformation, and the pixel and rebuild gradual image of obtaining decoding.Though this method can maintain the characteristic that gradual image presents, the big young pathbreaker of decodable image is subject to the memory headroom restriction, will be a new challenge so how to improve the use of memory headroom.
Disclosed a kind of progressive JPEG coding/decoding method in No. the 92124394th, the Taiwan patent, it produces a part of decoded pixel and a non-zero history table at each scanning slice, and the partial decoding of h pixel that adds up and produced according to preset order, and upgrade non-zero historical record by each scanning slice produced by each layer scanning slice.Though can economize the space of internal memory with reference to the mode of non-zero historical record.Yet, the non-zero historical record only can be in order to as the reference of Hofmann decoding during the stage, and before the desorption coefficient of every layer of scanning slice that adds up, the positive negative value of the decoded result of the previous identical address of still necessary reference, and desorption coefficient is done positive and negative two power adjustment, can obtain correct desorption coefficient.
For instance, value for one-9, if use binary system with 8 bit representations, just 11110111, but when huffman coding, then be to get its absolute value to encode, if the position of coding is 7 to 3 (comprising 0~7 altogether) for the first time, and all be a position afterwards, should be and get |-9|=(00001001).Wherein, be encoded to for the first time preceding 5 positions (00001) and 0 (0 for negative 1 for just), the second time and be 0, be 0 for the third time, and the 4th time is 1.Therefore, when decoder receives first data, know it is negative value, (00001) should be done two positive and negative power adjustment,, then obtain (11110000) after getting two power again so after (00001) is got complement code, obtain (11110) by 0.Then, the decoded result of second and third time is 0, just represents void value, and is for the 4th time that 1,1 representative has value, and according to the negative value that writes down in the sign form, therefore can solve-1 binary value and be (11111111).Yet, because the pairing position of scanning slice of the 4th decoding is the position of numbering 0, thus must be with above-mentioned decode value (11111111) to the left zero bits to obtain (111111111).This promptly represents numerical value-1, and after the numerical value addition with all decodings, the desorption coefficient that gets final product to the end-9, promptly the action of finishing decoding is so far just calculated in (11111000)+0+0+ (111111111)=(11110111).Yet, in No. the 92124394th, above-mentioned Taiwan patent, do not disclose this accumulated value and need do the part that positive and negative two power is adjusted, therefore adopt its method may cause the mistake of decoding, and can't present correct image.
Summary of the invention
In view of this, purpose of the present invention just provides a kind of progressive JPEG image decoding method, adopts the decoded result that replaces a preceding scanning slice with non-zero history table and sign form, and reduces the use of internal memory.
For reaching above-mentioned or other purpose, the present invention proposes a kind of progressive JPEG image decoding method, be suitable for bit stream data is decoded as view data, include the data of a plurality of scanning slices in this bit stream data, this coding/decoding method comprises the following steps: that a. receives the data of one deck scanning slice of bit stream data in regular turn; B. according to a non-zero history table, be a plurality of desorption coefficients with the data decode of this scanning slice; C. according to the sign form, desorption coefficient done positive and negative two power adjustment; D. the desorption coefficient that produces according to decoding upgrades non-zero history table and sign form; E. output decoder coefficient.
In the described progressive JPEG image decoding method of one embodiment of the invention, step b. comprises according to the non-zero history table, the data of scanning slice are carried out run length (Run Length) decoding, obtain the coefficient value of each desorption coefficient, step c then comprises according to the sign form, the coefficient value of each desorption coefficient is added sign, and with reference to the scanning slice of current decoder corresponding to position that view data write down in the position of binary sequence, the coefficient value of each desorption coefficient is multiplied by two power.
In the described progressive JPEG image decoding method of one embodiment of the invention, step e. comprises the conversion of desorption coefficient process inverse quantization, inverse discrete cosine transformation processing, and transducer conversion back output.In addition, the desorption coefficient of output then comprises the desorption coefficient that is added to previous output.
In the described progressive JPEG image decoding method of one embodiment of the invention, comprise more after step e. whether the scanning slice of judging last decoding is last scanning slice, if not last scanning slice then returns step a., continue the decoding data of one deck scanning slice down; Otherwise, if last scanning slice then stops the decoding action.
In the described progressive JPEG image decoding method of one embodiment of the invention, all to decode when finishing when the data of all scanning slices of bit stream data, the desorption coefficient that adds up at last is complete view data.
The present invention proposes a kind of progressive JPEG image decoding method, is suitable for bit stream data is decoded as view data, and this bit stream data comprises the data of a plurality of scanning slices, and the method comprises the following steps: that it is a plurality of decodings zones that a. is cut apart scanning slice; B. in these decoding zones, select one in regular turn as a decoding zone; C. receive the data of one deck scanning slice in the bit stream data in regular turn, and according to non-zero history table and sign form, decode data in the decoding zone, part of this scanning slice, and export a plurality of regional decoding coefficients, and upgrade non-zero history table and sign form; D. receive the data of following one deck scanning slice of this scanning slice in the bit stream data in regular turn, and repetition step c, data under continuing to decode in the decoding zone, part of one deck scanning slice, and the output area desorption coefficient, and upgrade non-zero history table and sign form, till the data in decoding zone, the part of all scanning slices are all decoded and are finished.
In the described progressive JPEG image decoding method of one embodiment of the invention, step c comprises to be handled the regional decoding coefficient through inverse quantization conversion, inverse discrete cosine transformation, and transducer conversion back output.In addition, the regional decoding coefficient of these outputs then is added to the regional decoding coefficient of previous output.
In the described progressive JPEG image decoding method of one embodiment of the invention, step c comprises according to the non-zero history table, the data of scanning slice are carried out the run length decoding, obtain the coefficient value of each desorption coefficient, again according to the sign form, the coefficient value of each desorption coefficient done positive and negative two power adjustment.
In the described progressive JPEG image decoding method of one embodiment of the invention, the size in the decoding zone of cutting apart among the step a. determines according to memory size, and each layer scanning slice is adopted identical partitioning scheme.
In the described progressive JPEG image decoding method of one embodiment of the invention, step c more comprises the last decode address in the decoding zone, part of writing scan layer, as the regional original position of part decoding of next scanning slice.
In the described progressive JPEG image decoding method of one embodiment of the invention, receive before the data of scanning slice in the step c, when more being included in the data in next one decoding zone of decoding scanning slice, the last decode address of one deck scanning slice before loading earlier, from then on last then decode address begin the to decode data in next local decoding zone, then repeat above-mentioned steps at last, the data in the decoding zone, part of each scanning slice of decoding, and output becomes the view data of part.
In the described progressive JPEG image decoding method of one embodiment of the invention, steps d. comprising more afterwards that the data that judge whether in all decoding zones are all decoded finishes; If still have the data in decoding zone not decode, then repeating step b.~d. continues the next local decoding zone of selection ground floor scanning slice, and the data in the next local decoding zone of decoding, till the data in all decode the zone are all decoded and finished.
In the described progressive JPEG image decoding method of one embodiment of the invention, all decode when finishing when the data in all the decoding zones of all scanning slices in the bit stream data, then form complete view data.
The present invention is because of adopting the decoded result that replaces a preceding scanning slice with non-zero history table and sign form, and the coefficient value of each desorption coefficient in the scanning slice before need not in internal memory to keep, therefore under the memory source condition of limited, still can correctly decode and show jpeg image.
For above and other objects of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below.
Description of drawings
What Fig. 1 illustrated is traditional progressive JPEG decoding device.
Fig. 2 is the flow chart of the progressive JPEG image decoding method that illustrates according to first embodiment of the invention.
Fig. 3 is the example of the binary sequence that illustrates according to first embodiment of the invention.
Fig. 4 is the flow chart of the progressive JPEG image decoding method that illustrates according to third embodiment of the invention.
Description of reference numerals
100: decoding device
110: variable length decoding apparatus
120: memory device
130: inverse quantization device
140: the inverse discrete cosine transformation device
S201~S207: each step of the progressive JPEG image decoding method of first embodiment of the invention
300: binary sequence
S401~S407: each step of the progressive JPEG image decoding method of third embodiment of the invention
Embodiment
In gradual coding/decoding method, during scanning slice data of each decoding, essential data with reference to preceding one deck scanning slice, that is to say, in the process of decoding, the data of one deck scanning slice before must be at any time in internal memory, keeping a space and writing down corresponding to the image size, smoothly decoding continue after the data of scanning slice, this kind mode will take many memory headrooms.The present invention promptly is at improving a kind of progressive JPEG image decoding method that this shortcoming develops out, by writing down a non-zero history table and sign form, the decoded result of one deck scanning slice before replacing, and can significantly save the memory headroom of required use.In order to make content of the present invention more clear, below the example that can implement according to this really as the present invention especially exemplified by embodiment.
First embodiment
Fig. 2 is the flow chart of the progressive JPEG image decoding method that illustrates according to first embodiment of the invention.Please refer to Fig. 2, present embodiment is suitable for a bit stream data is decoded as view data, and wherein this bit stream data includes the data of a plurality of scanning slices, below introduces the detailed step of the coding/decoding method of present embodiment:
At first, receive the data of one deck scanning slice of this bit stream data in regular turn, (step S201).Wherein, have certain sequence between each scanning slice, and in the present embodiment, the scanning slice data of Jie Shouing are the most preceding scanning slice data of ordering in the bit stream data at the beginning.
Then, in step S202, present embodiment promptly according to a non-zero history table, is decoded to the scanning slice data that received, and obtains the desorption coefficient of each pixel in this scanning slice.Wherein, this step can obtain the coefficient value of each desorption coefficient by the data of scanning slice being carried out the run length decoding.Then, in step S203, can according to a sign form these desorption coefficients be done positive and negative two power adjustment again.
In detail, because in gradual decoding process, when utilizing the data of variable length decoding apparatus decoding scanning slice, must be with reference to the decoded result (being whether desorption coefficient is non-zero) of previous scanning slice, therefore present embodiment must be decoded with reference to the non-zero history table when the data of decoding scanning slice, and when producing desorption coefficient, also must try every possible means the non-zero historical record of these desorption coefficients is got off the reference during for other scanning slice of subsequent decoding.
Another characteristic of gradual decoding process is before the desorption coefficient of every layer of scanning slice of output, the positive negative value of the decoded result of identical address before the necessary reference, and desorption coefficient is done positive and negative adjustment.Therefore, whether the present invention's each pixel in writing down above-mentioned scanning slice is zero the non-zero history table, also need write down a sign form, desorption coefficient is done positive and negative adjustment.
Moreover, the gradual decoding process of analysis conventional can find that complete view data is to be recorded in respectively in each different scanning slice, and after the data of the intact one deck scanning slice of every decoding, more images information can be obtained, also decoded picture more clearly can be obtained certainly.More accurately, the pixel value of supposing a pixel is to be formed by a plurality of records, and in each layer scanning slice, only write down the data of one of them or part position, therefore when the data of one deck scanning slice of having decoded, also can only obtain one or the image information of a few-bit of this pixel value, and obtain the not exclusively blurred picture of picture profile but but approximate is published picture, must wait for that all scanning slices decode when finishing one by one, can slap together complete position information by position, and then depict distinct image each scanning slice decoding gained.The advantage of this practice is to allow the user predict the general content of image in advance, and needn't wait for for a long time that complete picture decoding finishes.
According to as can be known above-mentioned, because the position information that each scanning slice comprises is fixed, therefore the present invention is except utilizing the sign form, the coefficient value of each desorption coefficient is added outside the sign, can also be with reference to the scanning slice of current decoder corresponding to the position of position in binary sequence that view data write down, the coefficient value of each desorption coefficient is multiplied by two power, and infers this pairing pixel value.
For instance, the pixel value of assumption of complete is to form (can record size be 0~255 pixel value) by 8 bit combinations, if the position information that scanning slice write down of current decoder is wherein to number 3 position, and there is value this position and during for just (as shown in Figure 3), but then the pixel value of its representative of inference is 2 3=8.
Before finishing after the calculating of the desorption coefficient of one deck scanning slice, in step S204, then can calculate its pairing non-zero history table and sign form once more according to these desorption coefficients pairing position information and sign information, and with the previous institute of these table updates write down, corresponding to the non-zero history table and the sign form of the desorption coefficient of previous scanning slice, and then as the usefulness of decoding one deck scanning slice.
In addition, in step S205, the desorption coefficient that above-mentioned decoding produces exports outside frame buffer (Frame Buffer) immediately to, and is presented on the computer screen.Wherein, according to the standard of gradual JEPG decoding, these desorption coefficients also comprise before output through inverse quantization conversion and inverse discrete cosine transformation to be handled, in addition also can be according to user's demand, change output again after its size via transducer, and allow the user see the image of suitable size.
At last in step S206, then be to judge whether the scanning slice of current decoder is the scanning slice of last one deck in the bit stream data, if not last one deck, then representative still has the data of scanning slice not decode, can get back to step S201 this moment, continues the decoding data of one deck scanning slice down; Relatively,, then represent the data of all scanning slices all to decode and finish, therefore behind the desorption coefficient that adds up, can obtain complete view data (step S207) if judge that the scanning slice of current decoder is last one deck scanning slice.
It should be noted that, the desorption coefficient of following one deck scanning slice of aforementioned calculation gained then can be handled back output via inverse quantization conversion and inverse discrete cosine transformation etc. equally, and be added to the desorption coefficient of previous output, and because the desorption coefficient after adding up comprises the more view data of multidigit, therefore the image that shows also must be more clear.
In sum, present embodiment utilizes in each scanning slice the characteristic of fixed bit information in the document image only, originally the desorption coefficient that needs preceding one deck scanning slice of lump-sum record is converted to non-zero history table and the sign form that only needs with two position records, therefore can significantly reduce the required internal memory of carrying recorded decoding coefficient, and the unlikely restriction that is subjected to the memory headroom size.And in order to be illustrated more clearly in the foregoing description the detailed process of record non-zero history table and sign form, below illustrate for another embodiment again.
Second embodiment
Present embodiment is an example with the actual desorption coefficient of decoding, and describes the coding and decoding process of this desorption coefficient in detail.With desorption coefficient-9 is example,-9 binary form is shown 11110111, and, when coefficient is carried out huffman coding, be to get its absolute value to encode as the introduction of prior art, and-9 absolute value can be expressed as |-9|=00001001, wherein, suppose that this enforcement always is divided into to do 4 layers of scanning slice and encode, and be encoded to preceding 5 positions (00001) for the first time, be-1, and the mode of coding is to adopt run length coding, RLC.
The form of run length coding, RLC is Table (RRRRSSSS) AA (K), and wherein K is first nonzero value after several null values, and RRRR is meant several null values before the K value, and SSSS is meant that this K value has several positions, and AA (K) is for representing the suitable position of K.In addition, RRRRSSSS is put into the position of this binary sequence numbering 3~0 with the SSSS value, and constitutes one 8 binary sequence for the RRRR value being put into the position of a binary sequence numbering 7~4.Actual when encoding, if the coefficient value of coding is a negative, then gets the complement code of this coefficient and encode, and after obtaining the RRRRSSSS value, can obtain the code word (codeword) of a minimum position, be i.e. Table (RRRRSSSS) via tabling look-up.Wherein, this table is a table of comparisons that produces according to the probability of RRRRSSSS appearance.Then, second and third, the coding that will carry out for four times is 0,0,1 in regular turn, these values all append to the next nonzero value that occurs.
The step of coding-1 can push away to such an extent that its corresponding RRRR value is 0 by foregoing before getting back to, and the SSSS value is 1, and AA (K)=0.The table look-up code word of gained of this moment hypothesis is Table (RRRRSSSS)=1011, then adds AA (K)=0, the coding 10110 after can obtaining after the merging compressing.
Relatively, when carrying out Hofmann decoding, then can adopt the run length coding/decoding method relatively, solve-1 binary value (promptly 11111111).This moment is because the position that the pairing position of the scanning slice of current decoder is a numbering 7~3, therefore need above-mentioned decode value (11111111) to three positions of left, and obtain (11111000), and this promptly represents numerical value-8, and can be recorded as this desorption coefficient negative in the sign form this moment.
Then, the decoded result of second and third time is 0, and this promptly represents void value.The 4th time decoded result then is that 1,1 representative has value, and according to the negative value that writes down in the sign form, therefore can solve-1 binary value (promptly 11111111).Yet, because the pairing position of scanning slice of the 4th decoding is the position of numbering 0, thus with above-mentioned decode value (11111111) after the left zero bits, can obtain (111111111).This promptly represents numerical value-1, and after the numerical value addition with all decodings, the desorption coefficient that gets final product to the end-9, i.e. (11111000)+0+0+ (111111111)=(11110111).In brief, present embodiment exactly will-9 be divided into-8,0,0 ,-1 and transmits.
Via as can be known above-mentioned, in progressive JPEG image decoding method of the present invention,, could produce correct desorption coefficient except must also needing sign with reference to the non-zero history table of preceding one deck scanning slice according to sign form decision desorption coefficient.Need do the part that positive and negative two power is adjusted compared to prior art and not mentioned desorption coefficient, therefore its method of provable employing may cause the mistake of decoding, and can't present correct image, and the present invention can solve such defective.
On the other hand, the present invention also comprises the memory size size according to system, scanning slice is divided into a plurality of decodings zone, and decode respectively, arrange in pairs or groups the non-zero history table and the sign form of above-mentioned record, can be effectively the internal memory of the required use of decoding be reduced to minimum, describe in detail for an embodiment again with next.
The 3rd embodiment
Fig. 4 is the flow chart of the progressive JPEG image decoding method that illustrates according to third embodiment of the invention.Please refer to Fig. 4, present embodiment is suitable for a bit stream data is decoded as view data, and wherein this bit stream data includes the data of a plurality of scanning slices, below introduces the detailed step of the coding/decoding method of present embodiment:
At first, scanning slice is divided into a plurality of decoding zones (step S401).Wherein, the size in the decoding zone of cutting apart determines that according to the amount of capacity of internal memory promptly earlier according to the quantity of accessible image blocking in the memory size decision decode procedure, quantity is divided into a plurality of decodings zone with scanning slice according to this again.
Then then be in the decoding zone that these are cut apart, to select a decoding zone in regular turn as local decoding zone (step S402).Wherein, owing to have certain sequence between each scanning slice, therefore in the present embodiment, the scanning slice data of Jie Shouing are the most preceding scanning slice data of ordering in the bit stream data at the beginning.
Next step then receives the data of one deck scanning slice of this bit stream data in regular turn, and according to a non-zero history table and a sign form, the data in the decoding zone, the part of this scanning slice of decoding produce a plurality of regional decoding coefficients (step S403).This step comprises earlier according to the non-zero history table, the data of scanning slice are carried out the run length decoding, obtain the coefficient value of each desorption coefficient, again according to the sign form, the coefficient value of each desorption coefficient done positive and negative two power adjustment, same or similar described in the wherein detailed decoding process and first embodiment, so do not repeat them here.
And when producing the regional decoding coefficient,, upgrade non-zero history table and sign form (step S404) also according to the size of these regional decoding coefficients.Wherein, because in gradual decoding process, when decoding the data of one of them scanning slice, must be with reference to the decoded result of previous scanning slice, therefore present embodiment is when producing the regional decoding coefficient, also these regional decoding coefficients can be changed with a non-zero history table and a sign form and replace the reference during for other scanning slice of subsequent decoding.
What deserves to be mentioned is that present embodiment also comprises the initial address of removing to seek this scanning slice earlier when receiving the scanning slice data at the beginning, then just from then on initial address begin to decode.In addition, after a local decoding area data of the intact one deck scanning slice of every decoding, present embodiment also comprises notes last decoded address in this local decoding zone, with the original position as the next local decoding of decoding zone.Relatively, before a local decoding zone of each decoding one deck scanning slice, the last decode address of record before also can loading earlier, and the decoding action is proceeded in the back in the previous local decoding zone of can continuing.From the above, the practice of present embodiment only needs to write down a last decode address, and do not need to store in advance the original position in all local area decoder territories when having decoded a local decoding zone at every turn, therefore can reduce the use of memory headroom.
Next step then is with behind these regional decoding coefficient process inverse quantizations and inverse discrete cosine transformation processing that produce of decoding, the view data (step S405) of output conduct part.Wherein, above-mentioned regional decoding coefficient also comprises through transducer conversion back to be exported, and does not limit its scope.
The data in a decoding zone in the intact scanning slice of every decoding, and behind the output area desorption coefficient, then can judge whether in addition the data of other scanning slice do not decode (step S406), if still have the data of scanning slice not decode, then return step S403, order according to scanning slice, the data in same local decoding zone in one deck scanning slice data under continuing to receive, and decode with reference to previously stored non-zero history table and sign form, produce new regional decoding coefficient, till the data in all local area decoder territories are all decoded and finished.The regional decoding coefficient of previous output then can be exported and be added to the new regional decoding coefficient of above-mentioned generation, and the regional decoding coefficient after adding up is owing to comprise the information of more multi-layered scanning slice, and the therefore last parts of images that shows also will become more clear.
At last, when the data decode that a decoding zone is arranged finishes, also comprise the data not decoding (step S407) as yet that judges whether to also have in other decoding zone, if still have the data in other decoding zone not decode, then return step S402, continue to select next local decoding zone, and the data in the next local decoding of decoding zone, data in all decoding zones can obtain complete view data (step S408) after all decoding and finishing.
In the present embodiment, according to the non-zero history table of storable image blocking and the quantity of sign form in the memory size decision decode procedure, and quantity is divided into a plurality of decodings zone with scanning slice according to this, in the decoding of each bout, can decode to the data in identical decoding zone in all scanning slices, and, continue to select next decoding zone and decode at second leg.And the also first line output of desorption coefficient that decoding produces, and change form with non-zero history table and sign form, offer the usefulness of follow up scan layer decoder.Therefore, the present invention can save more memory source.
In sum, in progressive JPEG image decoding method of the present invention, by non-zero historical record and the sign record that writes down each length-changeable decoding result, and direct carrying recorded decoding result's coefficient value, therefore the use that can save memory headroom, and make in limited memory source, still can correctly realize picture decoding, and can not have influence on the demonstration of image.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limiting the present invention, anyly is familiar with this operator, without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking the accompanying Claim person of defining.

Claims (12)

1. a progressive JPEG image decoding method is suitable for bit stream data is decoded as view data, includes the data of a plurality of scanning slices in this bit stream data, and this progressive JPEG image decoding method comprises the following steps:
A. receive one of them data of those scanning slices in this bit stream data in regular turn;
B. according to the non-zero history table, the data of this scanning slice of decoding in regular turn are a plurality of desorption coefficients;
C. according to the sign form, those desorption coefficients are done positive and negative two power adjustment; And
D. according to those desorption coefficients, upgrade this non-zero history table and this sign form;
E. export those desorption coefficients.
2. progressive JPEG image decoding method as claimed in claim 1, wherein this step b. comprises:
According to this non-zero history table, the data of this scanning slice are carried out the run length decoding, and then obtain the coefficient value of those desorption coefficients respectively.
3. progressive JPEG image decoding method as claimed in claim 2, wherein this step c comprises:
According to this sign form, the coefficient value with those desorption coefficients adds sign respectively; And
With reference to this scanning slice of current decoder corresponding to position that this view data write down in the position of binary sequence, the coefficient value with those desorption coefficients is multiplied by two power respectively.
4. progressive JPEG image decoding method as claimed in claim 1, wherein this step e. comprises:
Those desorption coefficients are changed through transducer, and inverse quantization conversion and inverse discrete cosine transformation processing back output; And
Those desorption coefficients of output are added to those desorption coefficients of previous output.
5. progressive JPEG image decoding method as claimed in claim 1 wherein also comprises after this step e.:
Whether this scanning slice of judging last decoding is this last scanning slice, if not this last scanning slice then returns step a., continues the data of next this scanning slice of decoding, otherwise, stop the decoding action, wherein
All decode when finishing when the data of all scanning slices of bit stream data, those desorption coefficients that add up at last are this complete view data.
6. a progressive JPEG image decoding method is suitable for bit stream data is decoded as view data, and this bit stream data includes the data of a plurality of scanning slices, and this coding/decoding method comprises the following steps:
A. cutting apart those scanning slices is a plurality of decodings zones;
B. select those decoding zones in regular turn as local decoding zone;
C. receive one of them relevant data of those scanning slices in this bit stream data in regular turn, and according to non-zero history table and sign form, decode data in the decoding zone, this part of this scanning slice, and then export a plurality of regional decoding coefficients, and upgrade this non-zero history table and this sign form;
D. receive the data of following one deck scanning slice of this scanning slice in this bit stream data in regular turn, and repetition step c, continue these interior data in decoding zone, part of this time of decoding one deck scanning slice, and export those regional decoding coefficients, and upgrade this non-zero history table and this sign form, up to the data of all those scanning slices all decode finish till.
7. progressive JPEG image decoding method as claimed in claim 6, wherein this step c comprises:
Those regional decoding coefficients are changed through transducer, and inverse quantization conversion and inverse discrete cosine transformation processing back output; And
Those regional decoding coefficients of output are added to those regional decoding coefficients of previous output.
8. progressive JPEG image decoding method as claimed in claim 6, wherein this step c comprises:
According to this non-zero history table, the data of this scanning slice are carried out the run length decoding, obtain the coefficient value of those desorption coefficients respectively; And
According to this sign form, respectively the coefficient value of those desorption coefficients is done positive and negative two power adjustment.
9. progressive JPEG image decoding method as claimed in claim 6, the size in those decoding zones of wherein cutting apart among this step a. determines according to memory size, and each those scanning slice is adopted identical partitioning scheme.
10. progressive JPEG image decoding method as claimed in claim 6, wherein this step c also comprises:
Write down the last decode address in this decoding zone, part of this scanning slice, in order to the original position in the zone of decoding as this part of next this scanning slice.
11. progressive JPEG image decoding method as claimed in claim 10 receives before the data of this scanning slice in this step c, also comprises:
When the data that the next one of this scanning slice of decoding should be decoded regional, this last decode address of this scanning slice of one deck before loading earlier;
From this last decode address data that the next one should decoding zone, part that begin to decode; And
Decode data in the decoding zone, this part of those scanning slices, and output becomes this view data of part.
12. progressive JPEG image decoding method as claimed in claim 11, wherein this steps d. also comprise afterwards:
Judging whether that data in those decoding zones of those scanning slices are all decoded finishes;
If still having the data in this decoding zone does not decode, repeating step b.~steps d then., continue to select the next one of this scanning slice of ground floor should decoding zone, part and the next data that should decoding zone, part of decoding, till the data in all decoding zones are all decoded and finished, wherein
All decode when finishing when the data in those the decoding zones of those scanning slices in this bit stream data, then form this complete view data.
CN 200710112700 2007-06-27 2007-06-27 Progressive JPEG image decoding method Expired - Fee Related CN100589573C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710112700 CN100589573C (en) 2007-06-27 2007-06-27 Progressive JPEG image decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710112700 CN100589573C (en) 2007-06-27 2007-06-27 Progressive JPEG image decoding method

Publications (2)

Publication Number Publication Date
CN101335887A true CN101335887A (en) 2008-12-31
CN100589573C CN100589573C (en) 2010-02-10

Family

ID=40198145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710112700 Expired - Fee Related CN100589573C (en) 2007-06-27 2007-06-27 Progressive JPEG image decoding method

Country Status (1)

Country Link
CN (1) CN100589573C (en)

Also Published As

Publication number Publication date
CN100589573C (en) 2010-02-10

Similar Documents

Publication Publication Date Title
US5966465A (en) Compression/decompression using reversible embedded wavelets
US5881176A (en) Compression and decompression with wavelet style and binary style including quantization by device-dependent parser
US11115663B2 (en) Codebook generation for cloud-based video applications
US8767823B2 (en) Method and apparatus for frame memory compression
JP4768728B2 (en) Method and apparatus for encoding a block of values
US8406545B2 (en) Apparatus for encoding image and apparatus for decoding image
US20010024529A1 (en) Image compression and decompression based on an integer wavelet transform using a lifting scheme and a correction method
JPH11168633A (en) Reconstruction execution method, reconstruction execution device, record medium, inverse conversion execution method, inverse conversion execution device, suitable reconstruction generating method, suitable reconstruction generator, coding data processing method, coding data processing unit and data processing system
US20140161195A1 (en) Video generator - use of database for video, image, graphics and audio
JP2010503254A (en) Apparatus and method for encoding data signal, and apparatus and method for decoding data signal
JP2003309726A (en) Method for encoding rate-distortion information allowing optimal transcoding of compressed digital image
JP2005218124A (en) Data compression system
KR101066051B1 (en) Apparatus and method for multiple description encoding
US11475600B2 (en) Method and device for digital data compression
CN103716634A (en) Method and apparatus for data compression using error plane coding
JPWO2003079692A1 (en) Hierarchical encoding apparatus and decoding apparatus
US10536697B2 (en) Method for re-encoding image and apparatus therefor
KR100742518B1 (en) Compressed storage of information
JP2008271039A (en) Image encoder and image decoder
CN100589573C (en) Progressive JPEG image decoding method
US8073270B2 (en) Image decoding apparatus and method
US8229236B2 (en) Method for progressive JPEG image decoding
US10798383B2 (en) Method for decoding a digital image, coding method, devices, terminal and associated computer programs
US8260070B1 (en) Method and system to generate a compressed image utilizing custom probability tables
JP2993212B2 (en) How to combine images

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100210

Termination date: 20170627

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