tc 1) (8-263) xCc = Clip3( 0, PicWidthInSamplesc- 1, xIntc) (8-264) xDc = Clip3( 0, PicWidthInSamplesc- 1, xIntc + 1) (8-265) yAc = Clip3( 0, refPicHeightEffectivec 1, , yIntc ) (8-266) yBc = Clip3( 0, refPicHeightEffectivec 1, yIntc ) (8-267) yCc = Clip3( 0, refPicHeightEffectivec 1, yIntc 1) (8-268) yDc = Clip3( 0, refPicHeightEffectivec 1, yIntc +1) (8-269) Rec. ITU-T H.264 (01/2012) Given the chroma samples A, B, C, and D at full-sample locations specified in Equations 8-262 through 8-269, the predicted chroma sample value predPartLXc[ XC, yc ] is derived as: (8-xFracc)*yFracc*C xFracc 32) >> 6 (8-270) 8.4.2.3 Weighted sample prediction process Inputs to this process are: mbPartIdx: the current partition given by the partition index, subMbPartIdx: the sub-macroblock partition index, predFlagL0 and predFlagL1: prediction list utilization flags, predPartLX: a (partWidth)x(partHeight) array of prediction luma samples (with LX being replaced by L0 or L1 depending on predFlagL0 and predFlagL1), when ChromaArrayType is not equal to 0, predPartLXcb and predPartLXcr: (partWidthC)x(partHeightC) arrays of prediction chroma samples, one for each of the chroma components Cb and Cr (with LX being replaced by L0 or L1 depending on predFlagL0 and predFlagL1), variables for weighted prediction logWDc, Woc, W1C, Ooc, 01C with C being replaced by L and, when ChromaArrayType is not equal to 0, Cb and Cr. Outputs of this process are: predPart : a (partWidth)x(partHeight) array of prediction luma samples, when ChromaArrayType is not equal to 0, predPartcb, and predPartcr: (partWidthC)x(partHeightC) arrays of prediction chroma samples, one for each of the chroma components Cb and Cr. For macroblocks or partitions with predFlagL0 equal to 1 in P and SP slices, the following applies: If weighted_pred_flag 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 (weighted_pr is equal to 1), the explicit