agonal direction using ==(b+h+1)>> (8-258) g=(b+m+1)>> (8-259) p=(h+s+1)>> (8-260) =(m+s+1)>> (8-261) The luma location offset in fractional-sample units ( xFracL, yFracL ) specifies which of the generated luma samples at full-sample and fractional-sample locations is assigned to the predicted luma sample value predPartLXL[ XL, YL ]. This assignment is done according to Table 8-12. The value of predPartLX[ XL, YL ] is the output. Rec. ITU-T H.264 (01/2012) Table 8-12- - Assignment of the luma prediction sample predPartLX1[XL,Ly xFracL 10000111122223333 yFracL 13012301230123 predPartLX XL, LL Gdhnaeipbfjqcgkr 8.4.2.2.2 Chroma sample interpolation process This process is only invoked when ChromaArrayType is equal to 1 or 2. Inputs to this process are: a chroma location in full-sample units xIntc, yIntc), a chroma location offset in fractional-sample units ( xFracc, yFracc), chroma component samples from the selected reference picture refPicLXc. Output of this process is a predicted chroma sample value predPartLXc[ XC, yc ]. In Figure 8-5, the positions labelled with A, B, C, and D represent chroma samples at full-sample locations inside the given two-dimensional array refPicLXc of chroma samples. yFrac xFracc 8-xFracc 8-yFracc H.264(09)_F8-5 Figure 8-5 - Fractional sample position dependent variables in chroma interpolation and surrounding integer position samples A, B, C, and D The variable refPicHeightEffectivec, which is the height of the effective reference picture chroma array, is derived as follows: If MbaffFrameFlag is equal to 0 or mb_field_decoding_flag is equal to 0, refPicHeightEffectivec is set equal to PicHeightInSamplesc- Otherwise (MbaffFrameFlag is equal to 1 and mb_field_decoding_flag is equal to 1), refPicHeightEffective is set equal to PicHeightInSamplesc/ 2. The sample coordinates specified in Equations 8-262 through 8-269 are used for generating the predicted chroma sample value predPartLXc[ XC, yc ]. xAc = Clip3( 0, PicWidthInSamplesc -1,xIntc) (8-262) xBc = Clip3( 0, PicWidthInSamplesc 1, xIn