s not equal to 0 the arrays predPartLXcb and predPartLXcr are derived by invoking the process specified in clause 8.4.2.2 with the current partition specified by mbPartIdx\subMbPartIdx, the motion vectors mvLX, mvCLX (if available), and the reference arrays with refPicLX, refPicLXcb (if available), and refPicLXcr (if available) given as input. For C being replaced by L, Cb (if available), or Cr (if available), the array predParto of the prediction samples of component C is derived by invoking the process specified in clause 8.4.2.3 with the current partition specified by mbPartIdx and subMbPartIdx, the prediction utilization flags predFlagL0 and predFlagL1, the arrays predPartL0c and predPartL1c, and the variables for weighted prediction logWDc, Woc, W1C, Ooc, O1C given as input. 8.4.2.1 Reference picture selection process Input to this process is a reference index refIdxLX. Output of this process is a reference picture consisting of a two-dimensional array of luma samples refPicLX and, when ChromaArrayType is not equal to 0, two two-dimensional arrays of chroma samples refPicLXcb and refPicLXcr. Depending on field_pic_flag, the reference picture list RefPicListX (which has been derived as specified in clause 8.2.4) consists of the following. If field_pic_flag is equal to 1, each entry of RefPicListX is a reference field or a field of a reference frame. Otherwise (field_pic_flag is equal to 0), each entry of RefPicListX is a reference frame or a complementary reference field pair. For the derivation of the reference picture, the following applies: If field_pic_flag is equal to 1, the reference field or field of a reference frame RefPicListX[ refIdxLX ] is the output. The output reference field or field of a reference frame consists of a (PicWidthInSamplesL)x(PicHeightInSamples) array of luma samples refPicLX and, when ChromaArrayType is not equal to 0, two (PicWidthInSamplesc)x(PicHeightInSamplesc)a arrays of chroma samples refPicLXcb and refPicLX. Otherwise (field_pic_flag is equal to 0), the following applies: 