CN101004837B - Method for adding restarting marker in JPEG compressed data, and multi-chip decoding method - Google Patents

Method for adding restarting marker in JPEG compressed data, and multi-chip decoding method Download PDF

Info

Publication number
CN101004837B
CN101004837B CN200610173365XA CN200610173365A CN101004837B CN 101004837 B CN101004837 B CN 101004837B CN 200610173365X A CN200610173365X A CN 200610173365XA CN 200610173365 A CN200610173365 A CN 200610173365A CN 101004837 B CN101004837 B CN 101004837B
Authority
CN
China
Prior art keywords
macro block
decoding
rst
jpeg
ffbf
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.)
Expired - Fee Related
Application number
CN200610173365XA
Other languages
Chinese (zh)
Other versions
CN101004837A (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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CN200610173365XA priority Critical patent/CN101004837B/en
Publication of CN101004837A publication Critical patent/CN101004837A/en
Application granted granted Critical
Publication of CN101004837B publication Critical patent/CN101004837B/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

A method for adding restart up label in JPEG compressed data enables decoder to make decoding operation properly although quite numbers of RST marks are lost in transmission course by utilizing JPEG standard prereserved code word as RST mark, only part lost RST marks is error pattern and the other parts are normal patterns when pattern is decoded and displayed out. The said method supports multi-chip simultaneous-decoding for raising the decoding efficiency.

Description

The method and the multi-chip decoding method that in the JPEG packed data, add restarting marker
Technical field
The present invention relates to the compression of images field, particularly in the JPEG packed data, add the method and the multi-chip decoding method of restarting marker.
Technical background
JPEG is the english abbreviation of JPEG (joint photographic experts group) (Joint Picture Expert Group), is a kind of compressed encoding standard of still image.
Because in the jpeg image coding, piece image is not once to encode to finish, and encodes separately separately but be divided into several data cells, is called macro block in this data unit will once encoding.Below macro block is done simple introduction, a macro block comprises several minimum macroelements, and minimum macroelement then is made up of several pieces block.Following mask body is introduced the notion of block and minimum macroelement.Comprise 8*8 encoded radio among the block, for example,, comprise 8*8 Y value among the block for yuv data, or 8*8 U value, or 8*8 V value.And minimum macroelement, image with the YUV411 form is an example, 4 Y values of horizontal every mistake just have 1 U and 1 V value, then, a minimum macroelement promptly comprises the pixel value of 8 row, 32 row, comprising the block of 4 Y values, the block of the block of 1 U value and 1 V value, promptly minimum macroelement is necessary for the minimum data unit of the complete b lock that has comprised each dissimilar pixel values.
Because each macro block is encoded separately separately,, a mark RST who restarts to encode can be arranged all so begin at each macro block through coding.The RST value is recycling from FFD1~FFD7.This just means in cataloged procedure, if picture size is too big, the sign RST sign that has a plurality of FFD1~FFD7 appears in the encoding stream.If in transmission course, there is the RST sign of one or more groups FFD1~FFD7 all to lose, then just can not find mistake in decoder end, can decode obtains wrong figure.For example decoding finishes decoding end to macro block n, and macro block n+1 restarts mark RST value FFD3~FFD7 and FFD1~FFD2 has all lost to 7 of macro block n+7 in transmission course, and macro block n+8 normal transmission, so after decoding end is received the FFD3 mark of macro block n+8, just can't learn that what receive has not been the signal of macro block n, so just error code may occur, as shown in Figure 1, all wrong situation of image of back may occur.At this moment, have only to time piece image restart just to recover normal.
Summary of the invention
In view of this, the technical issues that need to address of the present invention are exactly to recycle FFD1~FFD7 in the existing Joint Photographic Experts Group may cause the decoding back problem of wrong figure to occur.
In order to solve the problems of the technologies described above, the invention provides a kind of method that in the JPEG packed data, adds restarting marker, may further comprise the steps:
100 are divided into several macro blocks with piece image;
200 carry out JPEG separately to each macro block encodes;
300 begin place's adding at described macro block through the JPEG coding restarts mark RST, the value of the described RST mark codeword reserved that uses in order, described codeword reserved is FF10~FFBF, totally 208, use in order by FF10 to FFBF, start anew to recycle once more after whenever using one time;
400 judge whether piece image encodes finishes, if do not finish, then execution in step 200, if finish, and then present image end-of-encode.
Further, described macro block comprises several minimum macroelements, comprises the complete b lock of dissimilar pixel values in each minimum macroelement, and a block is the set of the same type pixel value of 8*8.
The present invention also provides a kind of multi-chip decoding method, is used for the described coding result of claim 1 is decoded, and may further comprise the steps:
500 obtain the jpeg image data, are unit with the macro block with it, and each macro block is sent into a decoding chip
In decode decoding when using a plurality of decoding chips to carry out a plurality of macro block simultaneously;
600 synthesize the data of a plurality of decoding chips output in proper order according to the value of RST mark, the value of the described RST mark codeword reserved that uses in order, described codeword reserved is FF10~FFBF, totally 208, use in order by FF10 to FFBF, start anew to recycle once more after whenever using one time.
The present invention utilizes the value of the codeword reserved of Joint Photographic Experts Group as the RST sign, and compared with prior art, operational code word is abundant, and therefore lose under the situation of a plurality of RST signs in transmission course the coding back, and demoder still can normal decoder.The part that the figure that demonstrates after the decoding only loses the RST sign is wrong figure, and the figure of other parts is normal.Simultaneously, the present invention can also support the multicore sheet to decode simultaneously, can improve decoding efficiency greatly.
Description of drawings
Fig. 1 in the prior art based on the synoptic diagram of JPEG wrong figure that coding method causes;
Fig. 2 adds the method flow diagram of restarting marker in the JPEG packed data for the present invention;
Fig. 3 is for after using the present invention, and the RST mark is lost the view data synoptic diagram that does not cause the wrong figure in big zone to produce.
Embodiment
Below in conjunction with accompanying drawing, further describe method of the present invention, may further comprise the steps:
100 are divided into several macro blocks with piece image;
Image with the YUV411 form in the background technology is an example, suppose that it is of a size of 640*480, then it can be divided into 80*60=4800 Yblock, 40*30=1200 Ublock and 40*30=1200 Vblock, so its minimum macroelement is 40*30=1200, comprise 4 of Yblock in each minimum macroelement, and each 1 of Vblock and Ublock.And each coded data unit, promptly macro block can be made up of one or more minimum macroelements.
200 pairs of macro blocks carry out the JPEG coding separately;
After piece image is divided into macro block, macro block is carried out the JPEG coding one by one.
300 begin place's adding at described macro block through the JPEG coding restarts mark RST;
Beginning place's adding at the macro block through coding and restart mark RST, in the present invention, is that sequential loop uses codeword reserved as macro block opening flag value.Described codeword reserved can be FF10~FFBF.For example current macro is a n macro block, and its RST is encoded to FF13.If n+1 macro block arranged, then after the end-of-encode, the RST of its adding is labeled as FF14.Value in using up FF10~FFBF can sequential loop re-use FF10~FFBF as the RST mark.But because FF10~FFBF has 208 code words of as many as, with respect to 7 values of the FFD0~FFD7 in the primary standard, the repetition probability of RST mark is little.Behind lost part RST mark, decoding end still can correctly solve the data of other macro block, as shown in Figure 3 like this, bad figure part only can part occur with " O " expression, bad as seen from the figure figure with " X " expression, good figure part, can be not out of control, thus greatly reduce wrong incidence.
400 judge whether piece image encodes finishes, if do not finish, then execution in step 200, if finish, and then present image end-of-encode.
Do not finish if the macro block in the piece image is all encoded, then proceed coding, if coding finishes, then this picture coding finishes.
And use FF10~FFBF, and can also support the multicore slice encode, the different macro blocks in the piece image can be decoded in different decoding chips, then according to the synthetic again piece image of RST mark.Concrete coding/decoding method is:
500 obtain the jpeg image data, are unit with the macro block with it, and each macro block is sent in the decoding chip and decoded, decoding when using a plurality of decoding chips to carry out a plurality of macro block simultaneously;
600 synthesize the data of a plurality of decoding chips output according to the order of RST.
Because code word is abundant, just do not worry the built-up sequence of the data of different decoding chips output, so composograph correctly.Therefore improved decoding efficiency.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement etc., all should be included within protection scope of the present invention.

Claims (3)

1. in the JPEG packed data, add the method for restarting marker, it is characterized in that, may further comprise the steps:
100 are divided into several macro blocks with piece image;
200 carry out JPEG separately to each macro block encodes;
300 begin place's adding at described macro block through the JPEG coding restarts mark RST, the value of the described RST mark codeword reserved that uses in order, described codeword reserved is FF10~FFBF, totally 208, use in order by FF10 to FFBF, start anew to recycle once more after whenever using one time.
400 judge whether piece image encodes finishes, if do not finish, then execution in step 200, if finish, and then present image end-of-encode.
2. method according to claim 1 is characterized in that, described macro block comprises several minimum macroelements, comprises the complete b lock of dissimilar pixel values in each minimum macroelement, and a block is the set of the same type pixel value of 8*8.
3. the multi-chip decoding method is used for the described coding result of claim 1 is decoded, and it is characterized in that, may further comprise the steps:
500 obtain the jpeg image data, are unit with the macro block with it, and each macro block is sent in the decoding chip and decoded, decoding when using a plurality of decoding chips to carry out a plurality of macro block simultaneously;
600 synthesize the data of a plurality of decoding chips output in proper order according to the value of RST mark, the value of the described RST mark codeword reserved that uses in order, described codeword reserved is FF10~FFBF, totally 208, use in order by FF10 to FFBF, start anew to recycle once more after every use one time.
CN200610173365XA 2006-12-30 2006-12-30 Method for adding restarting marker in JPEG compressed data, and multi-chip decoding method Expired - Fee Related CN101004837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610173365XA CN101004837B (en) 2006-12-30 2006-12-30 Method for adding restarting marker in JPEG compressed data, and multi-chip decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610173365XA CN101004837B (en) 2006-12-30 2006-12-30 Method for adding restarting marker in JPEG compressed data, and multi-chip decoding method

Publications (2)

Publication Number Publication Date
CN101004837A CN101004837A (en) 2007-07-25
CN101004837B true CN101004837B (en) 2010-04-14

Family

ID=38703949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610173365XA Expired - Fee Related CN101004837B (en) 2006-12-30 2006-12-30 Method for adding restarting marker in JPEG compressed data, and multi-chip decoding method

Country Status (1)

Country Link
CN (1) CN101004837B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105989175B (en) * 2015-03-05 2019-11-22 深圳市腾讯计算机系统有限公司 Image display method and apparatus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176630A1 (en) * 2001-05-28 2002-11-28 Nec Corporation Image data processing method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176630A1 (en) * 2001-05-28 2002-11-28 Nec Corporation Image data processing method

Also Published As

Publication number Publication date
CN101004837A (en) 2007-07-25

Similar Documents

Publication Publication Date Title
CN1806441B (en) Decoding method and apparatus enabling fast channel change of compressed video
USRE41180E1 (en) Method for encoding and decoding moving picture signals
CN100555877C (en) Variable length decoding method, variable length coding apparatus
CN103843340B (en) Reference picture list processing
RU2010127308A (en) SYSTEM AND METHOD FOR COMPRESSING INTERACTIVE STREAM VIDEO
CN102006475A (en) Video coding and decoding device and method
CN1642287A (en) Decoding method and decoding apparatus
CL2022000717A1 (en) Image header signaling in video encoding
CN110909744B (en) Multi-description coding method and system combined with semantic segmentation
CN106127822B (en) Unidirectional data transmission method and system based on graphic coding between physical isolation terminals
ES2190778T3 (en) Image coding apparatus, method of image coding, image decoding apparatus, decoding PROCEDURE AND MEDIA REGISTRATION DATA.
AR118329A1 (en) METHODS FOR THE PROCESS OF RECOVERY POINTS FOR THE ENCODING OF VIDEOS AND RELATED DEVICES
CN101004837B (en) Method for adding restarting marker in JPEG compressed data, and multi-chip decoding method
CN107465457A (en) A kind of method for reception and the decoding that visible light communication is realized using android mobile phone cameras
CN104698479A (en) Method and device for decoding navigation messages
CN101540901A (en) Method and device for coding/decoding
US8660188B2 (en) Variable length coding apparatus, and method and integrated circuit of the same
CN102438150A (en) Anti-channel-error-code lossless compression error-detection/correction coding/decoding method for image
JP2002185755A (en) Storage and transfer image transmission method, storage and transmission facsimile transmission method, facsimile interface unit
CN100525120C (en) Method and device for diversity error control coding and decoding
CN101198052A (en) Video encoding method, decoding method and device
CN101466037A (en) Method for implementing video decoder combining software and hardware
CN114501070B (en) Encoding and decoding method, processing method and system for video conference synchronous extra information
CN102801495A (en) Fountain-code-based telemetry data frame synchronization method
CN103944678B (en) Fountain-code encoding method with feedback and unequal error protection capacity

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100414

Termination date: 20111230