ange, codILow, and BinCountsInNALunits. Figure 9-7 shows the flowchart for encoding a single decision. In a first step, the variable codIRangeLPS is derived as follows. Given the current value of codIRange, codIRange is mapped to the index qCodIRangeIdx of a quantised value of codIRange by using Equation 9-25. The value of qCodIRangeIdx and the value of pStateIdx associated with ctxIdx are used to determine the value of the variable rangeTabLPS as specified in Table 9-44, which is assigned to codIRangeLPS. The value of codIRange - codIRangeLPS is assigned to codIRange. In a second step, the value of binVal is compared to valMPS associated with ctxIdx. When binVal is different from valMPS, codIRange is added to codILow and codIRange is set equal to the value codIRangeLPS. Given the encoded decision, the state transition is performed as specified in clause 9.3.3.2.1.1. Depending on the current value of codIRange, renormalization is performed as specified in clause 9.3.4.3. Finally, the variable BinCountsInNALunits is incremented by 1. Rec. ITU-T H.264 (01/2012) EncodeDecision(ctxIdx,binVal) qCodIRangeIdx = (codIRange >> 6) & 3 codIRangeLPS = rangeTabLPS[pStateIdx][qCodIRangeIdx] codIRange = codIRange-codIRangeLPS - binVal != valMPS codILow = codILow + codIRange codIRange = codIRangeLPS pStateIdx != 0 valMPS = 1 - valMPS pStateIdx = transIdxLPS[pStateldx] pStateIdx = transIdxMPS[pStateldx] RenormE BinCountsInNALunits = BinCountsInNALunits +1 H.264(09)_F9-7 Figure 9-7 - Flowchart for encoding a decision 9.3.4.3 Renormalization process in the arithmetic encoding engine (informative) This clause does not form an integral part of this Recommendation | International Standard. Inputs to this process are the variables codIRange, codILow, firstBitFlag, and bitsOutstanding. Outputs of this process are zero or more bits written to the RBSP and the updated variables codIRange, codILow, firstBitFlag, and bitsOutstanding. Rec. ITU-T H.264 (01/2012) Renormalization is illustrated in Figure 9-8. RenormE codIRange < 256 codILow < 2