 mbTypeILPred. Otherwise, if MbPartPredMode( mb_type, 0) is equal to Intra_4x4, mbType is set equal to I_4x4. Otherwise, if fMbPartPredMode(mb_type,0)isequal to Intra_8x8, mbType is set equal to I_8x8. Otherwise, if MbPartPredMode( mb_type, 0) is equal to Intra_16x16, mbType is set equal to I_16x16. Otherwise, if mb_type is equal to I_PCM, mbType is set equal to I PCM. Otherwise (base_mode_flag is equal to 0 and mb_type specifies a P or B macroblock type), mbType is set equal to mb_type. Depending on mbType and base_mode_flag, the list subMbType is derived as follows: If mbType is not equal to P_8x8, P_8x8ref0, or B_8x8, all elements subMbType[ mbPartIdx ] with mbPartIdx = 0..3 are marked as unspecified. Otherwise, if base_mode_flag is equal to 1, each element subMbType[ mbPartIdx ] with mbPartIdx = 0..3 is set equal to subMbTypeILPred[ mbPartIdx ]. Otherwise (mbType is equal to P_8x8, P_8x8ref0, or B 8x8 and base_mode_flag is equal to 0), each element subMbType[ mbPartIdx ] with mbPartIdx = 0..3 is set equalto sub_mb_type[mbPartIdx] ]. When slice_type is equal to EP, base_mode_flag is equal to 1, and mbType is not equal to I PCM, I_16x16, I_8x8, I_4x4, or I BL, the bitstream shall not contain data that result in any element refIdxILPredL0[ mbPartIdx ] with mbPartIdx =0..3 that is less than 0. When residual_prediction_flag equal to 1 is present in the bitstream, the bitstream shall not contain data that result in mbType being lequaltoI_PCM,I_16x16,I_8x8,I_4x4, or I BL. G.8.1.5.1.2 Derivation process for quantisation parameters and transform type Inputs to this process are: a variable mbType specifying the macroblock type for the current macroblock, a list subMbType with 4 elements specifying the sub-macroblock types for the current macroblock, a one-dimensional array refLayerMbType specifying macroblock types for the macroblocks of the reference layer representation, a one-dimensional array refLayerCTrafo specifying transform types for the macroblocks of the reference layer representation, a one-dimensional array