Abstract:
A method and apparatus for encoding of video data incorporating loop filtering are disclosed. The method and apparatus according to an embodiment of the present invention determines an initial loop filter level for a frame of the video data according to quality setting of the frame. The information associated with the initial loop filter level is incorporated in the bitstream corresponding to compressed video data. The loop filtering is applied to a macroblock without the need to wait for the whole frame reconstruction to complete. In another embodiment according to the present invention, the initial loop filter level may be refined according to stability associated with the frame. In yet another embodiment according to the present invention, the method may include determining whether segment mode is on or off and determining a frame-level or segment-level initial loop filter level accordingly.