n xB, yB the macroblock type refLayerMbType[ mbAddrRefLayer ], and, when refLayerMbType[mbAddrRefLayer ] is equal to P_8x8, P_8x8ref0, or B 8x8, the list of sub-macroblock types refLayerSubMbType [ mbAddrRefLayer ] as the inputs and the outputs are the reference layer macroblock partition index mbPartIdxRefLayer and the reference layer sub-macroblock partition index subMbPartIdxRefLayer. G.6.3 Derivation process for reference layer sample locations in resampling Inputs to this process are: a variable chromaFlag specifying whether the luma or a chroma component is subject to the resampling process, a sample location ( xP, yP) relative to the upper-left sample of the current macroblock, a variable fieldMbFlag specifying whether the current macroblock is a field or a frame macroblock, a variable botFieldFlag specifying whether a top or a bottom field is subject to the resampling process (when RefLayerFrameMbsOnlyFlag is equal to 0 or frame_mbs_only_flag is equal to 0). Output of this process is a reference layer sample location (RRef16, yRef16), which specifies the following: If RefLayerFrameMbsOnlyFlag is equal to 1 or RefLayerFieldPicFlag is equal to 1, ( xRef16, yRef16) specifies the reference layer sample location in units of 1/16-th sample relative to the upper-left sample of the reference layer picture. Otherwise (RefLayerFrameMbsOnlyFlag is equal to 0 and RefLayerFieldPicFlag is equal to 0), (xRef16, yRef16) specifies the reference layer sample location in units of 1/16-th field sample relative to the upper-left sample of the field specified by botFieldFlag of the reference layer picture. Let currDQId be the current value of DQId and let levelIdc be the 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). The variables subW, subH, shiftX, shiftY, scaleX, scaleY, offsetX, offsetY, addX, addY, deltaX, and deltaY are derived as specified in the following ordered steps: With Z being replaced by L for chromaFlag equal to 0 and C 