You are on page 1of 17

DEBLOCKING FILTER

Present: Pham Ngoc Giao


Professor: Kim - Jong Nam

Contents

1 2

Position of deblocking filter in H.264? Why H.264 use deblocking filter? Function and operation of deblocking filter Reference

3
4

Position of deblocking filter


Encoder H.264
Video Input + Transform & Quantization Entropy Coding Bitstream Output

Inverse Quantization & Inverse Transform + Intra/Inter Mode Decision +

Using Inter mode


Intra Prediction

Motion Compensation

Picture Buffering Motion Estimation

Deblocking Filter

Position of deblocking filter


Decoder H.264
Bitstream Input Entropy Decoding Inverse Quantization & Inverse Transform

+
Deblocking Filter

Video Output

Intra/Inter Mode Selection

Picture Buffering

Intra Prediction

Motion Compensation

Why H.264 use deblocking filter


After inverse quantization and inverse transform, macroblocks have blocking

distortion and blocking artifacts. Thus, frame image is used for motion estimation
and motion compensation in inter mode, has noise and errors => using blocking filter to reduce noise, smooth blocks and improve frame.
Bitstream Input + + Video Output

Entropy Decoding

Inverse Quantization & Inverse Transform

Deblocking Filter

Intra/Inter Mode Selection

Picture Buffering

Noise, distortion and artifacts

Intra Prediction Motion Compensation

Function of deblocking filter


Deblocking filter:

Improve quality of decoded picture

Reduce blocking distortion

functions

Reduce blocking artifacts

Smooth block edges

Operation of deblocking filter


Filtering is applied to horizontal or vertical edges of 4 x 4 blocks in a macroblock, adaptively on the several levels: slice, blockedge, sample

16*16 Macroblock

16*16 Macroblock

Horizontal edges (luma) Horizontal edges (chroma)

Vertical edges (luma)

Vertical edges (chroma)

Operation of deblocking filter


Each filtering operation affects up to three samples on either side of the boundary. The strength of the filter (the amount of filtering) depends on the current quantiser, the coding modes of neighbouring blocks and the gradient of image samples across the boundary

Operation of deblocking filter


Determine Boundary strengths: H264/MPEG4 has a set of four boundary strengths

Operation of deblocking filter

Decision Filter: + A group of samples from the set (p2, p1, p0, q0, q1, q2) is filtered only if: (a) BS > 0 and (b) |p0q0| < and |p1p0| <and |q1q0| . and are thresholds defined in the standard; they

increase with the average quantiser parameter QP of


the two blocks p and q

Operation of deblocking filter


Determine valid edge: In a given MB an edge is selected for de-blocking if : the slice to which the current MB belongs is enabled for de-blocking

the

corresponding

neighboring

block

is

available For the horizontal edge of a field mode block in a

frame, both the lines 0 and 1 of the block are selected


for de-blocking if the top-right macro-block pair is a field MB

Operation of deblocking filter


Data flow for de-blocking process

Da

Operation of deblocking filter


Algorithm for data flow

Da

Operation of deblocking filter

Operation of deblocking filter

Operation of deblocking filter


[1] ITU-T Recommendation, H.264 Advanced Video Coding for Generic Audiovisual Services, 03/2005 [2] ITU-T Recommendation, H.264.1 Conformance Specification for H.264 Advanced Video Coding, 03/2005

[3] Iain E. G. Rechardson, H.264 and MPEG-4 Video Compression, John Wiley and Sons, 2003
[4] Wu Di, Gao Wen, Hu Mingzeng, Ji Zhenzhou, An Exp-Golomb Encoder and Decoder Architecture for JVT/AVS, IEEE, 2003 [5] Overview of the H.264/AVC Video Coding Standard Thomas Wiegand, Gary J. Sullivan, Senior Member, IEEE,

You might also like