lies. For each context variable, the two variables pStateIdx and valMPS are initialised. The two values assigned to pStateIdx and valMPS for the initialisation are derived from SliceQPy, which is derived in Equation 7-29. Given the two table entries (m,n), the initialisation is specified by the following pseudo-code process: preCtxState = Clip3( 1, 126, (m * Clip3(0,51,SliceQPy))>>4)+n) if( preCtxState <= 63) { pStateIdx = 63 - preCtxState valMPS = 0 } else { (G-363) pStateIdx = preCtxState 64 valMPS = 1 In Table G-11, the ctxIdx for which initialisation is needed for each of the slice types EI, EP, and EB are listed. Also listed is the table number that includes the values of m and n needed for the initialisation. For EP and EB slices, the initialisation depends also on the value of the cabac_init_idc syntax element. Note that the syntax element names do not affect the initialisation process. Rec. ITU-T H.264 (01/2012) Table G-11 - Association of ctxIdx and syntax elements for each slice type in the initialisation process Slice type Syntax element Table macroblock_layer_in_scalable_extension() base_mode_flag Table G-12 1024..1026 1024..1026 1024..1026 mb_pred_in_scalable_extension() and motion_prediction_flag_10 Table G-13 sub_mb_pred_in_scalable_extension() motion_prediction_flag_11 Table G-13 mnacroblock_layer_in_scalable_extension() residual_prediction_flag Table G-13 1029..1030 1029..1030 Table G-12 - Values of variables m and n for ctxIdx from 1024 to 1026 Value of cabac_init_ide (EP, EB slices) EI slices ctxIdx Table G-13 - Values of variables m and n for ctxIdx from 1027 to 1030 Value of cabac_init_ido ctxIdx G.9.3.2 Binarization process Input to this process is a request for a syntax element. Output of this process is the binarization of the syntax element, maxBinIdxCtx, ctxIdxOffset, and bypassFlag. Associated with each binarization or binarization part of a syntax element is a specific value of the context index offset (ctxIdxOffset) variable and a specific value of the maxBinIdxCtx variable as given i