entation. The syntax elements and derived upper-case variables that are referred to by the process specified in this clause are the syntax elements and derived upper-case variables for the layer representation with DQId equal to deblockingDQId. Let tempQP be a one-dimensional array with PicSizeInMbs elements. All elements tempQP[ with i (PicSizeInMbs are set equal to tQPy[ i]. When MaxTCoeffLevelPredFlag is equal to 1, the following ordered steps are specified: 1. Let firstMbInSliceGroup and numMbsInSliceGroup be two one-dimensional arrays with (num_slice_groups_minus1 +1) elements. The array elements are derived as specified by the following pseudo code. Rec. ITU-T H.264 (01/2012) for(iGroup =0;iGroup<=num_slice_groups_minus1;iGroup++) = { firstMbInSliceGroup[iGroup] numMbsInSliceGroup[iGrou 1=0 for( i=0; i < PicSizeInMbs;i++) (G-347) if( firstMbInSliceGroup[ MbToSliceGroupMap[i]] ==-1) firstMbInSliceGroup[ MbToSliceGroupMap[i]]= numMbsInSliceGroup[ MbToSliceGroupMap[i]] The variable iGroup proceeds over the values 0..num_slice_groups_minus1. For each value of iGroup, the variable lastMbAddr is set equal to firstMbInSliceGroup[ iGroup ] and the variable mbIdx proceeds over the values 1. .(numMbsInSliceGroup[ iGroup ]-1). For each value of mbIdx, the following ordered steps are specified. The variable mbAddr is derived as specified by the following pseudo-code: mbAddr=lastMbAddr + 1 while( MbToSliceGroupMap[ mbAddr ] I= MbToSliceGroupMap[ lastMbAddr ]) (G-348) mbAddr++ When mbType[ mbAddr] is not equal to I 16x16 and all elements tCoeffLevel[ mbAddr ][ with i 1=0..(255+2*MbWidthC* MbHeightC) are equal to 0, tempQP[mbAddr is set equal tempQP[lastMbAddr]. The variable lastMbAddr is set equal to mbAddr. The macroblock address mbAddr proceeds over the values 0. (PicSizeInMbs - 1), and for each value of mbAddr, the following ordered steps are specified: 1. The variable qpDBy[ mbAddr ] is derived as follows: If mbType[ mbAddr ] is equal to I_PCM, qpDBy[ mbAddr ] is set equal to 0. Otherwise (mbType[ mbAddr] is not equa