CN101267567A - Inside-frame prediction, decoding and coding method and device - Google Patents

Inside-frame prediction, decoding and coding method and device Download PDF

Info

Publication number
CN101267567A
CN101267567A CN 200710088041 CN200710088041A CN101267567A CN 101267567 A CN101267567 A CN 101267567A CN 200710088041 CN200710088041 CN 200710088041 CN 200710088041 A CN200710088041 A CN 200710088041A CN 101267567 A CN101267567 A CN 101267567A
Authority
CN
China
Prior art keywords
predictive mode
predicted value
pixel
expansion
predicted
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.)
Pending
Application number
CN 200710088041
Other languages
Chinese (zh)
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 200710088041 priority Critical patent/CN101267567A/en
Publication of CN101267567A publication Critical patent/CN101267567A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses an infraframe predicting method, comprising the step that a coding terminal determines the predictive value of a pixel to be predicted in current coding block according to the predictive values of the predicted pixels in current coding block. The embodiment of the invention also discloses an infraframe predictive coding method, in an expanded prediction mode, and the coding terminal determines the predictive value of a pixel to be predicted in current coding block according to the predictive values of the predicted pixels. Furthermore, the embodiment of the invention discloses an infraframe predictive decoding method, in an expanded prediction mode, a decoding terminal determines the predictive value of a pixel to be predicted in current decoding block according to the predictive values of the predicted pixels in current decoding block, and decodes current coding block. In addition, the embodiment of the invention discloses the coding terminal and the decoding terminal. By using the methods and devices provided by the embodiment of the invention, the rate-distortion performance of infraframe predictive coding can be improved.

Description

