Patent ID: 8494062

Claim:
A deblocking filtering apparatus for video compression, for filtering a boundary blocking effect between blocks of a picture that uses macroblock adaptive frame-field (MBAFF) format, data in each vertical or horizontal edge of every two adjacent blocks is composed of pixel data of a previous segment and pixel data of a posterior segment, said apparatus comprising: an adaptive queue, for storing filtered pixels of previous-segments of vertical edges, converting pixels in frame format to field format, and storing non-filtered pixels of posterior-segments of horizontal edges; a first swap buffer, for storing non-filtered pixels of a left-neighboring macroblock pair, converting pixels in frame format to field format, storing non-filtered previous-segment pixels of vertical edges, storing filtered posterior-segment pixels of vertical edges, and converting pixels in field format to frame format after performing all vertical deblocking filtering processes; a second swap buffer, for storing non-filtered pixels of a top-neighboring macroblock pair, converting pixels in frame format to field format, storing non-filtered previous-segments pixels of horizontal edges, storing full-segment filtered pixels of horizontal edges, converting pixels in field format to frame format after performing a first horizontal deblocking filtering process, and outputting a portion of filtered pixels to said first swap buffer after performing all horizontal deblocking filtering processes; a first filter, for inputting a first previous-segment pixel data pre-stored in said first swap buffer, inputting non-filtered pixels of a current macroblock (MB) as a first posterior-segment pixel data, after performing a vertical deblocking filtering process, outputting a previous-segment filtered pixel data to said adaptive queue and outputting a posterior-segment filtered pixel data for restoring in said first swap buffer; and a second filter, for inputting a second previous-segment pixel data pre-stored in said second swap buffer, using output data from said adaptive queue as a second posterior-segment pixel data, after performing a horizontal deblocking filtering process, storing a full-segment filtered pixel data already outputted back to said second swap buffer.