A kind of method for simplifying of the context towards the HEVC parameter coding
Technical field
The invention belongs to the technical field of Video coding, relate to particularly a kind of context method for simplifying towards HEVC (High efficiency video coding, efficient video coding) parameter coding.
Background technology
The self adaptation of the based on the context coding (Context-based Adaptive Binary Arithmetic Coding, be called for short CABAC) that counts is the entropy coding method that is widely used in field of video encoding, and code efficiency is high, but consumes large.In the compiling and edit of video encoding standard HEVC of new generation, CABAC is used as the entropy coding method of high-efficiency module (High Efficiency Module).
The CABAC context model of HEVC is stored in three-dimensional context model container, and the container dimension is respectively x, y, z.Use 3 parameters while calling, as a, b, c (a≤x, b≤y, c≤z), the linear position of the context model of calling in container is a*y*z+b*z+c.When NxN (N is positive integer) the image block parameter for after conversion is carried out the entropy coding, need application CABAC method to being used for the coeff_abs_level_greater1_flag (position that the image block the inside parameter value be used for after the mark conversion is greater than 1 of flag parameters value, need to take 32 separate context models, 24 codings that are used for carrying out brightness luma wherein, other 8 codings that are used for carrying out colourity chroma) encoded.When the context model of 24 expression brightness to the coeff_abs_level_greater1_flag element and 8 expression colourities is encoded, 24 context models are divided into 6 groups and 4 every group, 8 context models are divided into 2 groups and 4 every group, adopt context of following formula to be encoded: ctxIdxInc=(ctxSet*4)+greater1Ctx.Wherein ctxSet is contextual group of number numbering, and when the context model duration that means brightness is 0-5, when the context model duration that means colourity is 0-1, greater1Ctx is for from organizing the contextual parameter of interior selection, is worth for 0-3.
Summary of the invention
Technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, providing a kind of is maintaining under the overall constant condition of code efficiency, reduce the context model number of application, delete redundancy model, save the method for simplifying of the context towards the HEVC parameter coding of system resource.
Technical solution of the present invention is: this method for simplifying of the context towards the HEVC parameter coding, when the context model of 24 expression brightness to the coeff_abs_level_greater1_flag element and 8 expression colourities is encoded, 24 context models are divided into 6 groups and 4 every group, 8 context models are divided into 2 groups and 4 every group, and coding adopts following formula:
(* is multiplication to ctxIdxInc=(ctxSet*3)+(greater1Ctx+1)>>1,>>be displacement to the right), wherein ctxSet is contextual group of number numbering, when the context model duration that means brightness is 0-5, when the context model duration that means colourity is 0-1, greater1Ctx is for from organizing the contextual parameter of interior selection, is worth for 0-3.
Because the context by every group reduces one, 8 groups are reduced by 8 context models altogether altogether, thereby the context model of 32 coeff_abs_level_greater1_flag elements is reduced to 24, therefore reduce the context model number of application, delete redundancy model, the system resource taken in the time of just can saving coding.
Embodiment
This method for simplifying of the context towards the HEVC parameter coding, when the context model of 24 expression brightness to the coeff_abs_level_greater1_flag element and 8 expression colourities is encoded, 24 context models are divided into 6 groups and 4 every group, 8 context models are divided into 2 groups and 4 every group, and coding adopts following formula:
(* is multiplication to ctxIdxInc=(ctxSet*3)+(greater1Ctx+1)>>1,>>be displacement to the right), wherein ctxSet is contextual group of number numbering, when the context model duration that means brightness is 0-5, when the context model duration that means colourity is 0-1, greater1Ctx is for from organizing the contextual parameter of interior selection, is worth for 0-3.
Because the context by every group reduces one, 8 groups are reduced by 8 context models altogether altogether, thereby the context model of 32 coeff_abs_level_greater1_flag elements is reduced to 24, therefore reduce the context model number of application, delete redundancy model, the system resource taken in the time of just can saving coding.
The above; it is only preferred embodiment of the present invention; not the present invention is done to any pro forma restriction, any simple modification, equivalent variations and modification that every foundation technical spirit of the present invention is done above embodiment, all still belong to the protection range of technical solution of the present invention.