CN101453643A - Quantitative mode, image encoding, decoding method, encoder, decoder and system - Google Patents

Quantitative mode, image encoding, decoding method, encoder, decoder and system Download PDF

Info

Publication number
CN101453643A
CN101453643A CN 200710193851 CN200710193851A CN101453643A CN 101453643 A CN101453643 A CN 101453643A CN 200710193851 CN200710193851 CN 200710193851 CN 200710193851 A CN200710193851 A CN 200710193851A CN 101453643 A CN101453643 A CN 101453643A
Authority
CN
China
Prior art keywords
quantitative mode
code stream
image
quantitative
present encoding
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 200710193851
Other languages
Chinese (zh)
Other versions
CN101453643B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200710193851 priority Critical patent/CN101453643B/en
Priority to PCT/CN2008/073338 priority patent/WO2009086766A1/en
Publication of CN101453643A publication Critical patent/CN101453643A/en
Application granted granted Critical
Publication of CN101453643B publication Critical patent/CN101453643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Abstract

The invention relates to a method for encoding/decoding quantitative mode, a method for encoding/decoding an image, an encoder, a decoder and a system, wherein the method for encoding the quantitative mode comprises: obtaining a quantitative mode code stream value according to the quantitative mode of a current encoding block; and writing the quantitative mode code stream value into image code stream; the method for encoding the image comprises: determining the quantitative mode of the current encoding block in an input image; zooming or quantifying the current encoding block according to the quantitative mode to obtain the current encoding block data after quantification; obtaining a quantitative mode code stream value according to the quantitative mode of a current encoding block; and encoding the quantified current encoding block data to obtain image code stream, and writing the quantitative mode code stream value into image code stream. The invention writes the determined current encoding block quantitative mode into encoding data, does not need perform quantitative mode decision at the decoder end, and directly decodes to obtain current block quantitative mode, so as to reduce calculation burden and realizing cost of the decoder.

Description

