Download presentation
Presentation is loading. Please wait.
1
2015/6/271 Intra-Prediction in H.264(JM82) Student : 林鴻志 Advisor : 杭學鳴 教授
2
2015/6/272 Outline Introduction Intra-Prediction Procedure in H.264 Analysis of Computational Complexity Fast Intra-Prediction Algorithm Result Reference
3
2015/6/273 Introduction Block diagram of Encoder part MB based
4
2015/6/274 Intra Prediction Procedure in H.264(1/6) Three components, Y, U, and V, all use intra-prediction For Y component, two encoding types, Intra4x4 and Intra16x16, are used. For U and V components, only Intra8x8 type is used since they is usually smooth than Y.
5
2015/6/275 Intra Prediction Procedure in H.264(2/6) Y component Intra4x4Intra16x16
6
2015/6/276 Intra Prediction Procedure in H.264(3/6) Intra4x4 Intra16x16
7
2015/6/277 Intra Prediction Procedure in H.264(4/6) UV component –4 prediction modes are very similar to the 16x16 luma prediction modes Intra8x8
8
2015/6/278 Intra Prediction Procedure in H.264(5/6) Intra Prediction Procedure (Y component) –1.Generate a 4×4 predicted block according to a mode I –2.Calculate sum of absolute difference (SAD i ) between the original 4x4 block and the predicted block –3.Compute COST 4x4,i =SAD i +4λ(Q P )R, where λ(Qp) is is an approximately exponential function of the quantization factor Q P, R equals 0 for the most probable mode, and 1 for other modes. –4.Repeat 1 to 3 for all the 9 modes, and choose the one that has the minimum cost. C A B
9
2015/6/279 Intra Prediction Procedure in H.264(6/6) Intra Prediction Procedure (Y component) –5.Generate the predicted MB according to a 16x16 prediction mode –6.For the residue MB, perform Hadamard transform for each 4x4 block –7.Extract all the DC from the 16 4x4 blocks to form another 4x4 block and perform Hadamard transform on it –8.Repeat 5 to 7 for all 4 modes and choose the one with minimum cost as the COST 16x16 –9.If Eqn.(*) is true, the 4x4 intra-prediction will be selected for the current MB, otherwise, the 16x16 intra-prediction is chosen We ignore the procedure of UV since it is similar with Y.
10
2015/6/2710 Analysis of Computational Complexity[1] H.264 video coding is based on the concept of rate distortion optimization (RDO) which means that the encoder has to encode the intra block using all the mode combinations and choose the one that gives the best RDO performance. In an MB, there are 4x(9x16+4)=592 [ M8x(M4x16+M16) ] different RDO calculations before the best RDO mode is determined. We need fast algorithm to speed up !!
11
2015/6/2711 Fast Intra-Prediction Algorithm(1/3)[2] The scaling factor, S, can be implemented by shift operator.
12
2015/6/2712 Fast Intra-Prediction Algorithm(2/3) CaseThe relationship between F v and F h Edge directionCBPMs 1|F v |=|F h |=0No obvious edge2 2|F h |=0 and |F v |>0Vertical edge0,2 3|F v |=0 and |F h |>0Horizontal edge1,2 4|F v |=|F h |>0 and F v /F h >0Diagonal down/left edge3,2 5|F v |=|F h |>0 and F v /F h <0Diagonal down/right edge4,2 6|F v |>|F h |>0Vertical-dominant edge0,5,7,3,4,2 7|F h |=|F v |>0Horizontal-dominant edge1,6,8,3,4,2
13
2015/6/2713 Fast Intra-Prediction Algorithm(3/3) Algorithm Description –1.Calculate F v and F h. The scaling factor S is a function of QP, thus F v and F h could be obtained by additions and shifts –2.Determine CBPMs for the current block according to F v and F h –3.Generate a 4x4 predicted block according to a mode from CBPMs –4.Compute the cost of the mode –5.Repeat 3. and 4. for all the modes in CBPMs, and choose the one with min. cost
14
2015/6/2714 Result(1/5) QpMethodTime (sec)Bit-ratePSNR (dB) 20 FS141.8134663.98K43.14 FMS89.4984840.01K43.03 Improved1.583.77%-0.11 26 FS114.6832481.88K38.90 FMS73.362604.97K38.84 Improved1.564.96%-0.06 30 FS101.9711620.94K36.39 FMS58.8911743.90K36.30 Improved1.737.59%-0.09 Foreman
15
2015/6/2715 Result(2/5) QpMethodTime (sec)Bit-ratePSNR (dB) 20 FS185.959 11217.32K 42.92 FMS131.471 11448.62K 42.77 Improved1.412.06%-0.15 26 FS166.2387558.20K37.43 FMS118.4527743.14K37.32 Improved1.402.45%-0.09 30 FS150.235625.46K33.82 FMS100.695815.57K33.70 Improved1.493.38%-0.08 Mobile
16
2015/6/2716 Result(3/5) QpMethodTime (sec)Bit-ratePSNR (dB) 20 FS160.4267870.49K43.51 FMS110.378049.36K43.4 Improved1.452.27%-0.11 26 FS141.065165.39K38.51 FMS97.1415305.76K38.43 Improved1.452.72%-0.08 30 FS128.0933767.35K35.12 FMS83.1393912.35K35.02 Improved1.543.85%-0.10 Stefan
17
2015/6/2717 Result(4/5) QpMethodTime (sec)Bit-ratePSNR (dB) 20 FS115.0012748.25K45.09 FMS68.7972884.47K44.99 Improved1.674.96%-0.10 26 FS100.5751606.94K41.64 FMS59.7791702.51K41.60 Improved1.685.95%-0.04 30 FS93.8111130.29K39.07 FMS51.4541220.70K39.02 Improved1.828.00%-0.05 Akiyo
18
2015/6/2718 Result(5/5) QpMethodTime (sec)Bit-ratePSNR (dB) 20 FS118.9682775.20K44.67 FMS71.5652931.48K44.55 Improved1.665.63%-0.12 26 FS100.9061502.42K40.86 FMS59.9041601.01K40.79 Improved1.686.56%-0.07 30 FS92.329998.97K38.31 FMS49.7791082.75K38.22 Improved1.858.39%-0.09 Mother and daughter
19
2015/6/2719 Reference [1]FAST INTRA MODE DECISION ALGORITHM FOR H.264/AVC VIDEO CODING, F. Pan, X. Lin, S. Rahardja, K. P. Lim, Z. G. Li, D. Wu, S. Wu [2]Fast 4x4 intra-prediction mode selection for H.264 Zhang Yong-dong; Dai Feng; Lin Shou-xun; Multimedia and Expo, 2004. ICME '04. 2004 IEEE International Conference on Volume 2, 27-30 June 2004 Page(s):1151 - 1154 Vol.2 JVT Reference Software JM82, http://iphome.hhi.de/suehring/tml/download/old_jm/jm82.zip http://iphome.hhi.de/suehring/tml/download/old_jm/jm82.zip
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.