DOI QR코드

DOI QR Code

Hardware Design of Rate Control for H.264/AVC Real-Time Video Encoding

실시간 영상 부호화를 위한 H.264/AVC의 비트율 제어 하드웨어 설계

  • Kim, Changho (Dept. of Information and Communication Engineering, Hanbat National University) ;
  • Ryoo, Kwangki (Dept. of Information and Communication Engineering, Hanbat National University)
  • 김창호 (한밭대학교 정보통신공학과) ;
  • 류광기 (한밭대학교 정보통신공학과)
  • Received : 2012.01.18
  • Published : 2012.12.25

Abstract

In this paper, the hardware design of rate control for real-time video encoded is proposed. In the proposed method, a quadratic rate distortion model with high-computational complexity is not used when quantization parameter values are being decided. Instead, for low-computational complexity, average complexity weight values of frames are used to calculate QP. For high speed and low computational prediction, the MAD is predicted based on the coded basic unit, using spacial and temporal correlation in sequences. The rate control is designed with the hardware for fast QP decision. In the proposed method, a quadratic rate distortion model with high-computational complexity is not used when quantization parameter values are being decided. Instead, for low-computational complexity, average complexity weight values of frames are used to calculate QP. In addition, the rate control is designed with the hardware for fast QP decision. The execution cycle and gate count of the proposed architecture were reduced about 65% and 85% respectively compared with those of previous architecture. The proposed RC was implemented using Verilog HDL and synthesized with UMC $0.18{\mu}m$ standard cell library. The synthesis result shows that the gate count of the architecture is about 19.1k with 108MHz clock frequency.

본 논문에서는 실시간 동영상 부호화를 위한 효과적인 비트율 제어 방법을 제안하고 하드웨어로 구현한다. 제안하는 비트율 제어는 각 기본유닛 마다 R-D 파라미터 갱신에 의해 많은 연산 처리를 필요로 하는 이차원 R-D 모델을 사용하지 않고, 프레임의 평균 복잡도 가중치를 이용한 Qstep 결정 모델을 사용함으로써 연산량을 감소시킨다. 또한 적은 연산량과 빠른 MAD 예측을 위해 부호화된 기본유닛을 기반으로 영상의 공간적 및 시간적 상관관계를 이용하여 MAD를 예측한다. 제안하는 비트율 제어는 프레임 레벨 MAD 예측과 매크로블록 레벨 MAD 예측, GOP 비트 할당, 프레임 비트 할당, 가상버퍼, Qstep 결정 모델, 비트율 제어 파라미터 갱신, QP 결정 모듈을 포함하며 총 8개의 모듈로 구성된다. 비트율 제어 하드웨어는 Verilog-HDL을 이용하여 설계하였으며, Synopsys사의 Design Compiler를 이용하여 UMC 공정 $0.18{\mu}m$ 셀 라이브러리로 합성한 결과, 최대 동작 주파수는 108 MHz이고, 게이트 수는 19.1k이다. 실험 결과로부터 제안한 구조는 기존 구조 보다 게이트 수가 85% 감소하였고, 매크로블럭 당 QP를 결정하는데 평균 220 사이클 수가 소요되어 기존 구조보다 64% 단축됨을 확인하였다.

Keywords

References

  1. 박기현, 이론과 실무의 조화 코덱의 세계로의 초대, 홍릉과학출판사, 2007년.
  2. 손남례, 장면전환에 효율적인 H.264/AVC 비트율 제어 기법, 대한전자공학회, 제44권, 제1호, pp. 26-39, Jan. 2007.
  3. 오효성, H.264/AVC 알고리즘 이해와 프로그램 분석, 두양사, 2009년.
  4. T. Chiang, and Y. Q. Zhang, A new rate control scheme using quadratic rate distortion model, IEEE Trans. Circuits Syst. Video Tech,. vol. 7, pp. 246-250, Feb. 1997. https://doi.org/10.1109/76.554439
  5. 정진우, 실시간 부호화를 위한 모델 파라미터 기반 일정 화질 비트율 제어 기법, 대한전자공학회, 제45권, 제3호, pp. 93-102, May. 2008.
  6. Adaptive Basic unit Layer Rate Control for JVT, document JVT-G012.doc, Joint Video Team(JVT) of ISO/IEC MPEG and ITU-T VCEG, Pattaya, Thailand, Mar. 2003.
  7. Text Description of Joint Model Reference Encoding Methods and Decoding Concealment Methods, JVT-GO079.doc, Joint Video Team(JVT) of ISO/IECMPEG and ITU-TVCEG Busan, Korea, Apr. 2005.
  8. C. H. Kuo, Hardware/Software Codesign of a Low-Cost Rate Control Scheme for H.264/AVC, IEEE Trans. Circuits Syst. Video Technol., vol. 20, pp. 250-261, Feb. 2010. https://doi.org/10.1109/TCSVT.2009.2031518
  9. Joint Video Team Reference Software JM 13.0.
  10. J. W. Gu A high quality hardwired rate controller for H.264/AVC real-time video encoding, MS thesis, Nat. Tsing Hua Univ., Hsinchu, Taiwan, Jul. 2007.