A Real-Time H.264/AVC Encoder With Complexity-Aware Time Allocation

This paper presents a novel processing time control algorithm for a hardware-based H.264/AVC encoder. The encoder employs three complexity scaling methods partial cost evaluation for fractional motion estimation (FME), block size adjustment for FME, and search range adjustment for integer motion estimation (IME). With these methods, 12 complexity levels are defined to support tradeoffs between the processing time and compression efficiency. A speed control algorithm is proposed to select the complexity level that compresses most efficiently among those that meet the target time budget. The time budget is allocated to each macroblock based on the complexity of the macroblock and on the execution time of other macroblocks in the frame. For main profile compression, an additional complexity scaling method called direction filtering is proposed to select the prediction direction of FME by comparing the costs resulting from forward and backward IMEs. With direction filtering in addition to the three complexity scaling methods for baseline compression, 32 complexity levels are defined for main profile compression. Experimental results show that the speed control algorithm guarantees the processing time to meet the given time budget with negligible quality degradation. Various complexity levels for speed control are also used to speed up the encoding time with a slight degradation in quality and a minor reduction of the compression efficiency.

[1]  Hyuk-Jae Lee,et al.  Computation reduction of H.264/AVC motion estimation by search range adjustment and partial cost evaluation , 2008 .

[2]  Hyuk-Jae Lee,et al.  Early Termination and Pipelining for Hardware Implementation of Fast H.264 Intraprediction Targeting Mobile HD Applications , 2008, EURASIP J. Adv. Signal Process..

[3]  C.-C. Jay Kuo,et al.  Complexity scalable motion estimation for H.264/AVC , 2006, Electronic Imaging.

[4]  Jar-Ferr Yang,et al.  Computation reduction for motion search in low rate video coders , 2002, IEEE Trans. Circuits Syst. Video Technol..

[5]  Wen Gao,et al.  Complexity-Constrained H.264 Video Encoding , 2009, IEEE Transactions on Circuits and Systems for Video Technology.

[6]  Jiang Li,et al.  An effective variable block-size early termination algorithm for H.264 video coding , 2005, IEEE Transactions on Circuits and Systems for Video Technology.

[7]  Wen Gao,et al.  Reusable Architecture and Complexity-Controllable Algorithm for the Integer/Fractional Motion Estimation of H.264 , 2007, IEEE Transactions on Consumer Electronics.

[8]  Liang-Gee Chen,et al.  Algorithm and Architecture Design of Power-Oriented H.264/AVC Baseline Profile Encoder for Portable Devices , 2009, IEEE Transactions on Circuits and Systems for Video Technology.

[9]  C. S. Kannangara,et al.  COMPUTATIONAL CONTROL OF AN H . 264 ENCODER THROUGH LAGRANGIAN COST FUNCTION ESTIMATION , 2005 .

[10]  Yuri V. Ivanov,et al.  Dynamic complexity scaling for real-time H.264/AVC video encoding , 2007, ACM Multimedia.

[11]  Tian-Sheuan Chang,et al.  A Hardware-Efficient H.264/AVC Motion-Estimation Design for High-Definition Video , 2008, IEEE Transactions on Circuits and Systems I: Regular Papers.

[12]  Ishfaq Ahmad,et al.  Power-rate-distortion analysis for wireless video communication under energy constraints , 2005, IEEE Transactions on Circuits and Systems for Video Technology.

[13]  Iain E. Garden Richardson,et al.  Complexity Control of H.264/AVC Based on Mode-Conditional Cost Probability Distributions , 2009, IEEE Transactions on Multimedia.

[14]  Iain E. Garden Richardson,et al.  Computational Complexity Management of a Real-Time H.264/AVC Encoder , 2008, IEEE Transactions on Circuits and Systems for Video Technology.

[15]  Jiang Li,et al.  A framework for fine-granular computational-complexity scalable motion estimation [real-time video coding applications] , 2005, 2005 IEEE International Symposium on Circuits and Systems.

[16]  G. Bjontegaard,et al.  Calculation of Average PSNR Differences between RD-curves , 2001 .

[17]  Ishfaq Ahmad,et al.  Power-rate-distortion analysis for wireless video communication under energy constraint , 2004, IS&T/SPIE Electronic Imaging.

[18]  Liang-Gee Chen,et al.  Analysis and architecture design of an HDTV720p 30 frames/s H.264/AVC encoder , 2006, IEEE Transactions on Circuits and Systems for Video Technology.

[19]  Tian-Sheuan Chang,et al.  A Fast Algorithm and Its VLSI Architecture for Fractional Motion Estimation for H.264/MPEG-4 AVC Video Coding , 2007, IEEE Transactions on Circuits and Systems for Video Technology.

[20]  Maja Bystrom,et al.  Complexity reduction of H.264 using Lagrange optimization methods , 2005 .

[21]  Hyuk-Jae Lee,et al.  An SoC integrating an H.264 encoder with an ISP , 2009, 2009 IEEE International Symposium on Circuits and Systems.

[22]  Kyoung-Rok Cho,et al.  Motion Compensated Frame Rate Up-Conversion Using Extended Bilateral Motion Estimation , 2007, IEEE Transactions on Consumer Electronics.

[23]  Shih-Yu Huang,et al.  Computation-aware scheme for software-based block motion estimation , 2003, IEEE Trans. Circuits Syst. Video Technol..

[24]  Yuxin Liu,et al.  Complexity Control for Real-Time Video Coding , 2007, 2007 IEEE International Conference on Image Processing.

[25]  Pao-Chi Chang,et al.  Complexity control for H.264 video encoding over power-scalable embedded systems , 2009, 2009 IEEE 13th International Symposium on Consumer Electronics.

[26]  Iain E. Garden Richardson,et al.  Low-complexity skip prediction for H.264 through Lagrangian cost estimation , 2006, IEEE Transactions on Circuits and Systems for Video Technology.

[27]  Jill M. Boyce,et al.  Fast mode decision and motion estimation for JVT/H.264 , 2003, Proceedings 2003 International Conference on Image Processing (Cat. No.03CH37429).