 refLayerQPy specifying luma quantisation parameters for the macroblocks of the reference layer representation, an (RefLayerPicSizeInMbs)x(256 + 2 * MbWidthC * MbHeightC) array refLayerTCoeffLevel specifying transform coefficient level values for the macroblocks of the reference layer representation, an RefLayerPicSizeInMbs)x(256+2 * MbWidthC * MbHeightC) array refLayerSTCoeff specifying scaled transform coefficient values for the macroblocks of the reference layer representation. Outputs of this process are: a variable cTrafo specifying the transform type for the current macroblock, Rec. ITU-T H.264 (01/2012) a variable tQPy specifying the luma quantisation parameter for the current macroblock, when ChromaArrayType is not equal to 0, two variables tQPcb and tQPcr specifying the chroma quantisation parameters for the current macroblock. The variable tQPy is derived as follows: If SpatialResolutionChangeFlag is equal to 0, and any of the following conditions are true, tQPy is set equal to refLayerQPy[CurrMbAddr ]: mbType is equal to I_PCM, I_16x16, I_8x8, I_4x4, or I_BL, base_mode_flag is equal to 1, CodedBlockPatternLuma is equal to 0, and CodedBlockPatternChroma is equal to 0, mbType is equal to P_Skip or B_Skip and residual_prediction_flag is equal to 1, mbType is not equal to I_PCM, I_16x16, I_8x8, I_4x4, BL, P_Skip, or B_Skip, residual _prediction_flag is equal to 1, CodedBlockPatternLuma is equal to 0, and CodedBlockPatternChroma is equal to 0. Otherwise, tQPy is set equal to QPy. When ChromaArrayType is not equal to 0, for CX being replaced by Cb and Cr, the variable tQPcx is set equal to the value of QPcx that corresponds to a value of tQPy for QPy as specified in clause 8.5.8. The variable predTrafoFlag is derived as follows: - If SpatialResolutionChangeFlag is equal to 0 and any of the following conditions are true, predTrafoFlag is set equal to 1: base_mode_flag is equal to 1, tcoeff_level_prediction_flag is equal to 0, refLayerMbType[ CurrMbAddr ] is equal to I_BL, and CodedBlockPatternLuma is equal to