Quantitative mode, image encoding, coding/decoding method, encoder, decoder and system
Technical field
The embodiment of the invention relates to encoding and decoding technique, relates in particular to a kind of quantitative mode, image encoding, coding/decoding method, encoder, decoder and system.
Background technology
In image encoding and decoding technique, carry out encoding process again after image need being divided into encoding block usually at the coding of image.To obtain corresponding block conversion coefficient for the image that is divided into encoding block through the orthogonal transform processing, described block conversion coefficient is again through quantizing to round calculating, and entropy coding just can obtain the code stream behind the compressed encoding of this image correspondence at last, thereby realized the encoding operation at image.
Because the picture material in a sequence is not identical, but have bigger variation, promptly the details of image has nothing in common with each other in same image sequence, therefore, if all adopt same quantization matrix to realize quantification treatment, obviously can't reach the image subjective quality behind the best quantization encoding for whole sequence.Equally, for a certain width of cloth image in the sequence, the regional content of each of image also has nothing in common with each other, and identical quantification quality is adopted in each zone of same width of cloth image or macro block, can not reach the image subjective quality behind the best quantization encoding.
Macro-block-level self-adaptive quantization encoding technology just provides a kind of macro block quantization coding method, makes in the image encoding process, and macro block quantizes quality and can change according to each macroblock image content is different.A kind of macro-block-level self-adaptive quantization encoding technology is provided in the prior art, in cataloged procedure, has utilized the contiguous block technology of coded message prediction current block feature, thereby in quantification, select different macro blocks to quantize quality according to the macro block characteristics of prediction.Contiguous block coded message comprises piecemeal pattern information, information of forecasting, motion vector information of contiguous block etc., and these information can reflect the characteristics of image of current block.As shown in Figure 1, be the schematic diagram of macro block in the prior art, wherein current block is E, and the contiguous block of E is A, B, C and D, and the piece size of piece E and piece A, B, C, D can be identical, also can be different.The contiguous block of current block E vertical direction is A and D, and the contiguous block of horizontal direction is B and D or C and D.The adjacent boundary piece of E is called the direct contiguous block of E, and the contiguous block of the adjacent boundary piece of E is called the indirect neighbor piece of E.
As shown in Figure 2, schematic diagram for coding/decoding system in the prior art, wherein encoder 1 comprises conversion module 2, convergent-divergent or quantization modules 3, the first quantitative mode decision-making module 4 and entropy coding module 5, decoder 6 comprises entropy decoder module 7, contrary convergent-divergent or inverse quantization module 8, the second quantitative mode decision-making module 9 and inverse transform module 10, wherein the first quantitative mode decision-making module 4 utilizes the piecemeal pattern information of contiguous block in the cataloged procedure, parameter information such as macroblock size and information of forecasting, before current block is quantized, according to judging that whether current block is the make a strategic decision quantitative mode of current block of the result of details area.
The decoding method of prior art is divided into following a few class with quantitative mode:
Quantitative mode A is the quantitative mode of acquiescence, and the quantization matrix that adopts when coding is identical with the quantization matrix of current acquiescence;
Quantitative mode B, for keeping the quantitative mode of details, the quantization matrix that adopts when coding makes the image after quantizing keep image detail;
Quantitative mode C is non-details quantitative mode, and the image after the quantification need not to keep image detail.
According to human vision property, the quantitative mode of described decision-making current block generally need be followed following several criterion:
(1) current block is the details area of image, and then the quantitative mode of Cai Yonging should keep more high-frequency information, promptly adopts high-quality quantitative mode;
(2) current block is the movement edge part of image, and then the quantitative mode of Cai Yonging should keep more high-frequency information, promptly adopts high-quality quantitative mode;
(3) current block is the more violent zone of motion, and the suitable decline of objective quality can not produce very big influence to subjective quality, then can adopt more coarse quantitative mode, promptly adopts low-quality quantitative mode.
Described quantitative mode decision-making is actual to be the one group of decision rule that satisfies above decision rule, adjudicates the quantification quality that current piece adopts according to different frame types, different contiguous block coded messages, and court verdict promptly is the quantitative mode of current block.
Specifically, in the actual coding process, the first quantitative mode decision-making module 4 utilizes the parameter informations such as piecemeal pattern information, macroblock size and information of forecasting of contiguous block, by predefined criterion, and the quantitative mode of decision-making current block.The criterion of described setting is to set the corresponding quantitative pattern according to the parameter information situation of contiguous block.
There is following problem at least in above-mentioned prior art:
(1) includes the quantitative mode decision-making module in encoder 1 and the decoder 6, promptly all need in the Code And Decode method to carry out the quantitative mode decision making algorithm, increased the computation burden of decoder and realized cost;
(2) decision making algorithm of Gu Ding quantitative mode has determined the result of quantitative mode, makes this coding method not have a flexibility.
Summary of the invention
The embodiment of the invention has proposed a kind of quantitative mode, image encoding, coding/decoding method, encoder, decoder and system, can obtain quantitative mode according to decoded bit stream when making decoding, has reduced the computational complexity that carries out the quantitative mode decision-making in decoding end.
The embodiment of the invention provides a kind of quantitative mode coding method, comprising:
According to the quantitative mode of present encoding piece, obtain quantitative mode code stream value;
Described quantitative mode code stream value is write in the image code stream.
The embodiment of the invention provides a kind of quantitative mode coding/decoding method, comprising:
From image code stream, obtain the quantitative mode code stream value of current decoding block;
According to described quantitative mode code stream value, obtain the quantitative mode of current decoding block.
The embodiment of the invention provides a kind of quantitative mode encoder, comprising:
The quantitative mode coding module is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value;
The image code stream insert module is used for described quantitative mode code stream value is write image code stream.
The embodiment of the invention provides a kind of quantitative mode decoder, comprising:
Quantitative mode code stream acquisition module is used for obtaining from image code stream the quantitative mode code stream value of current decoding block;
The quantitative mode decoder module is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value.
The embodiment of the invention provides a kind of quantitative mode coding/decoding system, comprising: quantitative mode encoder and quantitative mode decoder;
The quantitative mode encoder comprises:
The quantitative mode coding module is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value;
The image code stream insert module is used for described quantitative mode code stream value is write image code stream;
The quantitative mode decoder comprises:
Quantitative mode code stream acquisition module is used for obtaining from image code stream the quantitative mode code stream value of current decoding block;
The quantitative mode decoder module is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value.
The embodiment of the invention provides a kind of method for encoding images, comprising:
Determine the quantitative mode of present encoding piece in the input picture;
According to described quantitative mode the present encoding piece is carried out convergent-divergent or quantification treatment, the present encoding blocks of data after obtaining quantizing;
According to the quantitative mode of present encoding piece, obtain quantitative mode code stream value;
Present encoding blocks of data coding after quantizing is obtained image code stream, and described quantitative mode code stream value is write in the described image code stream.
The embodiment of the invention provides a kind of picture decoding method, comprising:
From image code stream, resolve and obtain current decoding block data and the corresponding mode code flow valuve that quantizes thereof;
According to described quantitative mode code stream value, obtain the quantitative mode of current decoding block;
Current decoding block data are carried out contrary convergent-divergent or inverse quantization is handled with described quantitative mode, obtain the current decoding block data behind the de-quantization;
According to the current decoding block data behind the described de-quantization, obtain decoded picture.
The embodiment of the invention provides a kind of image encoder, comprising:
The quantitative mode decision-making module is used for determining the quantitative mode of input picture present encoding piece;
Convergent-divergent or quantification treatment module are used for according to described quantitative mode the present encoding piece being carried out convergent-divergent or quantification treatment, the present encoding blocks of data after obtaining quantizing;
The quantitative mode coding module is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value;
Image coding module is used for the present encoding blocks of data coding after quantizing is obtained image code stream;
The image code stream insert module is used for described quantitative mode code stream value is write described image code stream.
The embodiment of the invention provides a kind of image decoder, comprising:
Parsing module is used for obtaining current decoding block data from the image code stream parsing;
Quantitative mode code stream acquisition module is used for obtaining from image code stream the quantitative mode code stream value of current decoding block;
The quantitative mode decoder module is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value;
Contrary convergent-divergent or inverse quantization module are used to adopt described quantitative mode that current decoding block data are carried out contrary convergent-divergent or inverse quantization is handled, and obtain the current decoding block data behind the de-quantization;
The decoded picture generation module is used for according to the current decoding block data behind the described de-quantization, obtains decoded picture.
The embodiment of the invention provides a kind of image coding and decoding system, comprising: image encoder and image decoder;
Described image encoder comprises:
The quantitative mode decision-making module is used for determining the quantitative mode of input picture present encoding piece;
Convergent-divergent or quantification treatment module are used for according to described quantitative mode the present encoding piece being carried out convergent-divergent or quantification treatment, the present encoding blocks of data after obtaining quantizing;
The quantitative mode coding module is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value;
Image coding module is used for the present encoding blocks of data coding after quantizing is obtained image code stream;
The image code stream insert module is used for described quantitative mode code stream value is write described image code stream.
Described image decoder comprises:
Parsing module is used for obtaining current decoding block data from the image code stream parsing;
Quantitative mode code stream acquisition module is used for obtaining from image code stream the quantitative mode code stream value of current decoding block;
The quantitative mode decoder module is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value;
Contrary convergent-divergent or inverse quantization module are used to adopt described quantitative mode that current decoding block data are carried out contrary convergent-divergent or inverse quantization is handled, and obtain the current decoding block data behind the de-quantization;
The decoded picture generation module is used for according to the current decoding block data behind the described de-quantization, obtains decoded picture.
The quantitative mode that the embodiment of the invention provides, image encoding, coding/decoding method, encoder, decoder and system, write in the coded data by the present encoding piece quantitative mode that will determine, do not need to carry out the quantitative mode decision-making in decoder end, directly can obtain the current block quantitative mode, reduce the computation burden of decoder and realized cost by decoding.
Description of drawings
Fig. 1 is the schematic diagram of macro block in the prior art;
Fig. 2 is the schematic diagram of image coding and decoding system in the prior art;
Fig. 3 is the flow chart of embodiment of the invention quantitative mode coding method;
Fig. 4 is the flow chart of embodiment of the invention quantitative mode coding/decoding method;
Fig. 5 is the schematic diagram of embodiment of the invention quantitative mode encoder;
Fig. 6 is the schematic diagram of embodiment of the invention quantitative mode decoder;
Fig. 7 is the schematic diagram of embodiment of the invention quantitative mode coding/decoding system;
Fig. 8 is the flow chart of embodiment of the invention method for encoding images;
Fig. 9 is a flow chart of determining present encoding piece quantitative mode in the embodiment of the invention method for encoding images;
Figure 10 is the flow chart of embodiment of the invention picture decoding method;
Figure 11 is the schematic diagram of embodiment of the invention image encoder;
Figure 12 is the schematic diagram of embodiment of the invention image decoder;
Figure 13 is the schematic diagram of embodiment of the invention image coding and decoding system.
Embodiment
Below by drawings and Examples, the technical scheme of the embodiment of the invention is described in further detail.
The quantitative mode that the embodiment of the invention provides, image encoding, coding/decoding method, encoder, decoder and system, by the quantitative mode of present encoding piece is encoded, and write in the image code stream, do not need to carry out the quantitative mode decision-making in decoder end, directly can obtain the quantitative mode of present encoding piece by decoding.
Before the method for carrying out the embodiment of the invention, presuppose the quantitative mode of 3 types of existence: quantitative mode A, quantitative mode B, quantitative mode C.Input picture P according to macroblock partitions is:
P = MB 00 MB 01 MB 02 MB 03 MB 10 MB 11 MB 12 MB 13 MB 20 MB 21 MB 22 MB 23 MB 30 MB 31 MB 32 MB 33
Wherein, MB I, jPresentation video is at (i, j) macro block of position.For each the macro block MB among the P I, j, to determine its corresponding quantitative pattern now.
The image of supposing current acquisition according to the corresponding model results that quantizes of macroblock partitions institute is:
Mode out = A 00 A 01 A 02 A 03 A 10 C 11 B 12 C 13 A 20 B 21 B 22 C 23 A 30 C 31 C 32 C 33
Wherein A, B, C are 3 kinds of quantitative modes, and following footnote is represented this position of place's macro block in image P.For example, A I, jBe illustrated in that (i, j) quantitative mode of this macro block of position is A.
As shown in Figure 3, the flow chart for the coding method of embodiment of the invention quantitative mode specifically comprises the steps:
Step 101, according to the quantitative mode of present encoding piece, obtain quantitative mode code stream value;
Step 102, described quantitative mode code stream value is write in the image code stream.
Wherein in the step 101, according to the quantitative mode of present encoding piece, obtaining quantitative mode code stream value can be specially: the quantitative mode result of present encoding piece is encoded; Also can be specially: encode after the quantitative mode result process functional relation conversion with the present encoding piece.
Above-mentioned coding can be direct coding, also can be entropy coding.Direct coding is meant the result after the quantitative mode process functional relation conversion of the quantitative mode result of present encoding piece or present encoding piece as quantitative mode code stream value.
When adopting direct coding, and coding to as if the quantitative mode of present encoding piece as a result the time, the quantitative mode result who is about to the present encoding piece directly writes in the encoding code stream;
That is to say, with Mode OutThe quantitative mode of middle correspondence position is directly write in the corresponding macro block code stream.As at MB 21Place's corresponding quantitative pattern is B 21, therefore, quantitative mode B is write macro block MB 21Code stream in.
When adopting direct coding, and coding to as if the quantitative mode of present encoding piece after through the functional relation conversion as a result the time, the quantitative mode result who is about to the present encoding piece encodes after according to the certain functional relation conversion.
As, image quantizes model results Mode according to the correspondence of macroblock partitions OutBe used as is that the quantitative mode image carries out the quadratic transformation coding.Wherein each pixel value is a quantitative mode value among the image P in this quantitative mode image.
When adopting entropy coding, exactly the object of coding is write in the encoding code stream according to the entropy coding method of determining, described entropy coding method includes but not limited to index coding, block code, Run-Length Coding, variable-length encoding (VLC, as based on contextual variable-length encoding CAVLC etc.), arithmetic coding (AC, as huffman coding, based on contextual arithmetic coding CABAC etc.) or arbitrary combination of said method.
Wherein index encoding method embodiment is as follows:
In the present embodiment, still 3 kinds of quantitative modes are used in supposition, and index value can be binary coding, therefore, can adopt the binary coding representation index value of 2bit for 3 kinds of quantitative modes.Set in advance the table of comparisons of quantitative mode and index value, as shown in the table:
The table of comparisons of table 1. quantitative mode and index value
Index value Quantitative mode
00 A pattern: default mode
01 B pattern: non-reservation detail modes
10 C pattern: keep detail modes
11 The flag bit that keeps
The shared bit number of index value when reducing entropy coding, above-mentioned index value can also use the binary system variable-length encoding of 1-3bit to represent, has corresponding relation between binary system variable length code and the index value, and then set up corresponding relation with quantitative mode, the table of comparisons of the quantitative mode that sets in advance, index value and binary system variable length code, as shown in the table:
The table of comparisons of table 2. quantitative mode, index value and binary system variable length code
Index value The binary system variable length code Quantitative mode
00 1 A pattern: default mode
01 010 B pattern: non-reservation detail modes
10 011 C pattern: keep detail modes
Above-mentioned 3 types quantitative mode is concrete example of the embodiment of the invention, the type of embodiment of the invention quantitative mode is not limited in above-mentioned 3 types, and can preestablish quantitative mode greater than 3 types, make that the type of quantitative mode is abundanter.
Adopt the coding method of determining to obtain quantitative mode code stream value through step 101, described quantitative mode code stream value is exactly the encoded radio of quantitative mode in image code stream.
For example, if represent quantitative mode with the form of index value, the i.e. quantitative mode code stream value in image code stream of the index value of quantitative mode then.As when adopting above-mentioned table 1, quantitative mode C institute is corresponding, and to quantize the mode code flow valuve be 11.If represent quantitative mode with binary system variable length code form, as when adopting above-mentioned table 2, quantitative mode C institute is corresponding, and to quantize the mode code flow valuve be 011.
In the step 102, quantitative mode code stream value is write in the image code stream, the concrete location of quantitative mode in image code stream can for:
(1) quantitative mode code stream value is write in the macro-block level code stream of image, as write among the macroblock ()
Table 3 is write quantitative mode in the macro block code stream
macroblock(){ Descriptor
……
mb_wq_mode u(2)
……
for(i=0;i<6;i++)
block(i)
……
}
Wherein, block (i) represents the sub-piece of the macro block that comprises in this macro block, and mb_wq_mode is this macro block corresponding quantitative pattern, with the bigit U (2) that encodes, promptly allows the version of 4 kinds of quantitative mode types at most.Allow each macro block to have the corresponding quantitative pattern this moment.
(2) quantitative mode code stream value is write in the sub-block code stream of macro block of image, as is write among the sub-piece block of macro block (),
Table 4 is write quantitative mode in the sub-block code stream of macro block
block(){ Descriptor
……
mb_wq_mode se(v)
……
}
Wherein, mb_wq_mode is the sub-piece corresponding quantitative of this a macro block pattern, and se (v) encodes with entropy coding method.Allow each sub-piece of macro block to have the corresponding quantitative pattern this moment.
(3) quantitative mode code stream value is combined into a quantitative mode image and coding according to the arrangement position of present encoding piece in image, writes in the image code stream.
The quantitative mode coding method that the embodiment of the invention provides, by quantitative mode coding with the present encoding piece, and write in the image code stream, making does not need to carry out the quantitative mode decision making algorithm in decoder end, directly can obtain the quantitative mode of present encoding piece, reduce the computation burden of decoder and realized cost by decoding.
As shown in Figure 4, the flow chart for embodiment of the invention quantitative mode coding/decoding method specifically comprises the steps:
Step 201, from image code stream, obtain the quantitative mode code stream value of present encoding piece;
Step 202, according to described quantitative mode code stream value, obtain the quantitative mode of current decoding block.
In the present embodiment, the concrete location of quantitative mode code stream value in image code stream can be with reference to the content described in the coding method of embodiment of the invention quantitative mode, therefore, the quantitative mode code stream value of obtaining the present encoding piece in the step 201 from image code stream can be specially: the quantitative mode code stream value of obtaining current decoding block from the image macro code stream; Also can be specially: the quantitative mode code stream value of from the sub-block code stream that image macro comprises, obtaining current decoding block; Can also be specially: from image code stream, obtain the quantitative mode image and the decoding of present image, and determine the quantitative mode code stream value of current decoding block according to the arrangement position of current decoding block in image.
Present embodiment quantitative mode coding/decoding method can be corresponding with the coding method of embodiment of the invention quantitative mode.
In coding method, adopt direct coding, and coding to as if the quantitative mode of present encoding piece as a result the time, described step 202 can be specially: with the quantitative mode of described quantitative mode code stream value as current decoding block.
In coding method, adopt direct coding, and coding to as if the quantitative mode of present encoding piece after through the functional relation conversion as a result the time, described step 202 can be specially: with the quantitative mode of the result of described quantitative mode code stream value after through the functional relation inverse transformation as current decoding block.
When adopting entropy coding in the coding method, described step 202 can be specially: described quantitative mode code stream value is carried out the entropy decoding, perhaps described quantitative mode code stream value is carried out entropy decoding and functional relation inverse transformation after, obtain the quantitative mode of current decoding block.
Described entropy decoding method includes but not limited to index, fixed length decoding, runs decoding, variable length decoding (VLC, as based on contextual variable length decoding CAVLC etc.), arithmetic decoding (AC, as Hofmann decoding, based on contextual arithmetic decoding CABAC etc.) or arbitrary combination of said method.
The quantitative mode coding/decoding method that the embodiment of the invention provides does not need to carry out the quantitative mode decision making algorithm, directly can obtain the quantitative mode of present encoding piece by decoding, has reduced the computation burden of decoder and has realized cost.
As shown in Figure 5, the schematic diagram for embodiment of the invention quantitative mode encoder specifically comprises: quantitative mode coding module 11, be used for quantitative mode according to the present encoding piece, and obtain quantitative mode code stream value; Image code stream insert module 12 is used for described quantitative mode code stream value is write image code stream.
Wherein quantitative mode coding module 11 can be specially the first quantitative mode coding module, is used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion as quantitative mode code stream value.
Quantitative mode coding module 11 also can be specially the second quantitative mode coding module, is used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion and encodes, and obtains quantitative mode code stream value.
The second quantitative mode coding module also can be specially quantitative mode entropy coding module, is used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion and carries out entropy coding, obtains quantitative mode code stream value.
Wherein image code stream insert module 12 can be specially: image macro code stream insert module is used for quantitative mode code stream value is write in the macro block code stream of image present encoding; Or the sub-block code stream of image macro insert module is used for quantitative mode code stream value is write in the sub-block code stream that macro block comprised of image present encoding.
Image code stream insert module 12 can also specifically comprise: quantitative mode image encoding unit is used for quantitative mode code stream value is combined into a quantitative mode image and coding according to the present encoding piece at the arrangement position of image; Insert the unit, be used for the quantitative mode image behind the coding is write image code stream.
The quantitative mode encoder that the embodiment of the invention provides, by quantitative mode coding with the present encoding piece, and write in the image code stream, making does not need to carry out the quantitative mode decision making algorithm in decoder end, directly can obtain the quantitative mode of present encoding piece, reduce the computation burden of decoder and realized cost by decoding.
As shown in Figure 6, the schematic diagram for embodiment of the invention quantitative mode decoder specifically comprises: quantitative mode code stream acquisition module 21 is used for obtaining from image code stream the quantitative mode code stream value of current decoding block; Quantitative mode decoder module 22 is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value.
Wherein quantitative mode code stream acquisition module 21 can be specially: quantitative mode macro block code stream acquisition module is used for obtaining from the image macro code stream quantitative mode code stream value of current decoding block; Or the sub-block code stream of quantitative mode macro block acquisition module is used for flowing the quantitative mode code stream value of obtaining current decoding block from the sub-block code that image macro comprises.
Quantitative mode code stream acquisition module 21 can also specifically comprise: quantitative mode picture decoding unit is used for obtaining from image code stream the quantitative mode image and the decoding of present image; Determining unit is used for determining at the arrangement position of image according to current decoding block the quantitative mode code stream value of current decoding block.
Wherein quantitative mode decoder module 22 can be specially the first quantitative mode decoder module, is used for the quantitative mode as current decoding block with the result after described quantitative mode code stream value or the quantitative mode code stream value process functional relation inverse transformation.
Quantitative mode decoder module 22 is specially the second quantitative mode decoder module, be used for described quantitative mode code stream value decoded or quantitative mode code stream value decoded and the functional relation inverse transformation after, obtain the quantitative mode of current decoding block.
The second quantitative mode decoder module also can be specially quantitative mode entropy decoder module, after being used for that described quantitative mode code stream value carried out entropy decoding or quantitative mode code stream value being carried out entropy decoding and functional relation inverse transformation, obtain the quantitative mode of current decoding block.
The quantitative mode decoder that the embodiment of the invention provides does not need to carry out the quantitative mode decision making algorithm, directly can obtain the quantitative mode of present encoding piece by decoding, has reduced the computation burden of decoder and has realized cost.
As shown in Figure 7, be the schematic diagram of embodiment of the invention quantitative mode coding/decoding system, comprising quantitative mode encoder 31 and quantitative mode decoder 32.
Quantitative mode encoder 31 comprises: quantitative mode coding module 11, be used for quantitative mode according to the present encoding piece, and obtain quantitative mode code stream value; Image code stream insert module 12 is used for described quantitative mode code stream value is write image code stream.
Quantitative mode decoder 32 comprises: quantitative mode code stream acquisition module 21 is used for obtaining from image code stream the quantitative mode code stream value of current decoding block; Quantitative mode decoder module 22 is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value.
Embodiment of the invention quantitative mode coding/decoding system can also comprise the arbitrary quantitative mode decoder described in the arbitrary quantitative mode encoder described in the invention described above embodiment quantitative mode encoder and the invention described above embodiment quantitative mode decoder.
The quantitative mode coding/decoding system that the embodiment of the invention provides, by quantitative mode coding with the present encoding piece, and write in the image code stream, making does not need to carry out the quantitative mode decision making algorithm in decoder end, directly can obtain the quantitative mode of present encoding piece, reduce the computation burden of decoder and realized cost by decoding.
As shown in Figure 8, the flow chart for embodiment of the invention method for encoding images specifically comprises the steps:
Step 301, determine the quantitative mode of present encoding piece in the input picture;
Step 302, according to described quantitative mode the present encoding piece is carried out convergent-divergent or quantification treatment, the present encoding blocks of data after obtaining quantizing;
Step 303, according to the quantitative mode of present encoding piece, obtain quantitative mode code stream value;
Step 304, the coding of the present encoding blocks of data after will quantizing obtain image code stream, and described quantitative mode code stream value are write in the described image code stream.
The execution sequence of above-mentioned steps 302 and step 303 can exchange.
Describing the quantitative mode how to determine the present encoding piece in detail in conjunction with object lesson below, this determine method can for: according to the contiguous block coded message of present encoding piece, the quantitative mode of decision-making current block;
Also can for: according to the quantitative mode decision-making technique of outside expansion input, the quantitative mode of decision-making current block;
Can also for: according to the quantitative mode of the present encoding piece of outside expansion input, obtain the quantitative mode of current block;
Can be the quantitative mode that obtains current block of the comprehensive judgement of above-mentioned 3 kinds of methods again.
The quantitative mode of present encoding piece can be determined the quantitative mode of present encoding piece jointly according to the combination of above 3 kinds of distinct methods or method, illustrates here, when existence more than 2 kinds or 2 kinds during method, how to determine the quantitative mode of current block.
More than 3 kinds of methods when determining the quantitative mode of current block, to the influence of final quantification model results according to priority order be followed successively by the quantitative mode of the quantitative mode decision-making technique decision-making of the quantitative mode of outside input, outside input, according to the quantitative mode of contiguous block coded message decision-making.
When not having the quantitative mode decision-making technique of outside input, then acquiescence is used the quantitative mode decision-making technique of using as present encoding according to the quantitative mode decision-making technique of the contiguous coded message of present encoding piece; Otherwise, then use the quantitative mode decision-making technique of the quantitative mode decision-making technique of outside input as the present encoding use if there is the quantitative mode decision-making technique of outside input;
When not having the quantitative mode of outside input, then the quantitative mode determined of the acquiescence quantitative mode decision-making technique of using present encoding to use is as the quantitative mode of current block; Otherwise, directly use the quantitative mode of the outside quantitative mode of importing as current block if when having the quantitative mode of outside input.
As shown in Figure 9, for determining the flow chart of present encoding piece quantitative mode in the embodiment of the invention method for encoding images, concrete steps are as follows:
Step 401, at first determine whether to exist the quantitative mode of outside input, if then execution in step 407, promptly for the present encoding piece, its quantitative mode directly uses the quantitative mode of outside input; Otherwise execution in step 402;
Step 402, when not having the quantitative mode of outside input, need to use to quantize the make a strategic decision quantitative mode of present encoding piece of mode decision method, the contiguous block coded message that need obtain current block this moment is as the input that quantizes decision-making technique;
Step 403, judge whether to exist the quantitative mode decision-making technique of outside input, if then execution in step 405, promptly current quantitative mode decision-making technique is used the quantitative mode decision-making technique of outside input; Otherwise execution in step 404 when promptly not having the quantitative mode decision-making technique of outside input, is used the quantitative mode decision-making technique of current acquiescence;
Step 404, when not having the quantitative mode decision-making technique of outside input, use the quantitative mode decision-making technique of current acquiescence; The quantitative mode decision-making technique of current acquiescence is to determine the quantitative mode of present encoding piece according to the coded message of contiguous block, the fixedly decision rule of decision-making technique for realizing defining, and promptly execution in step 406;
Step 405, determine and upgrade current quantitative mode decision-making technique, when having the quantitative mode decision-making technique of outside input, use the quantitative mode decision-making technique of outside input to upgrade the quantitative mode decision-making technique of the quantitative mode decision-making technique of acquiescence as the present encoding use;
Step 406, use the current quantitative mode decision-making technique of determining described in step 404 or the step 405, and make a strategic decision according to the adjacent block encoding information of present encoding piece and to determine the quantitative mode of present encoding piece;
The quantitative mode of step 407, output present encoding piece, and be used for the convergent-divergent/quantization operation of present encoding piece.
In the process of above-mentioned definite quantitative mode, the user can be by outside input quantitative mode and/or quantitative mode decision-making technique, the self-defined change quantitative mode decision-making technique and the quantitative mode result of decision, thus the quantification decision process can be changed neatly, enriched court verdict.
On the basis of foregoing, further, according to the quantitative mode of present encoding piece, obtaining quantitative mode code stream value can be specially: the quantitative mode result of present encoding piece is encoded in the step 303; Also can be specially: encode after the quantitative mode result process functional relation conversion with the present encoding piece.
Above-mentioned coding can be direct coding, also can be entropy coding.Direct coding is meant the result after the quantitative mode process functional relation conversion of the quantitative mode result of present encoding piece or present encoding piece as quantitative mode code stream value.
When adopting direct coding, and coding to as if the quantitative mode of present encoding piece as a result the time, the quantitative mode result who is about to the present encoding piece directly writes in the encoding code stream;
That is to say, with Mode OutThe quantitative mode of middle correspondence position is directly write in the corresponding macro block code stream.As at MB 21Place's corresponding quantitative pattern is B 21, therefore, quantitative mode B is write macro block MB 21Code stream in.
When adopting direct coding, and coding to as if the quantitative mode of present encoding piece after through the functional relation conversion as a result the time, the quantitative mode result who is about to the present encoding piece encodes after according to the certain functional relation conversion.
As, image quantizes model results Mode according to the correspondence of macroblock partitions OutBe used as is that the quantitative mode image carries out the quadratic transformation coding.Wherein each pixel value is a quantitative mode value among the image P in this quantitative mode image.
When adopting entropy coding, exactly the object of coding is write in the encoding code stream according to the entropy coding method of determining, described entropy coding method includes but not limited to index coding, block code, Run-Length Coding, variable-length encoding (VLC, as based on contextual variable-length encoding CAVLC etc.), arithmetic coding (AC, as huffman coding, based on contextual arithmetic coding CABAC etc.) or arbitrary combination of said method.
Wherein index encoding method can adopt the embodiment of the index encoding method described in the coding method of embodiment of the invention quantitative mode.
In the step 304, quantitative mode code stream value is write in the image code stream, the concrete location of quantitative mode code stream value in image code stream can for: (1) writes quantitative mode code stream value in the macro-block level code stream of image; (2) quantitative mode code stream value is write in the sub-block code stream of macro block of image; (3) quantitative mode code stream value is combined into a quantitative mode image and coding according to the arrangement position of present encoding piece in image, writes in the image code stream.
The method for encoding images that the embodiment of the invention provides, by quantitative mode coding with the present encoding piece, and write in the image code stream, making does not need to carry out the quantitative mode decision making algorithm in decoder end, directly can obtain the quantitative mode of present encoding piece, reduce the computation burden of decoder and realized cost by decoding; Further, the user can the self-defined change quantitative mode decision-making technique and the quantitative mode result of decision, quantizes decision process and has enriched court verdict thereby can change neatly.
As shown in figure 10, the flow chart for embodiment of the invention picture decoding method specifically comprises the steps:
Step 501, from image code stream, resolve and obtain current decoding block data and the corresponding mode code flow valuve that quantizes thereof;
Step 502, according to described quantitative mode code stream value, obtain the quantitative mode of current decoding block;
Step 503, current decoding block data are carried out contrary convergent-divergent or inverse quantization is handled, obtain the current decoding block data behind the de-quantization with described quantitative mode;
Step 504, according to the current decoding block data behind the described de-quantization, obtain decoded picture.
In the present embodiment, the concrete location of quantitative mode code stream value in image code stream can be with reference to the content described in the embodiment of the invention method for encoding images, therefore, from image code stream, resolve in the step 501 and obtain the corresponding mode code flow valuve that quantizes of current decoding block data institute and can be specially: from the image macro code stream, resolve and obtain the corresponding mode code flow valuve that quantizes of current decoding block data; Also can be specially: from the sub-block code stream that image macro comprises, resolve and obtain the corresponding mode code flow valuve that quantizes of current decoding block data; Can also be specially: from image code stream, resolve the quantitative mode image and the decoding that obtain present image, and determine the corresponding mode code flow valuve that quantizes of current decoding block data according to the arrangement position of current decoding block in image.
The present embodiment picture decoding method can be corresponding with embodiment of the invention picture decoding method.
In coding method, adopt direct coding, and coding to as if the quantitative mode of present encoding piece as a result the time, described step 502 can be specially: with the quantitative mode of described quantitative mode code stream value as current decoding block.
In coding method, adopt direct coding, and coding to as if the quantitative mode of present encoding piece after through the functional relation conversion as a result the time, described step 502 can be specially: with the quantitative mode of the result of described quantitative mode code stream value after through the functional relation inverse transformation as current decoding block.
When adopting entropy coding in the coding method, described step 502 can be specially: described quantitative mode code stream value is carried out the entropy decoding, perhaps described quantitative mode code stream value is carried out entropy decoding and functional relation inverse transformation after, obtain the quantitative mode of current decoding block.
Described entropy decoding method includes but not limited to index, fixed length decoding, runs decoding, variable length decoding (VLC, as based on contextual variable length decoding CAVLC etc.), arithmetic decoding (AC, as Hofmann decoding, based on contextual arithmetic decoding CABAC etc.) or arbitrary combination of said method.
The picture decoding method that the embodiment of the invention provides does not need to carry out the quantitative mode decision making algorithm, directly can obtain the quantitative mode of present encoding piece by decoding, has reduced the computation burden of decoder and has realized cost.
As shown in figure 11, the schematic diagram for embodiment of the invention image encoder specifically comprises: quantitative mode decision-making module 41 is used for determining the quantitative mode of input picture present encoding piece; Convergent-divergent or quantification treatment module 42 are used for according to described quantitative mode the present encoding piece being carried out convergent-divergent or quantification treatment, the present encoding blocks of data after obtaining quantizing; Quantitative mode coding module 43 is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value; Image coding module 44 is used for the present encoding blocks of data coding after quantizing is obtained image code stream; Image code stream insert module 45 is used for described quantitative mode code stream value is write described image code stream.
Wherein quantitative mode decision-making module 41 can be specially based on the contiguous block decision-making module, is used for the contiguous block coded message according to the present encoding piece, the quantitative mode of the described present encoding piece of making a strategic decision.
Quantitative mode decision-making module 41 also can be specially outside decision-making module, is used for quantitative mode decision-making technique or quantitative mode according to the outside input, the quantitative mode of the described present encoding piece of making a strategic decision.
Quantitative mode decision-making module 41 can also specifically comprise: based on the contiguous block decision-making module, be used for the contiguous block coded message according to the present encoding piece, the first order quantitative mode of decision-making present encoding piece; Outside decision-making module is used for quantitative mode decision-making technique or quantitative mode according to the outside input, the second level quantitative mode or the third level quantitative mode of decision-making present encoding piece; The integrated decision-making module is used for the make a strategic decision quantitative mode of described present encoding piece of first order quantitative mode, second level quantitative mode, third level quantitative mode according to the present encoding piece.
Described quantitative mode decision-making module 41 priority are: the third level quantitative mode priority of determining according to the outside decision-making module of the described outside quantitative mode of importing is the highest; Take second place according to the second level quantitative mode priority that the outside decision-making module of the described outside quantitative mode decision-making technique of importing is determined; The described first order quantitative mode priority of determining based on the contiguous block decision-making module is minimum; When determining the quantitative mode of present encoding piece, the determined quantitative mode of the quantitative mode decision-making module that priority is high replaces the low determined quantitative mode of quantitative mode decision-making module of priority.
Wherein quantitative mode coding module 43 can be specially the first quantitative mode coding module, is used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion as quantitative mode code stream value.
Quantitative mode coding module 43 also can be specially the second quantitative mode coding module, is used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion and encodes, and obtains quantitative mode code stream value.
The second quantitative mode coding module also can be specially quantitative mode entropy coding module, is used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion and carries out entropy coding, obtains quantitative mode code stream value.
Wherein image code stream insert module 45 can be specially image macro or sub-block code stream insert module, is used for quantitative mode code stream value is write in the sub-block code stream that macro block comprised of the macro block code stream of image present encoding or present encoding.
Image code stream insert module 45 can also specifically comprise: quantitative mode image encoding unit is used for quantitative mode code stream value is combined into a quantitative mode image and coding according to the present encoding piece at the arrangement position of image; Insert the unit, be used for the quantitative mode image behind the coding is write image code stream.
The image encoder that the embodiment of the invention provides, by quantitative mode coding with the present encoding piece, and write in the image code stream, making does not need to carry out the quantitative mode decision making algorithm in decoder end, directly can obtain the quantitative mode of present encoding piece, reduce the computation burden of decoder and realized cost by decoding; Further, the user can quantize decision process and enrich court verdict thereby can change neatly by the outside decision-making module self-defined change quantitative mode decision-making technique and the quantitative mode result of decision.
As shown in figure 12, the schematic diagram for embodiment of the invention image decoder specifically comprises: parsing module 51 is used for obtaining current decoding block data from the image code stream parsing; Quantitative mode code stream acquisition module 52 is used for obtaining from image code stream the quantitative mode code stream value of current decoding block; Quantitative mode decoder module 53 is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value; Contrary convergent-divergent or inverse quantization module 54 are used to adopt described quantitative mode that current decoding block data are carried out contrary convergent-divergent or inverse quantization is handled, and obtain the current decoding block data behind the de-quantization; Decoded picture generation module 55 is used for according to the current decoding block data behind the described de-quantization, obtains decoded picture.
Wherein quantitative mode code stream acquisition module 52 can be specially: quantitative mode macro block code stream acquisition module is used for obtaining from the image macro code stream quantitative mode code stream value of current decoding block; Or the sub-block code stream of quantitative mode macro block acquisition module, be used for flowing the quantitative mode code stream value of obtaining current decoding block from the sub-block code that image macro comprises.
Quantitative mode code stream acquisition module 52 can also specifically comprise: quantitative mode picture decoding unit is used for obtaining from image code stream the quantitative mode image and the decoding of present image; Determining unit is used for determining at the arrangement position of image according to current decoding block the quantitative mode code stream value of current decoding block.
Quantitative mode decoder module 53 can be specially the first quantitative mode decoder module, is used for the quantitative mode as current decoding block with the result after described quantitative mode code stream value or the quantitative mode code stream value process functional relation inverse transformation.
Quantitative mode decoder module 53 is specially the second quantitative mode decoder module, be used for described quantitative mode code stream value decoded or quantitative mode code stream value decoded and the functional relation inverse transformation after, obtain the quantitative mode of current decoding block.
Quantitative mode decoder module 53 also can be specially quantitative mode entropy decoder module, after being used for that described quantitative mode code stream value carried out entropy decoding or quantitative mode code stream value being carried out entropy decoding and functional relation inverse transformation, obtains the quantitative mode of current decoding block.
The image decoder that the embodiment of the invention provides does not need to carry out the quantitative mode decision making algorithm, directly can obtain the quantitative mode of present encoding piece by decoding, has reduced the computation burden of decoder and has realized cost.
As shown in figure 13, be the schematic diagram of embodiment of the invention image coding and decoding system, comprising: image encoder 61 and image decoder 62.
Image encoder 61 comprises: quantitative mode decision-making module 41 is used for determining the quantitative mode of input picture present encoding piece; Convergent-divergent or quantification treatment module 42 are used for according to described quantitative mode the present encoding piece being carried out convergent-divergent or quantification treatment, the present encoding blocks of data after obtaining quantizing; Quantitative mode coding module 43 is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value; Image coding module 44 is used for the present encoding blocks of data coding after quantizing is obtained image code stream; Image code stream insert module 45 is used for described quantitative mode code stream value is write described image code stream.
Image decoder 62 comprises: parsing module 51 is used for obtaining current decoding block data from the image code stream parsing; Quantitative mode code stream acquisition module 52 is used for obtaining from image code stream the quantitative mode code stream value of current decoding block; Quantitative mode decoder module 53 is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value; Contrary convergent-divergent or inverse quantization module 54 are used to adopt described quantitative mode that current decoding block data are carried out contrary convergent-divergent or inverse quantization is handled, and obtain the current decoding block data behind the de-quantization; Decoded picture generation module 55 is used for according to the current decoding block data behind the described de-quantization, obtains decoded picture.
Embodiment of the invention image coding and decoding system can also comprise the arbitrary image decoder described in the arbitrary image encoder described in the invention described above embodiment image encoder and the invention described above embodiment image decoder.
The image coding and decoding system that the embodiment of the invention provides, by quantitative mode coding with the present encoding piece, and write in the image code stream, making does not need to carry out the quantitative mode decision making algorithm in decoder end, directly can obtain the quantitative mode of present encoding piece, reduce the computation burden of decoder and realized cost by decoding; Further, the user can the self-defined change quantitative mode decision-making technique and the quantitative mode result of decision, quantizes decision process and has enriched court verdict thereby can change neatly.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is when carrying out, execution comprises the step of said method embodiment, and aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to the technical scheme of the explanation embodiment of the invention, is not intended to limit; Although the embodiment of the invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of each embodiment technical scheme of the embodiment of the invention.

