ny slice of the layer representation with DQId equal to baseDQId. 3. Let refLayerLumaLogWD, aRefLayerLumaWeightLX[], and aRefLayerLumaOffsetLX[] be variables that are set equal to the values of the syntax elements luma_log2_weight_denom, luma_weight_IX[], and luma_offset_lX[], respectively, of baseSlice. When ChromaArrayType is not equal to 0, let refLayerChromaLogWD, aRefLayerChromaWeightLX[][] and aRefLayerChromaOffsetLX[][ be variables that are set equal to the values of the syntax elements chroma_log2_weight_denon chroma_weight_IX[], and chroma_offset_IX[], respectively, of baseSlice. 5. The variable refIdxLXWP is derived as follows: If MbaffFrame is equal to 1 and fieldMbFlag is equal to 1, refIdxLXWP = refldxLX 1 (G-112) Otherwise (MbaffFrameFlag is equal to 0 or fieldMbFlag is equal to 0), refldxLXWP=refldxLX (G-113) 6. The variables logWDL, WXL, OXL are derived by: logWDL = refLayerLumaLogWD (G-114) = aRefLayerLumaWeightLX[ refIdxLXWP ] (G-115) = aRefLayerLumaOffsetLX[refldxLXWP ] * ( BitDepthy -8)) (G-116) 7. When ChromaArrayType is not equal to 0, the variables logWDc, Wxc, Oxc (with C being replaced by Cb and Cr and iCbCr =0 for Cb and iCbCr = 1 for Cr) are derived by: logWDc = refLayerChromaLogWD (G-117) = aRefLayerChromaWeightLX[r refIdxLXWP ][ iCbCr (G-118) = aRefLayerChromaOffsetLX[refldxLXWP ][ iCbCr *(1<< BitDepthc-8)) (G-119) 8. When predFlagL0 and predFlagL1 are equal to 1, the following constraint shall be obeyed for C equal to L and, when ChromaArrayType is not equal to 0, Cb and Cr = 7) 127 : 128) (G-120) G.8.4.2.2 Intra-inter prediction combination process Inputs to this process are: a variable fieldMbFlag specifying whether the current macroblock is a field or a frame macroblock, a one-dimensional array refLayerFieldMbFlag with RefLayerPicSizeInMbs elements specifying which macroblocks of the reference layer representation are field macroblocks and which macroblocks are frame macroblocks, a one-dimensional array refLayerMbType with RefLayerPicSizeInMbs elements specifying macroblock types 