mbAddrRefLayer and (xB, yB ). Otherwise (fieldMbFlag is equal to refLayerFieldMbRef[ virtMbAddrRefLayer ]), mbAddrRefLayer and ( xB, yB are derived by mbAddrRefLayer = ((virtMbAddrRefLayer>>fieldMbFlag)<<fieldMbFlag) (CurrMbAddr%2) * fieldMbFlag (G-20) (G-21) yB=(yRef%(16<<fieldMbFlag))>> fieldMbFlag (G-22) G.6.1.1 Field-to-frame reference layer macroblock conversion process Inputs to this process are: a virtual reference layer macroblock address virtMbAddrRefLayer, a reference layer luma location ( xRef, yRef) relative to the upper-left luma sample of the reference layer picture, a one-dimensional array refLayerMbType with RefLayerPicSizeInMbs elements specifying macroblock types for the macroblocks of the reference layer representation. Outputs of this process are: the macroblock address mbAddrRefLayer of the reference layer macroblock, a luma location ( xB, yB ) relative to the upper-left luma sample of the reference layer macroblock. The macroblock addresses mbAddrRefLayerTop and mbAddrRefLayerBot are derived by mbAddrRefLayerTop = virtMbAddrRefLayer - virtMbAddrRefLayer % 2) (G-23) mbAddrRefLayerBot = mbAddrRefLayerTop + 1 (G-24) The reference layer macroblock address mbAddrRefLayer is derived as follows: If refLayerMbType[ mbAddrRefLayerTop ] is equal to I_PCM, I_16x16, I_8x8, I_4x4, or I_BL, mbAddrRefLayer is set equal to mbAddrRefLayerBot. Otherwise (refLayerMbType[ mbAddrRefLayerTop ] is not equal to I_PCM, I_16x16, I_8x8, I_4x4, or I_BL), mbAddrRefLayer is set equal to mbAddrRefLayerTop. The luma location (xB, yB) is derived by = xRef % 16 (G-25) B=8*((yRef/16)%2)+4*((yRef% 16)/8) (G-26) G.6.1.2 Frame-to-field reference layer macroblock conversion process Inputs to this process are: a virtual reference layer macroblock address virtMbAddrRefLayer, a virtual reference layer luma location ( xRef, yRef) relative to the upper-left luma sample of the reference layer picture. Outputs of this process are: the macroblock address mbAddrRefLayer of the reference layer macroblock, a luma location ( xB, yB ) relativ