Claims (59)

1, a kind of quantitative mode coding method is characterized in that comprising:
According to the quantitative mode of present encoding piece, obtain quantitative mode code stream value;
Described quantitative mode code stream value is write in the image code stream.
2, quantitative mode coding method according to claim 1, it is characterized in that, described quantitative mode according to the present encoding piece obtains quantitative mode code stream value and is specially: with the quantitative mode of the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion as quantitative mode code stream value.
3, quantitative mode coding method according to claim 1, it is characterized in that, described quantitative mode according to the present encoding piece, obtaining quantitative mode code stream value is specially: the result after through the functional relation conversion encodes with the quantitative mode of the quantitative mode result of present encoding piece or present encoding piece, obtains quantitative mode code stream value.
4, quantitative mode coding method according to claim 3 is characterized in that, the described coding is specially: encode according to entropy coding method.
5, quantitative mode coding method according to claim 4 is characterized in that, described entropy coding method comprises: arbitrary combination of index coding, block code, Run-Length Coding, variable-length encoding, arithmetic coding or said method.
6, according to the arbitrary described quantitative mode coding method of claim 1-5, it is characterized in that described quantitative mode code stream value is write in the image code stream is specially: quantitative mode code stream value is write in the sub-block code stream that macro block comprised of the macro block code stream of present encoding in the image or present encoding.
7, according to the arbitrary described quantitative mode coding method of claim 1-5, it is characterized in that, described quantitative mode code stream value is write in the image code stream is specially: quantitative mode code stream value is combined into a quantitative mode image and coding according to the arrangement position of present encoding piece in image, writes in the image code stream.
8, a kind of quantitative mode coding/decoding method is characterized in that comprising:
From image code stream, obtain the quantitative mode code stream value of current decoding block;
According to described quantitative mode code stream value, obtain the quantitative mode of current decoding block.
9, quantitative mode coding/decoding method according to claim 8, it is characterized in that the quantitative mode code stream value of obtaining current decoding block from image code stream is specially: from the image macro code stream or obtain the quantitative mode code stream value of current decoding block in the sub-block code stream that comprises of image macro.
10, quantitative mode coding/decoding method according to claim 8, it is characterized in that, the quantitative mode code stream value of obtaining current decoding block from image code stream is specially: obtain the quantitative mode image and the decoding of present image from image code stream, and determine the quantitative mode code stream value of current decoding block according to the arrangement position of current decoding block in image.
11, according to Claim 8 arbitrary-10 described quantitative mode coding/decoding method, it is characterized in that, described according to described quantitative mode code stream value, the quantitative mode that obtains current decoding block is specially: with the quantitative mode of the result after described quantitative mode code stream value or the quantitative mode code stream value process functional relation inverse transformation as current decoding block.
12, according to Claim 8 arbitrary-10 described quantitative mode coding/decoding method, it is characterized in that, described according to described quantitative mode code stream value, the quantitative mode that obtains current decoding block is specially: described quantitative mode code stream value is decoded or quantitative mode code stream value is decoded and the functional relation inverse transformation after, obtain the quantitative mode of current decoding block.
13, quantitative mode coding/decoding method according to claim 12 is characterized in that, the described decoding is specially: decode according to entropy decoding method.
14, quantitative mode coding/decoding method according to claim 13 is characterized in that, described entropy decoding method comprises: arbitrary combination of index, fixed length code decoding, the decoding of distance of swimming sign indicating number, decoding length changeable code, arithmetic decoding or said method.
15, a kind of quantitative mode encoder is characterized in that comprising:
The quantitative mode coding module is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value;
The image code stream insert module is used for described quantitative mode code stream value is write image code stream.
16, quantitative mode encoder according to claim 15, it is characterized in that, described quantitative mode coding module is specially the first quantitative mode coding module, is used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion as quantitative mode code stream value.
17, quantitative mode encoder according to claim 15, it is characterized in that, described quantitative mode coding module is specially the second quantitative mode coding module, be used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion and encode, obtain quantitative mode code stream value.
18, quantitative mode encoder according to claim 17, it is characterized in that, the described second quantitative mode coding module is specially quantitative mode entropy coding module, be used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion and carry out entropy coding, obtain quantitative mode code stream value.
19, according to the arbitrary described quantitative mode encoder of claim 15-18, it is characterized in that described image code stream insert module is specially:
Image macro code stream insert module is used for quantitative mode code stream value is write in the macro block code stream of image present encoding; Or,
The sub-block code stream of image macro insert module is used for quantitative mode code stream value is write in the sub-block code stream that macro block comprised of image present encoding.
20, according to the arbitrary described quantitative mode encoder of claim 15-18, it is characterized in that described image code stream insert module comprises:
Quantitative mode image encoding unit is used for quantitative mode code stream value is combined into a quantitative mode image and coding according to the present encoding piece at the arrangement position of image;
Insert the unit, be used for the quantitative mode image behind the coding is write image code stream.
21, a kind of quantitative mode decoder is characterized in that comprising:
Quantitative mode code stream acquisition module is used for obtaining from image code stream the quantitative mode code stream value of current decoding block;
The quantitative mode decoder module is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value.
22, quantitative mode decoder according to claim 21 is characterized in that, described quantitative mode code stream acquisition module is specially:
Quantitative mode macro block code stream acquisition module is used for obtaining from the image macro code stream quantitative mode code stream value of current decoding block; Or,
The sub-block code stream of quantitative mode macro block acquisition module is used for flowing the quantitative mode code stream value of obtaining current decoding block from the sub-block code that image macro comprises.
23, quantitative mode decoder according to claim 21 is characterized in that, described quantitative mode code stream acquisition module specifically comprises:
Quantitative mode picture decoding unit is used for obtaining from image code stream the quantitative mode image and the decoding of present image;
Determining unit is used for determining at the arrangement position of image according to current decoding block the quantitative mode code stream value of current decoding block.
24, according to the arbitrary described quantitative mode decoder of claim 21-23, it is characterized in that, described quantitative mode decoder module is specially the first quantitative mode decoder module, is used for the quantitative mode as current decoding block with the result after described quantitative mode code stream value or the quantitative mode code stream value process functional relation inverse transformation.
25, according to the arbitrary described quantitative mode decoder of claim 21-23, it is characterized in that, described quantitative mode decoder module is specially the second quantitative mode decoder module, be used for described quantitative mode code stream value decoded or quantitative mode code stream value decoded and the functional relation inverse transformation after, obtain the quantitative mode of current decoding block.
26, quantitative mode decoder according to claim 25, it is characterized in that, the described second quantitative mode decoder module is specially quantitative mode entropy decoder module, after being used for that described quantitative mode code stream value carried out entropy decoding or quantitative mode code stream value being carried out entropy decoding and functional relation inverse transformation, obtain the quantitative mode of current decoding block.
27, a kind of quantitative mode coding/decoding system is characterized in that comprising: quantitative mode encoder and quantitative mode decoder;
The quantitative mode encoder comprises:
The quantitative mode coding module is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value;
The image code stream insert module is used for described quantitative mode code stream value is write image code stream;
The quantitative mode decoder comprises:
Quantitative mode code stream acquisition module is used for obtaining from image code stream the quantitative mode code stream value of current decoding block;
The quantitative mode decoder module is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value.
28, a kind of method for encoding images is characterized in that comprising:
Determine the quantitative mode of present encoding piece in the input picture;
According to described quantitative mode the present encoding piece is carried out convergent-divergent or quantification treatment, the present encoding blocks of data after obtaining quantizing;
According to the quantitative mode of present encoding piece, obtain quantitative mode code stream value;
Present encoding blocks of data coding after quantizing is obtained image code stream, and described quantitative mode code stream value is write in the described image code stream.
29, method for encoding images according to claim 28, it is characterized in that, the quantitative mode of present encoding piece is specially in described definite input picture: according to the quantitative mode decision-making technique of the contiguous block coded message of present encoding piece, outside input, the quantitative mode of outside input or the contiguous block coded message of described present encoding piece, the quantitative mode decision-making technique of described outside input, the described outside quantitative mode three's who imports combination in any, obtain the quantitative mode of described present encoding piece.
30, method for encoding images according to claim 29, it is characterized in that, the priority of determining the quantitative mode of outside input described in the method for quantitative mode of present encoding piece is the highest, the priority of the quantitative mode decision-making technique of described outside input is taken second place, and described contiguous block coded message decision methods priority according to the present encoding piece is minimum; When determining the quantitative mode of present encoding piece, the quantitative mode that the decision-making technique that priority is high is determined replaces the quantitative mode that the low decision-making technique of priority is determined.
31, method for encoding images according to claim 28, it is characterized in that, described quantitative mode according to the present encoding piece obtains quantitative mode code stream value and is specially: with the quantitative mode of the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion as quantitative mode code stream value.
32, method for encoding images according to claim 28, it is characterized in that, described quantitative mode according to the present encoding piece, obtaining quantitative mode code stream value is specially: the result after through the functional relation conversion encodes with the quantitative mode of the quantitative mode result of present encoding piece or present encoding piece, obtains quantitative mode code stream value.
33, method for encoding images according to claim 32 is characterized in that, the described coding is specially: encode according to entropy coding method.
34, method for encoding images according to claim 33 is characterized in that, described entropy coding method comprises: arbitrary combination of index coding, block code, Run-Length Coding, variable-length encoding, arithmetic coding or said method.
35, according to the arbitrary described method for encoding images of claim 28-34, it is characterized in that described quantitative mode code stream value is write in the image code stream is specially: quantitative mode code stream value is write in the sub-block code stream that macro block comprised of the macro block code stream of present encoding in the image or present encoding.
36, according to the arbitrary described method for encoding images of claim 28-34, it is characterized in that, described quantitative mode code stream value is write in the image code stream is specially: quantitative mode code stream value is combined into a quantitative mode image and coding according to the arrangement position of present encoding piece in image, writes in the image code stream.
37, a kind of picture decoding method is characterized in that comprising:
From image code stream, resolve and obtain current decoding block data and the corresponding mode code flow valuve that quantizes thereof;
According to described quantitative mode code stream value, obtain the quantitative mode of current decoding block;
Current decoding block data are carried out contrary convergent-divergent or inverse quantization is handled with described quantitative mode, obtain the current decoding block data behind the de-quantization;
According to the current decoding block data behind the described de-quantization, obtain decoded picture.
38, according to the described picture decoding method of claim 37, it is characterized in that described the parsing obtains the corresponding mode code flow valuve that quantizes of current decoding block data and be specially from image code stream: resolve from the image macro code stream or in the sub-block code stream that comprises of image macro and obtain the corresponding mode code flow valuve that quantizes of current decoding block data.
39, according to the described picture decoding method of claim 37, it is characterized in that, the described parsing from image code stream obtains the corresponding mode code flow valuve that quantizes of current decoding block data and is specially: resolve the quantitative mode image and the decoding that obtain present image from image code stream, and determine the corresponding mode code flow valuve that quantizes of current decoding block data according to the arrangement position of current decoding block in image.
40, according to the arbitrary described picture decoding method of claim 37-39, it is characterized in that, described according to described quantitative mode code stream value, the quantitative mode that obtains current decoding block is specially: with the quantitative mode of the result after described quantitative mode code stream value or the quantitative mode code stream value process functional relation inverse transformation as current decoding block.
41, according to the arbitrary described picture decoding method of claim 37-39, it is characterized in that, described according to described quantitative mode code stream value, the quantitative mode that obtains current decoding block is specially: described quantitative mode code stream value is decoded or quantitative mode code stream value is decoded and the functional relation inverse transformation after, obtain the quantitative mode of current decoding block.
According to the described picture decoding method of claim 41, it is characterized in that 42, the described decoding is specially: decode according to entropy decoding method.
According to the described picture decoding method of claim 42, it is characterized in that 43, described entropy decoding method comprises: arbitrary combination of index, fixed length code decoding, the decoding of distance of swimming sign indicating number, decoding length changeable code, arithmetic decoding or said method.
44, a kind of image encoder is characterized in that comprising:
The quantitative mode decision-making module is used for determining the quantitative mode of input picture present encoding piece;
Convergent-divergent or quantification treatment module are used for according to described quantitative mode the present encoding piece being carried out convergent-divergent or quantification treatment, the present encoding blocks of data after obtaining quantizing;
The quantitative mode coding module is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value;
Image coding module is used for the present encoding blocks of data coding after quantizing is obtained image code stream;
The image code stream insert module is used for described quantitative mode code stream value is write described image code stream.
According to the described image encoder of claim 44, it is characterized in that 45, described quantitative mode decision-making module is specially based on the contiguous block decision-making module, be used for contiguous block coded message, the quantitative mode of the described present encoding piece of making a strategic decision according to the present encoding piece.
46, according to the described image encoder of claim 44, it is characterized in that, described quantitative mode decision-making module is specially outside decision-making module, is used for quantitative mode decision-making technique or quantitative mode according to the outside input, the quantitative mode of the described present encoding piece of making a strategic decision.
According to the described image encoder of claim 44, it is characterized in that 47, described quantitative mode decision-making module comprises:
Based on the contiguous block decision-making module, be used for contiguous block coded message, the first order quantitative mode of decision-making present encoding piece according to the present encoding piece;
Outside decision-making module is used for quantitative mode decision-making technique or quantitative mode according to the outside input, the second level quantitative mode or the third level quantitative mode of decision-making present encoding piece;
The integrated decision-making module is used for the make a strategic decision quantitative mode of described present encoding piece of first order quantitative mode, second level quantitative mode, third level quantitative mode according to the present encoding piece.
48, according to the arbitrary described image encoder of claim 44-47, it is characterized in that, described quantitative mode coding module is specially the first quantitative mode coding module, is used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion as quantitative mode code stream value.
49, according to the arbitrary described image encoder of claim 44-47, it is characterized in that, described quantitative mode coding module is specially the second quantitative mode coding module, be used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion and encode, obtain quantitative mode code stream value.
50, according to the described image encoder of claim 49, it is characterized in that, the described second quantitative mode coding module is specially quantitative mode entropy coding module, be used for quantitative mode with the quantitative mode result of present encoding piece or the present encoding piece result after through the functional relation conversion and carry out entropy coding, obtain quantitative mode code stream value.
According to the arbitrary described image encoder of claim 44-47, it is characterized in that 51, described image code stream insert module is specially:
Image macro code stream insert module is used for quantitative mode code stream value is write in the macro block code stream of image present encoding; Or
The sub-block code stream of image macro insert module is used for quantitative mode code stream value is write in the sub-block code stream that macro block comprised of image present encoding.
According to the arbitrary described image encoder of claim 44-47, it is characterized in that 52, described image code stream insert module comprises:
Quantitative mode image encoding unit is used for quantitative mode code stream value is combined into a quantitative mode image and coding according to the present encoding piece at the arrangement position of image;
Insert the unit, be used for the quantitative mode image behind the coding is write image code stream.
53, a kind of image decoder is characterized in that comprising:
Parsing module is used for obtaining current decoding block data from the image code stream parsing;
Quantitative mode code stream acquisition module is used for obtaining from image code stream the quantitative mode code stream value of current decoding block;
The quantitative mode decoder module is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value;
Contrary convergent-divergent or inverse quantization module are used to adopt described quantitative mode that current decoding block data are carried out contrary convergent-divergent or inverse quantization is handled, and obtain the current decoding block data behind the de-quantization;
The decoded picture generation module is used for according to the current decoding block data behind the described de-quantization, obtains decoded picture.
54, according to the described image decoder of claim 53, it is characterized in that, described quantitative mode code stream acquisition module is specially quantitative mode macro block or sub-block code stream acquisition module, is used for obtaining from the sub-block code stream that image macro code stream or image macro comprise the quantitative mode code stream value of current decoding block.
According to the described image decoder of claim 53, it is characterized in that 55, described quantitative mode code stream acquisition module specifically comprises:
Quantitative mode picture decoding unit is used for obtaining from image code stream the quantitative mode image and the decoding of present image;
Determining unit is used for determining at the arrangement position of image according to current decoding block the quantitative mode code stream value of current decoding block.
56, according to the arbitrary described image decoder of claim 53-55, it is characterized in that, described quantitative mode decoder module is specially the first quantitative mode decoder module, is used for the quantitative mode as current decoding block with the result after described quantitative mode code stream value or the quantitative mode code stream value process functional relation inverse transformation.
57, according to the arbitrary described image decoder of claim 53-55, it is characterized in that, described quantitative mode decoder module is specially the second quantitative mode decoder module, be used for described quantitative mode code stream value decoded or quantitative mode code stream value decoded and the functional relation inverse transformation after, obtain the quantitative mode of current decoding block.
58, according to the described image decoder of claim 57, it is characterized in that, the described second quantitative mode decoder module is specially quantitative mode entropy decoder module, after being used for that described quantitative mode code stream value carried out entropy decoding or quantitative mode code stream value being carried out entropy decoding and functional relation inverse transformation, obtain the quantitative mode of current decoding block.
59, a kind of image coding and decoding system is characterized in that comprising: image encoder and image decoder;
Described image encoder comprises:
The quantitative mode decision-making module is used for determining the quantitative mode of input picture present encoding piece;
Convergent-divergent or quantification treatment module are used for according to described quantitative mode the present encoding piece being carried out convergent-divergent or quantification treatment, the present encoding blocks of data after obtaining quantizing;
The quantitative mode coding module is used for the quantitative mode according to the present encoding piece, obtains quantitative mode code stream value;
Image coding module is used for the present encoding blocks of data coding after quantizing is obtained image code stream;
The image code stream insert module is used for described quantitative mode code stream value is write described image code stream.
Described image decoder comprises:
Parsing module is used for obtaining current decoding block data from the image code stream parsing;
Quantitative mode code stream acquisition module is used for obtaining from image code stream the quantitative mode code stream value of current decoding block;
The quantitative mode decoder module is used for obtaining the quantitative mode of current decoding block according to described quantitative mode code stream value;
Contrary convergent-divergent or inverse quantization module are used to adopt described quantitative mode that current decoding block data are carried out contrary convergent-divergent or inverse quantization is handled, and obtain the current decoding block data behind the de-quantization;
The decoded picture generation module is used for according to the current decoding block data behind the described de-quantization, obtains decoded picture.
CN 200710193851 2007-12-04 2007-12-04 Quantitative mode, image encoding, decoding method, encoder, decoder and system Active CN101453643B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 200710193851 CN101453643B (en) 2007-12-04 2007-12-04 Quantitative mode, image encoding, decoding method, encoder, decoder and system
PCT/CN2008/073338 WO2009086766A1 (en) 2007-12-04 2008-12-04 A quantization mode and an encoding and decoding method, an encoder and a decoder and a codec system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710193851 CN101453643B (en) 2007-12-04 2007-12-04 Quantitative mode, image encoding, decoding method, encoder, decoder and system

