ediction_flag_10[mbPartIdx]) ref_idx_10[ mbPartldx te(v) | ae(v) for( mbPartIdx=0;mbPartIdx<NumMbPart(mb_type); mbPartIdx++) = if( (num_ref_idx_l1_active_minus1>0 mb_field_decoding_flag ! != field_pic_flag && MbPartPredMode(mb_type,mbPartIdx)!=Pred_L0 && !motion_prediction_flag_11[mbPartIdx]) ref_idx_l1[mbPartIdx] te(v) | ae(v) for( mbPartIdx = 0; mbPartIdx < NumMbPart( mb_type); mbPartIdx++) if( MbPartPredMode (mb_type, mbPartIdx) != Pred_L1) for( compIdx = 0; compIdx <2; compIdx++) se(v) | ae(v) for( mbPartIdx =0; mbPartIdx < NumMbParte mb_type); mbPartIdx++ ) if( MbPartPredMode( mb_type, mbPartIdx) != Pred_L0) for( compIdx compldx < 2; compldx++) se(v) ae(v) Rec. ITU-T H.264 (01/2012) G.7.3.6.2 Sub-macroblock prediction in scalable extension syntax sub_mb_pred_in_scalable_extension(mb_type){ Descriptor for( mbPartIdx = 0; mbPartIdx < 4; mbPartIdx++ ) sub_mb_type| mbPartIdx ue(v) | ae(v) if( (InCropWindow(CurrMbAddr) && adaptive motion prediction flag ) { for( mbPartIdx=0;mbPartIdx< 4; mbPartIdx++) if( (SubMbPredMode(sub_mb_type[mbPartIdx]) != Direct && SubMbPredMode(sub_mb_type[mbPartIdx]) ! Pred L1) motion_prediction_flag_10[mbPartIdx] u(1) | ae(v) for( mbPartIdx =0; mbPartIdx < 4; mbPartIdx++ ) if( (SubMbPredMode(sub_mb_type[mbPartIdx]) != Direct && SubMbPredMode(sub_mb_type[mbPartIdx])!= Pred L0) motion_prediction_flag_l1[mbPartIdx u(1) | ae(v) for( mbPartIdx = 0; mbPartIdx <4; mbPartIdx++ if( (num_ref_idx_10_active_minus1>01 mb_field_decoding_flag!= field_pic_flag) && mb_type!=P_8x8ref0 && sub_mb_type[mbPartIdx]!=B_Direct_8x8 && SubMbPredMode(sub_mb_type[mbPartIdx]) != Pred_L1 && !motion prediction flag_10[ mbPartIdx ref_idx_10[ mbPartldx te(v)|ae(v) for( mbPartIdx=0;mbPartIdx<4; if( ((num_ref_idx_l1_active_minus1>1 mb_field_decoding_flag != field pic_flag) && sub_mb_type[mbPartIdx]!=B_Direct_8x8 && SubMbPredMode(sub_mb_type[mbPartIdx]) != Pred L0 && !motion prediction 11[ mbPartIdx ref_idx_11[ mbPartIdx te(v) ae(v) for( mbPartIdx =0;mbPartIdx<4;mbPartIdx++) if( sub_mb_type[ mbPartIdx B Direct 8x8 && SubMb