
PRELIMINARY
S3C6400X RISC MICROPROCESSOR
MULTI-FORMAT VIDEO CODEC
21-40
Preliminary product information describe products that are in development,
for which full characterization data and associated errata are not yet available.
Specifications and information herein are subject to change without notice.
H.264 Deblocking filter
A filtering shall be applied to all 4x4 block edges of a picture, except edges at the boundary of the picture. The
filtering is performed on a macroblock basis and processed in order of increasing macroblock addresses. For
each macroblock, vertical edges are filtered first, from left to right, and then horizontal edges are filtered from top
to bottom. Sample values modified during filtering of vertical edges are used as input for the filtering of the
horizontal edges for the same macroblock.
The filter adjusts its strength depending upon compression mode of a macroblock (Intra or Inter), the
quantization parameter, motion vector and pixel values. Parameters for filtering operation such as boundary
strength, indexA, indexB are set by the BIT processor.
The Figure 21.31 highlights the valid data output in H.264 mode.
MB (0,N-1)
MB (0,P-1)
MB (N,M-1)
valid output
valid output
valid output
valid output
valid output
MB (0,0)
MB (0,N)
MB (0,P)
MB (N,0)
MB (N-1,0)
MB (N,M)
MB (N-1,M)
MB (N-1,M-1)
MB (N,P-1)
valid output
MB (N,P)
MB (N-1,P)
MB (N-1,P-1)
valid output
MB (Q,0)
MB (Q-1,0)
MB (Q,M-1)
valid output
MB (Q,M)
MB (Q-1,M)
MB (Q-1,M-1)
MB (Q,P-1)
valid output
MB (Q,P)
MB (Q-1,P)
MB (Q-1,P-1)
first MB
row
middle
MB row
last MB
row
first
M
B
col
middle
MB col
last M
B
col
P : total number of macroblock X axis
Q : total number of macroblock Y axis
Figure 21.31 valid output data of deblocking filter in H.264 mode