scaledW, scaledH, refLayerW, and refLayerH are derived by: scaledW = ScaledRefLayerPicWidthInSamples (G-226) scaledH = ScaledRefLayerPicHeightInSamples * + field_pic_flag) (G-227) refLayerW = RefLayerPicWidthInSamples (G-228) refLayerH = RefLayerPicHeightInSamples + RefLayerFieldPicFlag (G-229) 5. The variables dOX, dOY, dSW, and dSH are derived as follows: If CroppingChangeFlag is equal to 0 or the reference picture refPicListX[tempRefldxPredLX[x,y]] is not available, dOX, dOY, dSW, and dSH are set equal to 0. Otherwise (CroppingChangeFlag is equal to 1 and the reference picture refPicListX[tempRefldxPredLX| X, y]] is available), the variables refPicScaledRefLayerLeftOffset, refPicScaledRefLayerRightOffset, refPicScaledRefLayerTopOffset, refPicScaledRefLayerBottomOffset are set equal to the variables ScaledRefLayerLeftOffset, ScaledRefLayerRightOffset, ScaledRefLayerTopOffset, and ScaledRefLayerBottomOffset, respectively, that are associated with the layer representation of the reference picture refPicListX[ tempRefIdxPredLX X, y ]] that has the same value of DQId as the current layer representation, and the variables dOX, dOY, dSW, and dSH are derived by: dOX = ScaledRefLayerLeftOffset - refPicScaledRefLayerLeftOffset (G-230) dOY = ScaledRefLayerTopOffset refPicScaledRefLayerTopOffset (G-231) dSW = ScaledRefLayerRightOffset refPicScaledRefLayerRightOffset + dOX (G-232) dSH = ScaledRefLayerBottomOffset - refPicScaledRefLayerBottomOffset + dOY (G-233) 6. The variables scaleX and scaleY are derived by: scaleX = (( ( scaledW + dSW <<16) + refLayerW>>1)) / refLayerW (G-234) scaleY = ((( scaledH + dSH <<16) + refLayerH >>1) / refLayerH (G-235) 7. The motion vector aMv is scaled by: aMv[0]=(aMv[0]*scaleX + 32768) 16 (G-236) aMv[1]=(aMv[1]*scaleY + 32768) >> 16 (G-237) When CroppingChangeFlag is equal to 1, the motion vector aMv is modified by applying 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 a luma locati