If mbType is equal to I_PCM, cTrafo is set equal to T PCM. Otherwise, if mbType is equal to I_16x16, cTrafo is set equal to T_16x16. Otherwise, if mbType is equal to I_8x8 or transform_size_8x8_flag is equal to 1, cTrafo is set equal to T_8x8. Otherwise, if predTrafoFlag is equal to 1, cTrafo is set equal to refLayerCTrafo[ CurrMbAddr ]. Otherwise (predTrafoFlag is equal to 0, transform_size_8x8_flag is equal to 0, and mbType is not equal to I_PCM, I_16x16,or 1_8x8), cTrafo is set equal to T_4x4. When cTrafo is equal to T_8x8, the SVC sequence parameter set that is referred to by the coded slice NAL unit (via pic parameter_set_id in the slice header and seq_parameter_set_id in referenced the picture parameter set) shall have transform_8x8_mode_flag equal to 1. When base_mode_flag is equal to 1, the following constraints shall be obeyed: a) When mbType is equal to P_8x8, P_8x8ref0, or B8x8 and NumSubMbPart( subMbType[ mbPartIdx ]) is not equal to 1 for any mbPartIdx =0.3, the bitstream shall not contain transform_size_8x8_flagequal to 1. b) When mbType is equal to I_PCM, the bitstream shall not contain data that result in CodedBlockPatternLuma not equal to 0 or CodedBlockPatternChroma not equal to 0. c) When mbType is equal to I 16x16 or I_4x4, the bitstream shall not contain transform_size_8x8_flag equal to 1. d) When mbType is equal to I 8x8 and transform_size_8x8_flag is equal to 0, the bitstream shall not contain data that result in CodedBlockPatternLuma not equal to 0. Rec. ITU-T H.264 (01/2012) The variable constrainedCoeffFlag is derived as follows: If SpatialResolutionChangeFlag is equal to 0 and any of the following conditions are true, constrainedCoeffFlag is set equal to 1: base_mode_flag is equal to 1, tcoeff_level_prediction_flag is equal to 0, and refLayerMbType[ CurrMbAddr is equal to I BL, residual_prediction_flag is equal to 1, CurrMbAddr ] is not equal to I_PCM, I_16x16, I_8x8,I_4x4,orl_BL, and mbType is not equaltoI_PCM,I_16x16,I_8x8,I_4x4,orI_BL Otherwise, constrainedCoeffFlag is set equal to 0