 weighted sample prediction process as described in clause 8.4.2.3.2 is invoked with the same inputs and outputs as the process described in this clause. For macroblocks or partitions with predFlagL0 or predFlagL1 equal to 1 in B slices, the following applies: If weighted_bipred_idc is equal to 0, the default weighted sample prediction process as described in clause 8.4.2.3.1 is invoked with the same inputs and outputs as the process described in this clause. Otherwise, if weighted_bipred is equal to 1, the explicit weighted sample prediction process as described in clause 8.4.2.3.2 is invoked with the same inputs and outputs as the process described in this clause. Otherwise (weighted_bipred_id is equal to 2), the following applies: If predFlagL0 is equal to 1 and predFlagL1 is equal to 1, the implicit weighted sample prediction process as described in clause 8.4.2.3.2 is invoked with the same inputs and outputs as the process described in this clause. Otherwise (predFlagL0 or predFlagL1 are equal to 1 but not both), the default weighted sample prediction process as described in clause 8.4.2.3.1 is invoked with the same inputs and outputs as the process described in this clause. 8.4.2.3.1 Default weighted sample prediction process Input to this process are the same as specified in clause 8.4.2.3. Output of this process are the same as specified in clause 8.4.2.3. Depending on the available component for which the prediction block is derived, the following applies: If the luma sample prediction values predPartL X, y ] are derived, the following applies with C set equal to L, X set equal to 0..partWidth - 1, and y set equal to 0..partHeight - 1. Otherwise, if the chroma Cb component sample prediction values predPartco[ X, y ] are derived, the following applies with C set equal to Cb, X set equal to artWidthC - 1, and y set equal to 0..partHeightC - 1. Rec. ITU-T H.264 (01/2012) Otherwise (the chroma Cr component sample prediction values predParter[ X, y ] are derived), the following applies with C set equal to Cr,