Publications (2)

Publication Number Publication Date
CN101453643A true CN101453643A (en) 2009-06-10
CN101453643B CN101453643B (en) 2011-05-18

Family

ID=40735621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710193851 Active CN101453643B (en) 2007-12-04 2007-12-04 Quantitative mode, image encoding, decoding method, encoder, decoder and system

Country Status (2)

Country Link
CN (1) CN101453643B (en)
WO (1) WO2009086766A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685485A (en) * 2011-03-11 2012-09-19 华为技术有限公司 Coding method and device, and decoding method and device
US9571829B2 (en) 2011-03-11 2017-02-14 Huawei Technologies Co., Ltd. Method and device for encoding/decoding with quantization parameter, block size and coding unit size
CN108353175A (en) * 2015-09-21 2018-07-31 Lg 电子株式会社 The method and apparatus of prediction processing vision signal caused by coefficient of utilization
CN110800300A (en) * 2017-06-29 2020-02-14 高通股份有限公司 Memory reduction for non-separable translation
CN111064966A (en) * 2012-04-16 2020-04-24 韩国电子通信研究院 Image decoding method and image encoding method
CN113411578A (en) * 2016-05-13 2021-09-17 夏普株式会社 Image decoding device and method, image encoding device and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2501598B2 (en) * 1987-09-16 1996-05-29 日本放送協会 Image data encoding method and apparatus
KR0134343B1 (en) * 1993-04-13 1998-04-29 김광호 Coding device and method of quantization level
KR100198788B1 (en) * 1996-12-09 1999-06-15 정선종 Quantization circuit with differenciated pulse code modulator
KR100557618B1 (en) * 2003-01-03 2006-03-10 엘지전자 주식회사 Bit rate control system based on object
CN101046963B (en) * 2004-09-17 2011-03-23 广州广晟数码技术有限公司 Method for decoding encoded audio frequency data stream
CN101039432A (en) * 2006-03-16 2007-09-19 华为技术有限公司 Method and apparatus for realizing self-adaptive quantization in coding process

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685485A (en) * 2011-03-11 2012-09-19 华为技术有限公司 Coding method and device, and decoding method and device
CN102685485B (en) * 2011-03-11 2014-11-05 华为技术有限公司 Coding method and device, and decoding method and device
US9571829B2 (en) 2011-03-11 2017-02-14 Huawei Technologies Co., Ltd. Method and device for encoding/decoding with quantization parameter, block size and coding unit size
CN111147852A (en) * 2012-04-16 2020-05-12 韩国电子通信研究院 Image decoding method and image encoding method
CN111064966A (en) * 2012-04-16 2020-04-24 韩国电子通信研究院 Image decoding method and image encoding method
CN111131838A (en) * 2012-04-16 2020-05-08 韩国电子通信研究院 Image decoding method and image encoding method
CN111131820A (en) * 2012-04-16 2020-05-08 韩国电子通信研究院 Image decoding method and image encoding method
CN111147851A (en) * 2012-04-16 2020-05-12 韩国电子通信研究院 Image decoding method and image encoding method
CN111064966B (en) * 2012-04-16 2022-05-31 韩国电子通信研究院 Image decoding method and image encoding method
CN111147851B (en) * 2012-04-16 2022-09-13 韩国电子通信研究院 Image decoding method and image encoding method
US11553183B2 (en) 2012-04-16 2023-01-10 Electronics And Telecommunications Research Institute Method and device for encoding/decoding image
CN108353175A (en) * 2015-09-21 2018-07-31 Lg 电子株式会社 The method and apparatus of prediction processing vision signal caused by coefficient of utilization
CN113411578A (en) * 2016-05-13 2021-09-17 夏普株式会社 Image decoding device and method, image encoding device and method
CN113411578B (en) * 2016-05-13 2024-04-12 夏普株式会社 Image decoding device and method, image encoding device and method
CN110800300A (en) * 2017-06-29 2020-02-14 高通股份有限公司 Memory reduction for non-separable translation