Infra-frame prediction, decoding method and device
Technical field
The present invention relates to video coding technique, particularly infra-frame prediction, decoding method and device.
Background technology
In video coding, the intraframe coding compression ratio is very low.During intraframe coding, the information around Intra-coded blocks is used is predicted, does not rely on the coded frame of front, thereby can decode under the situation of previous frame can not get.
In the prior art, when the present encoding piece is carried out infra-frame prediction, use that the adjacent lines and the adjacent column pixel of decoding block and present encoding piece are carried out infra-frame prediction.According to these pixels of decoding block, can select different directions intra prediction mode or DC coefficient (DC) predictive mode that the present encoding piece is carried out infra-frame prediction.The corresponding fallout predictor of each predictive mode, each fallout predictor are used to calculate and obtain predicting the outcome of present encoding piece under the corresponding predictive mode.
Comprised in the prior art based on size is the intra prediction mode of 4 * 4,8 * 8 and 16 * 16 piece.Wherein 4 * 4 and 8 * 8 predictive modes all have 9 fallout predictors, and 16 * 16 predictive modes have 4 fallout predictors.Infra-prediction techniques of the prior art also can be carried out infra-frame prediction to encoding block by 5 fallout predictors.
With advanced video encoding (AVS) luminance component infra-frame prediction is example, as shown in Figure 1,8 * 8 grid matrix notation present encoding pieces among Fig. 1, level is piece pixels adjacent with the present encoding piece with 0~16 point of vertical two row pixels, therefrom selected pixels point is as the reference sample r[i of present encoding piece pixel predicted value] and c[i], when infra-frame prediction, at first to judge the availability of adjacent reference sample point, the fallout predictor that utilizes different directions then to the present encoding piece 8 * 8 totally 64 pixels predict, produce corresponding predicted value.
If the adjacent block pixel of present encoding piece shown in Figure 1 has been finished coding, and non-image edge or strip edge, then this pixel can be used.
Five direction intra predictor generators among the AVS, corresponding intra prediction mode is respectively:
Intra_8 * 8_Vertical, Intra_8 * 8_Horizontal, Intra_8 * 8_DC, Intra_8 * 8_Down_Left and Intra_8 * 8_Down_Right predictive mode.The coordinate of supposing the current pixel that will predict for (x, y), then
When using Intra_8 * 8_Vertical predictive mode, the predicted value predMatrix[x of each pixel [x, y] in the present encoding piece, y]=r[x+1] (x, y=0~7).
When adopting Intra_8 * 8_Horizontal predictive mode, the predicted value predMatrix[x of each pixel [x, y] in the present encoding piece, y]=c[y+1] (x, y=0~7).
When adopting Intra_8 * 8DC predictive mode, according to reference sample r[i] and c[i] availability,
The predicted value predMatrix[x of each pixel [x, y] in the present encoding piece, y]=((r[x]+2 * r[x+1]+r[x+2]+2)>>2+ (c[y]+2 * c[y+1]+c[y+2]+2)>>2)>>1 (x, y=0~7); Or predMatrix[x, y]=(r[x]+2 * r[x+1]+r[x+2]+2)>>2 (x, y=0~7); Or
PredMatrix[x, y]=(c[y]+2 * c[y+1]+c[y+2]+2)>>2 (x, y=0~7); Or
predMatrix[x,y]=128(x,y=0~7)。
When adopting Intra_8 * 8_Down_Left predictive mode,
predMatrix[x,y]=((r[x+y+1]+2×r[x+y+2]+r[x+y+3]+2)>>2+(c[x+y+1]+2×c[x+y+2]+c[x+y+3]+2)>>2)>>1(x,y=0~7)。
When adopting Intra_8 * 8_Down_Right predictive mode,
If x equals y, predMatrix[x then, y]=(c[1]+2 * r[0]+r[1]+2)>>2 (x, y=0~7);
If x is greater than y, predMatrix[x then, y]=(r[x-y+1]+2 * r[x-y]+r[x-y-1]+2)>>2 (x, y=0~7);
If y is greater than x, predMatrix[x then, y]=(c[y-x+1]+2 * c[y-x]+c[y-x-1]+2)>>2.
As seen from the above description, infra-frame prediction of the prior art, its fallout predictor only utilize the delegation of present encoding piece adjacent block and a row pixel to predict that its precision of prediction is not high, therefore the intraframe coding distortion performance is relatively poor, can not further react the content change of present encoding piece.
Summary of the invention
In view of this, the embodiment of the invention provides infra-frame prediction, decoding method on the one hand, and the infra-frame prediction device is provided on the other hand, comprises coding side and decoding end, can improve the intraframe coding distortion performance.
A kind of intra-frame prediction method comprises: coding side according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece.
A kind of intra-frame predictive encoding method comprises:
Coding side calculates under each predictive mode, the predicted value of each pixel of present encoding piece, select first predictive mode according to described predicted value, described each predictive mode comprises the predictive mode of expansion, for the predictive mode of described expansion, described coding side according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece;
Described coding side is encoded to described present encoding piece according to described first predictive mode, obtains coding result, with the identification information generation code stream of described coding result and described first predictive mode.
A kind of infra-frame prediction coding/decoding method comprises:
Decoding end is obtained the first predictive mode identification information from the code stream that coding side generates;
Determine described first predictive mode according to the described first predictive mode identification information, if described first predictive mode is the predictive mode of expansion, then described decoding end is according to the predicted value of current decoding block predict pixel, determine the predicted value of pixel to be predicted in the current decoding block, current decoding block is decoded.
A kind of coding side comprises: predictive mode selected cell and coding unit,
Described predictive mode selected cell, be used to calculate under each predictive mode, the predicted value of each pixel of present encoding piece, select first predictive mode according to described predicted value, described each predictive mode comprises the predictive mode of expansion, for the predictive mode of described expansion, described predictive mode selected cell according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece;
Described coding unit is used for according to described first predictive mode described present encoding piece being encoded, and obtains coding result, with the identification information generation code stream of described coding result and described first predictive mode.
A kind of decoding end comprises: predictive mode acquiring unit and decoding unit,
Described predictive mode acquiring unit is used for obtaining from the code stream that coding side generates the identification information of first predictive mode;
Described decoding unit, determine described first predictive mode according to the identification information of described first predictive mode, if described first predictive mode is the predictive mode of expansion, then described decoding unit is according to the predicted value of current decoding block predict pixel, determine the predicted value of pixel to be predicted in the current decoding block, current decoding block is decoded.
By above technical scheme as seen, the infra-frame prediction that the embodiment of the invention provides, decoding method and device, by on existing predictive mode basis, further increasing new intra prediction mode, according to the predicted value of pixel to be predicted in the predicted value of the predict pixel prediction present encoding piece in the present encoding piece, thereby improved the intraframe coding distortion performance.
Description of drawings
Fig. 1 is prior art 8 * 8 infra-frame prediction schematic diagrames;
Fig. 2 is the flow chart of intra-frame predictive encoding method embodiment of the present invention;
Fig. 3 is the embodiment of the invention 8 * 8 expansion infra-frame prediction schematic diagrames;
Fig. 4 is the concrete prediction mode schematic diagram of the predictive mode of first kind of expansion of the embodiment of the invention;
Fig. 5 is the concrete prediction mode schematic diagram of the predictive mode of second kind of expansion of the embodiment of the invention;
Fig. 6 is the flow chart of a preferable implementation of method shown in Figure 2;
Fig. 7 is the flow chart of infra-frame prediction coding/decoding method embodiment of the present invention.
Embodiment
For making purpose of the present invention, technical scheme and beneficial effect clearer,, the present invention is done detailed description further below in conjunction with embodiment and accompanying drawing.
The intra-frame prediction method that the embodiment of the invention provides is according to the predicted value of pixel to be predicted in the predicted value of the predict pixel prediction present encoding piece in the present encoding piece.
Fig. 2 is the flow chart of intra-frame predictive encoding method embodiment of the present invention, and this flow process comprises:
Step 201, coding side calculates under each predictive mode, the predicted value of each pixel of present encoding piece, select first predictive mode according to the predicted value that calculates, described each predictive mode comprises the predictive mode of expansion, promptly determine the predictive mode of the predicted value of pixel to be predicted according to the predicted value of present encoding piece predict pixel, for the predictive mode of expansion, coding side according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece.
In this step, coding side calculates under each predictive mode, the predicted value of each pixel of present encoding piece, according to the predicted value that calculates select first predictive mode can for: coding side calculates under each predictive mode, the predicted value of each pixel of present encoding piece, determine the rate distortion rate (RDcost) of present encoding piece according to the predicted value that calculates, the predictive mode of selecting present encoding piece RDcost value minimum is as first predictive mode.
For AVS, each predictive mode in this step not only can comprise: the predictive mode of one or more expansions, can also comprise existing five kinds of predictive modes, for existing predictive mode, coding side is listed as the predicted value that the predicted value of predict pixel is determined present encoding pixel that piece comprises according to the delegation and of present encoding piece adjacent block.
Step 202, coding side is encoded to the present encoding piece according to first predictive mode of selecting, and obtains coding result, with the identification information generation code stream of the coding result and first predictive mode.
In this step, the purpose that first predictive mode is generated code stream is to make decoding end obtain first predictive mode that coding side is selected by reading code stream.In order to reduce decoding end first predictive mode is generated the shared space of code stream, this method further can comprise: the mapping relations of each mode of extension and a kind of existing predictive mode are set, and the identification information of the predictive mode of expansion is set.When first predictive mode during for the predictive mode of expansion, coding side generates code stream with the identification information of the predictive mode of the identification information of the existing predictive mode of the first predictive mode correspondence and expansion.
Such as prior art 5 kinds of predictive modes are arranged, numbering is respectively 0,1,2,3,4, now increases the predictive mode of two kinds of expansions, and numbering is respectively 5 and 6.If first predictive mode that coding side is selected is the predictive mode of expansion, then coding side can be set up mapping relations with the predictive mode of expansion and two kinds of five kinds of predictive modes of the prior art in advance, sets up mapping relations such as the predictive mode that is numbered 5 with the predictive mode that is numbered 3; Be numbered 6 predictive mode and be numbered 4 predictive mode and set up mapping relations, the identification information of the predictive mode of an expansion is set simultaneously, as when adopting the predictive mode of expanding, the identification information of the predictive mode of this expansion is 1; Otherwise be 0.Like this, when first predictive mode is when being numbered the predictive mode of 5 expansion, coding side can be represented with the identification information of the predictive mode of identification information that is numbered 3 predictive mode and expansion.Because the identification information of the predictive mode of expansion only needs a bit to represent, therefore can reduce decoding end first predictive mode is generated the shared space of code stream.
The predictive mode of the expansion described in the step 201 can be Intra_8 * 8_Down_Left_Ext and/or Intra_8 * 8_Down_Right_Ext predictive mode.
The concrete Forecasting Methodology of the predictive mode of these two kinds of expansions is as described below:
As shown in Figure 3, the intra prediction mode for 8 * 8 indicates P XyThe piece of (x, y=0~7) is for needing the pixel of prediction, and the predicted value of each pixel is expressed as predMatrix[x, y].Available reference sample point r[i is shown in one of the uppermost delegation and leftmost side tabulation in Fig. 3] and c[j].
The concrete prediction mode of Intra_8 * 8_Down_Left_Ext predictive mode as shown in Figure 4, the current pixel that will predict is X, then utilize this pixel a left side, go up, predicted value that upper right pixel A, B and C filtering obtain pixel X.The method that obtains the X pixel predictors according to A, B and C pixel filter can have a variety of, comprising: (1,2,1)/4, (3,4,1)/8, (1,4,3)/8, (4,3,1)/8, (1,6,1)/8, (1,5,2)/8, (2,1,1)/4, (1,1,2)/4 etc.Coefficient when three numerals in its bracket are represented respectively to utilize pixel A, B and C predictor calculation pixel X predicted value.With (1,2,1)/4 is example, the predicted value of pixel X=(A+B<<1+C+2)>>2, i.e. (A+2B+C+2)/4.
Adopt Intra_8 * 8_Down_Left_Ext predictive mode that the whole pixels of present encoding piece are predicted that specific descriptions are as follows:
Work as r[i], c[j] (i, j=1~8) but equal times spent, can adopt Intra_8 * 8_Down_Left_Ext predictive mode, because r[i among Fig. 3], c[j] (i, j=1~8) be the available reference sample point, therefore predMatrix[0,0]=((c[1]+2 * r[1]+r[2]+2)>>2, i.e. first pixel P 00Predicted value be c[1 by its left side], directly over r[1] and top-right r[2] prediction obtains.
The predicted value of the rest of pixels of first row is:
PredMatrix[x, 0]=((predMatrix[x-1,0]+2x1[i]+r[i+1]+2)>>2 (x=1~7, i=2~8), i.e. P X0Be P by its left side X-1,0, directly over r[i] and top-right r[i+1] prediction obtains.
Second row is as follows to the 8th row prediction:
The predicted value of the pixel of first row is:
PredMatrix[0, y]=((c[j]+2 * predMatrix[0, y-1]+predMatrix[1, y-1]+2)>>2, (y=1~7, j=2~8), i.e. P 0yBe c[j=2~8 by its left side], directly over P 0, y-1And top-right P 1, y-1Prediction obtains.
The predicted value of remaining secondary series to the seven row pixels is:
PredMatrix[x, y]=((predMatrix[x-1, y]+2 * predMatrix[x, y-1]+predMatrix[x+1, y-1]+2)>>2 (x=1~7, y=1~7), promptly
P XyBe P by its left side X-1, y, directly over P X, y-1And top-right P X+1, y-1Prediction obtains.
The predicted value of the 8th row pixel is:
predMatrix[x,y]=((predMatrix[x-1,y]+2×predMatrix[x,y-1]+r[x+1,y-1]+2)>>2(x=7,y=1~7);
If the current predict pixel upper right side reference sample point of wanting does not exist, the point that then uses same column position in the adjacent block reference sample is promptly used the r[9 among Fig. 3 as with reference to the sample point value] the replaced C point.For this situation, also can adopt and want predict pixel top reference sample point to replace, promptly utilize the B point replaced C point among Fig. 4, as follows:
predMatrix[x,y]=((predMatrix[x-1,y]+3×predMatrix[x,y-1]+2)>>2(x=7,y=1~7)。
The concrete prediction mode of Intra_8 * 8_Down_Right_Ext predictive mode as shown in Figure 5, the current pixel that will predict is X, then utilizes a left side, lower-left and top left pixel A1, the B1 of this pixel and the predicted value that C1 filtering obtains pixel X.The method that obtains the X pixel predictors according to A1, B1 and C1 pixel filter can have a variety of, comprising: (1,2,1)/4, (3,4,1)/8, (1,4,3)/8, (4,3,1)/8, (1,6,1)/8, (1,5,2)/8, (2,1,1)/4, (1,1,2)/4 etc.Coefficient when three numerals in its bracket are represented respectively to utilize pixel A 1, B1 and C1 predictor calculation pixel X predicted value.With (1,2,1)/4 is example, the predicted value of pixel X=(A1+B1<<1+C1+2)>>2, i.e. (A1+2B1+C1+2)/4.
Adopt Intra_8 * 8_Down_Right_Ext predictive mode that the whole pixels of present encoding piece are predicted that specific descriptions are as follows:
Work as r[i], c[j] (i, j=1~8) but equal times spent, can adopt Intra_8 * 8_Down_Right_Ext predictive mode, because r[i among Fig. 3], c[j] (i, j=1~8) be the available reference sample point, therefore predMatrix[0,0]=((r[1]+2 * c[1]+c[2]+2)>>2, i.e. first pixel P 00Predicted value be by the r[1 directly over it], the c[1 on the left side] and the c[2 of lower left] prediction obtains.
The predicted value of the rest of pixels of first row is:
PredMatrix[0, y]=((predMatrix[0, y-1]+2 * c[j]+c[j+1]+2)>>2 (y=1~7, j=2~8), i.e. P 0yBe by the P directly over it 0, y-1, the c[j on the left side] and lower left c[j+1] prediction obtains.
The prediction of the pixel in secondary series to the eight row is as follows:
The predicted value of the pixel of first row is:
predMatrix[x,0]=((r[i]+2×predMatrix[x-1,0]+predMatrix[x-1,1]+2)>>2,(x=1~7,i=2~8);
Be P X0Be by the r[i=2 directly over it~8], the P on the left side X-1,0And the P of lower left X-1,1Prediction obtains.
Remaining second row to the predicted value of the 7th row pixel is:
predMatrix[x,y]=((predMatrix[x,y-1]+2×predMatrix[x-1,y]+predMatrix[x-1,y+1]+2)>>2(x=1~7,y=1~7);
Be P XyBe by the P directly over it X, y-1, the P on the left side X-1, yAnd the P of lower left X-1, y+1Prediction obtains.
The predicted value of the 8th row pixel is:
predMatrix[x,y]=((predMatrix[x,y-1]+2×predMatrix[x-1,y]+r[x-1,y+1]+2)>>2(x=1~7,y=7);
If the current predict pixel lower left reference sample point of wanting does not exist, then use in the adjacent block reference sample identical line position point promptly to use c[9 as with reference to sample value] replaced C 1 point.For this situation, non-existent lower left reference sample point also can adopt wants predict pixel left side reference sample point to replace, promptly with B1 point replaced C 1 point.Be shown below:
predMatrix[x,y]=((predMatrix[x,y-1]+3×predMatrix[x-1,y]+2)>>2(x=1~7,y=7)。
Predictive mode Intra_8 * the 8_Down_Left_Ext and the Intra_8 * 8_Down_Right_Ext of two kinds of expansions that Fig. 4 and Fig. 5 provide, all adopt three the predicted value of predict pixel determine the predicted value of pixel to be predicted, also can adopt in the practical application 4,5 or arbitrarily the predicted value of a plurality of predict pixel determine the predicted value of pixel to be predicted.
In addition, the predictive mode of two kinds of expansions that provide except Fig. 4 and Fig. 5, can also increase the predictive mode of other expansion.Such as can to existing all predictive modes or wherein the part predictive mode expand, be about to the combination that each prediction direction in all prediction direction or two the above prediction direction expands to a plurality of fallout predictors.The predictive mode of these expansions is when the predicted value of the pixel of determining the present encoding piece, and the needs basis predicted value of predict pixel is calculated.
Fig. 6 is the flow chart of a preferable implementation of method shown in Figure 2.In this implementation, the optional intra prediction mode of coding side is as shown in table 1.
Prediction mode number IntraLumaPredMode The predictive mode title
0 Intra_8×8_Vertical
1 Intra_8×8_Horizontal
2 Intra_8×8_DC
3 Intra_8×8_Down_Left
4 Intra_8×8_Down_Right
5(3E) Intra_8×8_Down_Left_Ext
6(4E) Intra_8×8_Down_Right_Ext
Table 1
Wherein, Intra_8 * 8_Down_Left_Ext and Intra_8 * 8_Down_Right_Ext are the predictive mode of expansion.
Flow process shown in Figure 6 comprises the steps:
Step 601, under each predictive mode, the predicted value of each pixel of present encoding piece according to the predicted value that calculates, is selected first predictive mode, is optimum prediction mode in the present embodiment in the coding side computational chart 1.
Best predictor can (RDO, Rate-DistortionOptimization) principle be calculated the RDcost that every kind of predictive mode is encoded, and select the optimum prediction mode as the present encoding piece of RDcost minimum according to the optimization of rate distortion rate.
For compatible prior art, the mark whether sign uses the infra-frame prediction mode of extension can be set, represent with extended_intra_prediction in the present embodiment.If coding side is selected optimum prediction mode (bestmode) from existing five kinds of predictive modes, it is 0 that extended_intra_prediction then is set;
If coding side is selected bestmode from comprise 7 kinds of predictive modes expanding predictive mode, it is 1 that extended_intra_prediction then is set.
Step 602, coding side is encoded to the present encoding piece according to the optimum prediction mode of selecting, and obtains coding result, with the identification information generation code stream of coding result and optimum prediction mode.
In this step, coding side can be directly generates code stream with the numbering of the optimum prediction mode of selecting; Or the identification information of the predictive mode by expansion is set, here represent with extended_intra_prediction_flag, and any two kinds mapping relations in Intra_8 * 8_Down_Left_Ext predictive mode and Intra_8 * 8_Down_Right_Ext predictive mode and all the other five kinds of existing predictive modes are set.Selecting prediction mode number in the present embodiment is that two kinds of existing patterns of 3 and 4 are set up mapping relations with Intra_8 * 8_Down_Left_Ext predictive mode and Intra_8 * 8_Down_Right_Ext predictive mode respectively.
Simultaneously, extended_intra_prediction_flag is set in the present embodiment and represented the predictive mode expanded at 1 o'clock; Be to represent existing predictive mode at 0 o'clock.Certainly, also can adopt other method to set up, extended_intra_prediction_flag is set, as long as can distinguish the existing predictive mode of mapping mutually and the predictive mode of expansion.
If the optimum prediction mode bestmode=5 (3E) that coding side is selected, then coding side can generate code stream with extended_intra_prediction_flag=1 and bestmode=3; If bestmode=3, then coding side can generate code stream with extended_intra_prediction_flag=0 and bestmode=3.
If the bestmode=6 (4E) that coding side is selected, then coding side can generate code stream with extended_intra_prediction_flag=1 and bestmode=4; If bestmode=4, then coding side can generate code stream with extended_intra_prediction_flag=0 and bestmode=4.
Predictive mode of the present invention is encoded according to the syntax table of following coded bit stream, and new expansion intra prediction mode indicates with Extended_Intra_Prediction.
Sequence head is defined as follows:
sequence_header(){ Descriptor
if(profile_id==0×20)/*Jizhun profile*/
reserved_bits ′000′
else{/*Zengqiang profile*/
entropy_coding_mode_flag u(1)
extended_intra_prediction u(1)
reserved_bits ′00′
}
next_start_code()
}
The macro block syntactic definition:
if(MbType==′I_8×8′){
for(i=0;i<4;i++){
pred_mode_flag u(1) |ae(v)
if(!pred_mode_flag)
intra_luma_pred_mode u(2) |ae(v)
if(extended_intra_prediction){
if(Intra_8×8Down Left|| Intra_8×8_Down_Right) {
extended_intra_prediction_flag u(1) |ae(v)
}
}
}
intra_chroma_pred_mode ue(v) |ae(v)
if(chroma_format==′10′)
intra_chroma_pred_mode_422 ue(v) |ae(v)
}
Wherein, extended_intra_prediction equals 1 expression use new infra-frame prediction type of the present invention;
Ae (v): use the syntactic element based on contextual self adaptation binary arithmetic code coding
U (n): n position signless integer.In syntax table, if n is ' v ', its bit number is determined by other syntax element value.Resolving is by the return value of function read_bits (n) regulation, and this return value is with high position binary representation the preceding.
Ue (v): the signless integer syntactic element, with index Columbus sign indicating number coding.
Fig. 7 is the flow chart of infra-frame prediction coding/decoding method embodiment of the present invention.This flow process comprises:
Step 701, decoding end is obtained the first predictive mode identification information from the code stream that coding side generates, determine first predictive mode according to the first predictive mode identification information.
Step 702, if first predictive mode is the predictive mode of expansion, then decoding end is determined the predicted value of pixel to be predicted in the current decoding block according to the predicted value of current decoding block predict pixel, and current decoding block is decoded.
This method can also comprise: if first predictive mode that decoding end is obtained is existing predictive mode, then decoding end is listed as the predicted value that the predicted value of predict pixel is determined pixel that current decoding block comprises according to the adjacent delegation and of current decoding block.
This method further can comprise: set in advance the mapping relations of predictive mode and a kind of existing predictive mode of each expansion, and the identification information of the predictive mode of expansion is set.
When the first predictive mode identification information comprises the identification information of predictive mode of the identification information of existing predictive mode and expansion, the identification information of decoding end by the existing predictive mode that relatively sets in advance and the identification information of the predictive mode of expansion, with the identification information of the predictive mode of the identification information of the existing predictive mode that comprises in the first predictive mode identification information and expansion, determine first predictive mode.
Utilize intraframe predictive coding that the embodiment of the invention provides and coding/decoding method to carry out the infra-frame prediction encoding and decoding and can significantly improve intraframe coding efficient.In AVSP2, the method for using the embodiment of the invention to provide can be so that intraframe coding rate distortion rate on average increases the gain of 0.1dB.
The embodiment of the invention provides a kind of coding/decoding system simultaneously, comprising: coding side and decoding end.
Wherein, coding side, be used to calculate under each predictive mode, the predicted value of each pixel of present encoding piece, select first predictive mode according to described predicted value, described each predictive mode comprises the predictive mode of expansion, for the predictive mode of expansion, coding side according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece; According to first predictive mode present encoding piece is encoded, obtain coding result, with the identification information generation code stream of the coding result and first predictive mode;
Decoding end is used for obtaining from described code stream the identification information of first predictive mode; Determine first predictive mode according to the identification information of first predictive mode, if first predictive mode is the predictive mode of expansion, then decoding end is determined the predicted value of pixel to be predicted in the current decoding block according to the predicted value of current decoding block predict pixel, and current decoding block is decoded.
Wherein, coding side comprises: predictive mode selected cell and coding unit.
The predictive mode selected cell, be used to calculate under each predictive mode, the predicted value of each pixel of present encoding piece, select first predictive mode according to described predicted value, each predictive mode comprises the predictive mode of expansion, for the predictive mode of expansion, the predictive mode selected cell according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece;
Coding unit is used for according to first predictive mode present encoding piece being encoded, and obtains coding result, with the identification information generation code stream of the coding result and first predictive mode.
The predictive mode selected cell comprises: the predictive mode predicting unit of expansion, existing prediction model prediction unit and mode selecting unit.
Wherein, the predictive mode predicting unit of expansion is used under the predictive mode of expansion, according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece;
Existing prediction model prediction unit is used under existing predictive mode, is listed as the predicted value that the predicted value of predict pixel is determined present encoding pixel that piece comprises according to the adjacent delegation and of present encoding piece;
Mode selecting unit is used for the definite predicted value of predictive mode predicting unit and existing prediction model prediction unit according to expansion, selects first predictive mode.
Coding unit comprises: mode map unit and code stream generation unit.
The mode map unit is used to preserve the predictive mode of each expansion of setting and the mapping relations of existing predictive mode, and the identification information of the predictive mode of the expansion that is provided with;
The code stream generation unit is used for according to first predictive mode present encoding piece being encoded, and obtains coding result, and the identification information of the predictive mode of the identification information of the existing predictive mode of the coding result and the first predictive mode correspondence and expansion is generated code stream.
Decoding end comprises: predictive mode acquiring unit and decoding unit.
The predictive mode acquiring unit is used for obtaining from the code stream that coding side generates the identification information of first predictive mode;
Decoding unit, determine first predictive mode according to the identification information of first predictive mode, if first predictive mode is the predictive mode of expansion, then decoding unit is according to the predicted value of current decoding block predict pixel, determine the predicted value of pixel to be predicted in the current decoding block, current decoding block is decoded.
Wherein, decoding unit comprises: predictive mode determining unit, expansion predictive mode decoding unit and existing prediction mode decoding unit.
The predictive mode determining unit is determined first predictive mode according to the identification information of first predictive mode;
Expansion predictive mode decoding unit is used for according to the predicted value of current decoding block predict pixel, determining the predicted value of pixel to be predicted in the current decoding block when first predictive mode is the predictive mode of expansion, and current decoding block is decoded;
Existing prediction mode decoding unit is used at first predictive mode during for existing predictive mode, is listed as the predicted value that the predicted value of predict pixel is determined pixel that current decoding block comprises according to the adjacent delegation and of current decoding block.
The predictive mode determining unit comprises: mode map unit and pattern determining unit.
The mode map unit is used to preserve the predictive mode of each expansion of setting and the mapping relations of existing predictive mode, and the identification information of the predictive mode of the expansion that is provided with;
Pattern determining unit, be used for that the identification information of comparison first predictive mode comprises with the mode map unit in the identification information of the existing predictive mode preserved and the predictive mode identification information of expansion, determine first predictive mode.
By above embodiment as seen, by increasing the predictive mode of expansion, coding side according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted, thereby can improve the intraframe coding distortion performance, optimum encoding rate distortion performance is provided under lower marker cost.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (18)

1. an intra-frame prediction method is characterized in that, this method comprises: coding side according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece.
2. the method for claim 1 is characterized in that, the method for the predicted value of pixel to be predicted comprises in described definite present encoding piece:
Described coding side is determined the predicted value of described current pixel to be predicted according to adjacent two or more of the current pixel to be predicted predicted value of predict pixel.
3. method as claimed in claim 2, it is characterized in that the method for the predicted value of pixel to be predicted is specially in described definite present encoding piece: described coding side according to current pixel to be predicted right side, directly over and upper right side adjacent three the predicted value of predict pixel A, B and C determine the predicted value of current pixel to be predicted; Or
Described coding side according to currently want directly over the predict pixel, left side and lower-left side are adjacent three the predicted value of predict pixel A1, B1 and C1 determine the current predicted value of wanting predict pixel.
4. method as claimed in claim 3 is characterized in that, described coding side determines that the current computational methods of the predicted value of predict pixel of wanting are specially:
Described coding side to described three the predicted value of predict pixel carry out the predicted value that current pixel to be predicted is determined in filtering.
5. method as claimed in claim 4 is characterized in that, described coding side to described three the predicted value of predict pixel carry out filtering and determine that the concrete grammar of the predicted value of current pixel to be predicted is:
Described when three predict pixel has been described A, B and C, the predicted value of described current pixel to be predicted equals the predicted value of described B of the predicted value of described A, twice and the predicted value sum of described C adds 2 again divided by 4;
Described when three predict pixel has been described A1, B1 and C1, the predicted value of described current pixel to be predicted equals the predicted value of described B1 of the predicted value of described A1, twice and the predicted value sum of described C1 adds 2 again divided by 4.
6. an intra-frame predictive encoding method is characterized in that, this method comprises:
Coding side calculates under each predictive mode, the predicted value of each pixel of present encoding piece, select first predictive mode according to described predicted value, described each predictive mode comprises the predictive mode of expansion, for the predictive mode of described expansion, described coding side according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece;
Described coding side is encoded to described present encoding piece according to described first predictive mode, obtains coding result, with the identification information generation code stream of described coding result and described first predictive mode.
7. method as claimed in claim 6 is characterized in that, described each predictive mode further comprises: existing predictive mode,
For described existing predictive mode, described coding side is listed as the predicted value that the predicted value of predict pixel is determined present encoding pixel that piece comprises according to the adjacent delegation and of present encoding piece.
8. method as claimed in claim 7 is characterized in that, this method further comprises: the mapping relations of described each mode of extension and described existing predictive mode are set, the identification information of the predictive mode of expansion is set,
When described first predictive mode was the predictive mode of expansion, the identification information of first predictive mode that described coding side will be selected generated code stream and is:
Described coding side generates code stream with the identification information of the predictive mode of the identification information of the existing predictive mode of the described first predictive mode correspondence and described expansion.
9. as each described method of claim 6 to 8, it is characterized in that described selection first predictive mode is the predictive mode of selection rate distortion rate RDcost minimum.
10. an infra-frame prediction coding/decoding method is characterized in that, this method comprises:
Decoding end is obtained the first predictive mode identification information from the code stream that coding side generates;
Determine described first predictive mode according to the described first predictive mode identification information, if described first predictive mode is the predictive mode of expansion, then described decoding end is according to the predicted value of current decoding block predict pixel, determine the predicted value of pixel to be predicted in the current decoding block, current decoding block is decoded.
11. method as claimed in claim 10 is characterized in that, this method further comprises:
If described first predictive mode is existing predictive mode, then described decoding end is listed as the predicted value that the predicted value of predict pixel is determined pixel that current decoding block comprises according to the adjacent delegation and of current decoding block.
12. method as claimed in claim 11 is characterized in that, this method further comprises: the mapping relations of described each mode of extension and described existing predictive mode are set, the identification information of the predictive mode of expansion is set,
When the described first predictive mode identification information comprised the identification information of predictive mode of the identification information of existing predictive mode and expansion, described decoding end determined that described first predictive mode is:
Described decoding end is determined described first predictive mode according to the identification information of the predictive mode of the identification information of described existing predictive mode and described expansion.
13. a coding side is characterized in that, described coding side comprises: predictive mode selected cell and coding unit,
Described predictive mode selected cell, be used to calculate under each predictive mode, the predicted value of each pixel of present encoding piece, select first predictive mode according to described predicted value, described each predictive mode comprises the predictive mode of expansion, for the predictive mode of described expansion, described predictive mode selected cell according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece;
Described coding unit is used for according to described first predictive mode described present encoding piece being encoded, and obtains coding result, with the identification information generation code stream of described coding result and described first predictive mode.
14. coding side as claimed in claim 13 is characterized in that, described predictive mode selected cell comprises: the predictive mode predicting unit of expansion, existing prediction model prediction unit and mode selecting unit,
The predictive mode predicting unit of described expansion is used under the predictive mode of described expansion, according in the present encoding piece the predicted value of predict pixel determine the predicted value of pixel to be predicted in the present encoding piece;
Described existing prediction model prediction unit is used under existing predictive mode, is listed as the predicted value that the predicted value of predict pixel is determined present encoding pixel that piece comprises according to the adjacent delegation and of present encoding piece;
Described mode selecting unit is used for the definite predicted value of predictive mode predicting unit and existing prediction model prediction unit according to described expansion, selects described first predictive mode.
15. method as claimed in claim 14 is characterized in that, described coding unit comprises: mode map unit and code stream generation unit,
Described mode map unit is used to preserve the predictive mode of each expansion of setting and the mapping relations of described existing predictive mode, and the identification information of the predictive mode of the expansion that is provided with;
Described code stream generation unit, be used for described present encoding piece being encoded according to described first predictive mode, obtain coding result, the identification information of the predictive mode of the identification information of the existing predictive mode of described coding result and the described first predictive mode correspondence and expansion is generated code stream.
16. a decoding end is characterized in that, described decoding end comprises: predictive mode acquiring unit and decoding unit,
Described predictive mode acquiring unit is used for obtaining from the code stream that coding side generates the identification information of first predictive mode;
Described decoding unit, determine described first predictive mode according to the identification information of described first predictive mode, if described first predictive mode is the predictive mode of expansion, then described decoding unit is according to the predicted value of current decoding block predict pixel, determine the predicted value of pixel to be predicted in the current decoding block, current decoding block is decoded.
17. decoding end as claimed in claim 16 is characterized in that, described decoding unit comprises: predictive mode determining unit, expansion predictive mode decoding unit and existing prediction mode decoding unit,
Described predictive mode determining unit is determined described first predictive mode according to the identification information of described first predictive mode;
Described expansion predictive mode decoding unit is used for according to the predicted value of current decoding block predict pixel, determining the predicted value of pixel to be predicted in the current decoding block when described first predictive mode is the predictive mode of expansion, and current decoding block is decoded;
Described existing prediction mode decoding unit is used at described first predictive mode during for existing predictive mode, is listed as the predicted value that the predicted value of predict pixel is determined pixel that current decoding block comprises according to the adjacent delegation and of current decoding block.
18. method as claimed in claim 17 is characterized in that, described predictive mode determining unit comprises: mode map unit and pattern determining unit,
Described mode map unit is used to preserve the predictive mode of described each expansion of setting and the mapping relations of described existing predictive mode, and the identification information of the predictive mode of the expansion that is provided with;
Described pattern determining unit, be used for that the identification information of more described first predictive mode comprises with described mode map unit in the identification information of the existing predictive mode preserved and the predictive mode identification information of expansion, determine described first predictive mode.
CN 200710088041 2007-03-12 2007-03-12 Inside-frame prediction, decoding and coding method and device Pending CN101267567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710088041 CN101267567A (en) 2007-03-12 2007-03-12 Inside-frame prediction, decoding and coding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710088041 CN101267567A (en) 2007-03-12 2007-03-12 Inside-frame prediction, decoding and coding method and device

Publications (1)

Publication Number Publication Date
CN101267567A true CN101267567A (en) 2008-09-17

Family

ID=39989647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710088041 Pending CN101267567A (en) 2007-03-12 2007-03-12 Inside-frame prediction, decoding and coding method and device

Country Status (1)

Country Link
CN (1) CN101267567A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011110039A1 (en) * 2010-03-12 2011-09-15 Mediatek Singapore Pte. Ltd. Motion prediction methods
CN104902283A (en) * 2010-04-09 2015-09-09 韩国电子通信研究院 Method for encoding videos
CN106851310A (en) * 2011-01-12 2017-06-13 佳能株式会社 The improved Video coding of Fault recovery and decoding
CN109792529A (en) * 2016-09-22 2019-05-21 Lg 电子株式会社 In image compiling system based on prediction technique between illuminance compensation and equipment
CN111937389A (en) * 2018-03-29 2020-11-13 华为技术有限公司 Apparatus and method for video encoding and decoding
US11095878B2 (en) 2011-06-06 2021-08-17 Canon Kabushiki Kaisha Method and device for encoding a sequence of images and method and device for decoding a sequence of image

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011110039A1 (en) * 2010-03-12 2011-09-15 Mediatek Singapore Pte. Ltd. Motion prediction methods
CN102439978A (en) * 2010-03-12 2012-05-02 联发科技(新加坡)私人有限公司 Motion prediction methods
CN104902283A (en) * 2010-04-09 2015-09-09 韩国电子通信研究院 Method for encoding videos
CN104902283B (en) * 2010-04-09 2018-12-14 韩国电子通信研究院 Video encoding/decoding method
CN106851310A (en) * 2011-01-12 2017-06-13 佳能株式会社 The improved Video coding of Fault recovery and decoding
US10609380B2 (en) 2011-01-12 2020-03-31 Canon Kabushiki Kaisha Video encoding and decoding with improved error resilience
US11146792B2 (en) 2011-01-12 2021-10-12 Canon Kabushiki Kaisha Video encoding and decoding with improved error resilience
US11095878B2 (en) 2011-06-06 2021-08-17 Canon Kabushiki Kaisha Method and device for encoding a sequence of images and method and device for decoding a sequence of image
CN109792529A (en) * 2016-09-22 2019-05-21 Lg 电子株式会社 In image compiling system based on prediction technique between illuminance compensation and equipment
CN111937389A (en) * 2018-03-29 2020-11-13 华为技术有限公司 Apparatus and method for video encoding and decoding
CN111937389B (en) * 2018-03-29 2022-01-14 华为技术有限公司 Apparatus and method for video encoding and decoding
US11323695B2 (en) 2018-03-29 2022-05-03 Huawei Technologies Co., Ltd. Bidirectional intra prediction signaling

Similar Documents

Publication Publication Date Title
CN102771125B (en) Use coding/decoding method and the device of tree structure
CN102577378B (en) For method and apparatus pattern information being encoded and decoding
US9215463B2 (en) Image encoding/decoding method and device
JP5727115B1 (en) Method and apparatus for encoding / decoding picture boundary coding unit
CN101584218B (en) Method and apparatus for encoding and decoding based on intra prediction
CN100539702C (en) The device and method that is used for image coding and decoding
CN101647281B (en) Method and apparatus for video encoding and decoding
CN100380984C (en) Spatial prediction based intra coding
CN101218831B (en) Image decoding method and device
CN104581162B (en) By using the method for large-scale converter unit decoded picture
CN103384333B (en) Use the video decoder of predictive mode
CN101677406B (en) Method and apparatus for video encoding and decoding
US20140119439A1 (en) Method and apparatus of intra mode coding
CN101572818B (en) Intra-frame prediction mode prediction method
CN101569201B (en) Method and apparatus for encoding and decoding based on intra prediction
CN103067704B (en) A kind of method for video coding of skipping in advance based on coding unit level and system
CN101267567A (en) Inside-frame prediction, decoding and coding method and device
CN101500160B (en) Code stream identification method, apparatus and encoding, decoding system
CN103096055A (en) Image signal intra-frame prediction and decoding method and device
CN103238333A (en) Method and apparatus for encoding/decoding images to minimize redundancy of intra-rediction mode
CN103004194A (en) Image encoding/decoding device and method
CN103188496A (en) Fast motion estimation video encoding method based on motion vector distribution forecast
CN102857763B (en) A kind of coding/decoding method based on infra-frame prediction and decoding device
CN104954788A (en) HEVC (High Efficiency Video Coding) intra-frame prediction mode selection method and device
CN101621694B (en) Motion estimation method, motion estimation system and display terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080917