EdgeFlag is derived as follows: If any of the following conditions are true, the variable filterLeftLumaMbEdgeFlag is set equal to 0: - MbaffFrameFlag is equal to 0 and CurrMbAddr % PicWidthInMbs is equal to 0, MbaffFrameFlag is equal to 1 and ( CurrMbAddr >>1)% PicWidthInMbs is equal to 0, disableDeblockingFilterIdc is equal to 1, disableDeblockingFilterIdc is equal to 2 or 5 and Idc[mbAddrA is different than sliceIdc[ CurrMbAddr ], disableDeblockingFilterIdc is equal to 3 or 6, sliceBoundariesOnlyFlag is equal to 0, and sliceIdc[ mbAddrA is different than sliceIde[ CurrMbAddr ], disableDeblockingFilterIdo is equal to 3 or 6, sliceBoundariesOnlyFlag is equal to 1, and sliceIdc[ mbAddrA ] is equal to sliceIdc[ CurrMbAddr ], interLayerDeblockingFlag is equal to 1 and mbType[ CurrMbAddr ] specifies an Inter macroblock prediction mode. Otherwise, the variable filterLeftLumaMbEdgeFlag is set equal to 1. The variable filterTopLumaMbEdgeFlag is derived as follows: If any of the following conditions are true, the variable filterTopLumaMbEdgeFlag is set equal to 0: MbaffFrameFlag is equal to 0 and CurrMbAddr is less than PicWidthInMbs, MbaffFrameFlag is equal to 1, CurrMbAddr >> 1) is less than PicWidthInMbs, and fieldMbFlag[ CurrMbAddr ] is equal to 1, MbaffFrameFlag is equal to 1, ( CurrMbAddr >>1) is less than PicWidthInMbs, fieldMbFlag[ CurrMbAddr is equal to 0, and CurrMbAddr % 2 is equal to 0, disableDeblockingFilterIdc is equal to 1, disableDeblockingFilterIdc is equal to 2 or 5 and sliceIdc[ mbAddrB ] is different than sliceIdc[ CurrMbAddr] ], disableDeblockingFilterIdc is equal to 3 or 6, sliceBoundariesOnlyFlag is equal to 0, and sliceIdc[ mbAddrB ] is different than sliceIdc[ CurrMbAddr ], disableDeblockingFilterIdc is equal to 3 or 6, sliceBoundariesOnlyFlag is equal to 1, and sliceIdc[ mbAddrB ] is equal to sliceIdc[ CurrMbAddr ], interLayerDeblockingFlag is equal to 1 and mbType[ CurrMbAddr ] specifies an Inter macroblock prediction mode. Otherwise, the variable filterTopLumaMbEdgeFlag is set equal to 1. Th