Also Published As

Publication number Publication date
CN101453643B (en) 2011-05-18
WO2009086766A1 (en) 2009-07-16

Similar Documents

Publication Publication Date Title
CN102150428B (en) System and method for video encoding using adaptive segmentation
CN101453643B (en) Quantitative mode, image encoding, decoding method, encoder, decoder and system
US20090034612A1 (en) Quantization method and apparatus in encoding/decoding
CN104349171B (en) The compression of images coding/decoding device and coding and decoding method of a kind of virtually lossless
CN107211122A (en) Palette when self-contained formula coding structure is encoded or decoded predicts the outcome initialization program
CN108848387A (en) The method for deriving reference prediction mode value
CN1998152A (en) Conditional lapped transform
CN103270700A (en) Enhanced intra-rediction coding using planar representations
JP4101034B2 (en) Encoding apparatus and method
CN105027560A (en) Method of determining binary codewords for transform coefficients
CN101511025B (en) Method and apparatus for compressing and decompressing image
CN101742330A (en) Image coding method and device
CN103413287A (en) Method and device for combining JPEG images
CN100539700C (en) Method for encoding images and device
CN108391132B (en) Character block coding method and device
CN101198054A (en) Variable length coding and decoding method and its coding and decoding device
CN101657973B (en) Recorded medium having program for coding and decoding using bit-precision, and apparatus thereof
CN101790096B (en) Encoding and decoding method and device based on double prediction
US6687304B1 (en) Efficient video data data access using fixed ratio compression
TW201338553A (en) Methods, systems, and computer program products for assessing a macroblock candidate for conversion to a skipped macroblock
CN103002284A (en) Video coding and decoding method based self-adaption updating of scene model
CN102333220B (en) Video coding and decoding method capable of selectively finishing predictive coding in transform domain
CN105635731A (en) Intra-frame prediction reference point preprocessing method for high efficiency video coding
CN105657421A (en) 8*8 residual coefficient block encoding method and system
CN101841701A (en) Encoding and decoding method and device based on macroblock pair

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