Rec. ITU-T H.264 (01/2012) Otherwise (ctxIdxOffset is equal to 47), compldx is set equal to 1. Let the variable predModeEqualFlagN be specified as follows: If mb_type for the macroblock mbAddrN is equal to B_Direct_16x16 or B_Skip, predModeEqualFlagN is set equal to 0. Otherwise, if the macroblock mbAddrN has mb_type equal to P_8x8 or B_8x8, the following applies: If SubMbPredMode(sub_mb_type[mbPartIdxN]) is not equal to Pred LX and not equal to BiPred, predModeEqualFlagN is set equal to 0, where sub_mb_type specifies the syntax element list for the macroblock mbAddrN. Otherwise, predModeEqualFlagN is set equal to 1. Otherwise, the following applies: If MbPartPredMode( mb_type, mbPartIdxN) is not equal to Pred_LX and not equal to BiPred, predModeEqualFlagN is set equal to 0, where mb_type specifies the syntax element for the macroblock mbAddrN. Otherwise, predModeEqualFlagN is set equal to 1. Let the variable absMvdCompN (with N being either A or B) be derived as follows: If any of the following conditions are true, absMvdCompN is set equal to 0: mbAddrN is not available, the macroblock mbAddrN has mb_type equal to P_Skip or B_Skip, the macroblock mbAddrN is coded in an Intra macroblock prediction mode, predModeEqualFlagN is equal to 0. Otherwise, the following applies: If compIdx is equal to 1, MbaffFrameFlag is equal to 1, the current macroblock is a frame macroblock, and the macroblock mbAddrN is a field macroblock, absMvdCompN = Abs( mvd_IX[ mbPartIdxN ][ subMbPartIdxN ][ compIdx ]) * 2 (9-15) Otherwise, if compIdx is equal to 1, MbaffFrameFlag is equal to 1, the current macroblock is a field macroblock, and the macroblock mbAddrN is a frame macroblock, absMvdCompN=Abs(mvd_IX[mbPartIdxN][subMbPartIdxN ][ compldx ]) / 2 (9-16) Otherwise, absMvdCompN = Abs( mvd_IX[ mbPartIdxN ][ subMbPartIdxN ][ compIdx ]) (9-17) The variable ctxIdxInc is derived as follows: If ( absMvdCompA + absMvdCompB ) is less than 3, ctxIdxInc is set equal to 0. Otherwise, if absMvdCompA + absMvdCompB ) is greater than 32, ctxIdxInc is se