lkIdxN*4+n] (8-72) where the variable n is derived as follows: If N is equal to A, depending on the variable MbaffFrameFlag, the variable luma8x8BlkIdx, the current macroblock, and the macroblock mbAddrN, the following applies: If MbaffFrameFlag is equal to 1, the current macroblock is a frame coded macroblock, the macroblock mbAddrN is a field coded macroblock, and luma8x8BlkIdx is equal to 2, n is set equal to 3. Otherwise (MbaffFrameFlag is equal to 0 or the current macroblock is a field coded macroblock or the macroblock mbAddrN is a frame coded macroblock or luma8x8BlkIdx is not equal to 2), n is set equal to 1. Otherwise (N is equal to B), n is set equal to 2. 4. Finally, given intraMxMPredModeA intraMxMPredModeB, variable Intra8x8PredMode[ luma8x8BlkIdx ] is derived by applying the following procedure. predIntra8x8PredMode = Min( intraMxMPredModeA, intraMxMPredModeB ) if( prev_intra8x8_pred_mode_flag[ luma8x8BlkIdx ]) Intra8x8PredMode[luma8x8BlkIdx ]=predIntra8x8PredMode (8-73) if(rem_intra8x8_pred_mode[luma8x8BlkIdx]< predIntra8x8PredMode) intra8x8PredMode[luma8x8BlkIdx ]=rem_intra8x8_pred_mode[luma8x8BlkIdx ] intra8x8PredMode[luma8x8BlkIdx = =rem_intra8x8_pred_mode[luma8x8BlkIdx] ]+1 8.3.2.2 Intra_8x8 sample prediction This process is invoked for each 8x8 luma block of a macroblock with macroblock prediction mode equal to Intra 8x8 followed by the transform decoding process and picture construction process prior to deblocking for each 8x8 luma block. Inputs to this process are: the index of an 8x8 luma block luma8x8BlkIdx, an PicWidthInSamplesL)x(PicHeightInSamples) array cSL containing constructed luma samples prior to the deblocking filter process of neighbouring macroblocks. Rec. ITU-T H.264 (01/2012) Output of this process are the prediction samples pred8x8L X, y ], with X, y = 0..7, for the 8x8 luma block with index luma8x8BlkIdx. The position of the upper-left sample of an 8x8 luma block with index luma8x8BlkIdx inside the current macroblock is derived by invoking the inverse 8x8 luma block scannin