he value of level idc in the SVC sequence parameter set that is referred to in coded slice NAL units with DQId equal to (( currDQId >> 4 ) 4). The variables shiftX, shiftY, scaleX, scaleY, offsetX, and offsetY are derived as specified in the following ordered steps: The variables refW, refH, scaledW, scaledH, offsetX, and offsetY are derived by = RefLayerPicWidthInSamples (G-1) = RefLayerPicHeightInSamples (G-2) scaledW = ScaledRefLayerPicWidthInSamples (G-3) scaledH = ScaledRefLayerPicHeightInSamples (G-4) offsetX = ScaledRefLayerLeftOffset (G-5) offsetY = ScaledRefLayerTopOffset/(1+field_pic_flag) (G-6) 2. The variables shiftX and shiftY are derived by shiftX = ( ( levelIde <= 30) ? 16 : (31 - Ceil( Log2( refW)) (G-7) shiftY = ( ( levelIde <= 30 ) ? 16 : 31 - Ceil( Log2( refH (G-8) 3. The variables scaleX and scaleY are derived by Rec. ITU-T H.264 (01/2012) scaleX = (( refW << shiftX ) + scaledW>>1)) / scaledW (G-9) scaleY = (( refH shiftY ) + ( scaledH >> 1) / scaledH (G-10) NOTE 1 - The variables shiftX, shiftY, scaleX, scaleY, offsetX, and offsetY do not depend on the luma location (xP, yP), the variable fieldMbFlag, or the current macroblock. The reference layer luma location (xRef, yRef) relative to the upper-left sample of the reference layer picture is derived as specified by the following ordered steps: The inverse macroblock scanning process as specified in clause 6.4.1 is invoked with CurrMbAddr as the input and the output is assigned to xM, yM ). For this invocation of the process in clause 6.4.1, the current macroblock is treated as field macroblock when fieldMbFlag is equal to 1, and it is treated as frame macroblock when fieldMbFlag is equal to 0. 2. The luma location (xC, yC ) is derived by xC = xM + x P (G-11) = yM + yP * (1 + fieldMbFlag - field_pic_flag ) (G-12) 3. The reference layer luma location is derived by offsetX ) scaleX (1<<( shiftX - 1)) ) >> shiftX (G-13) yRef = ( yC - offsetY ) * scaleY + shiftY 7-1)) >> shiftY (G-14) 4. The reference layer luma location is modified by xRef = Min( 