DCT Based Fast INTRA Mode Decision Method for HEVC Coding

Yu Liu, Yichi Zhang, Cheng Fang, Junjuan LiJ. Inf. Hiding Multim. Signal Process 2017

Introduction

The High Efficiency Video Coding (HEVC) standard offers approximately 50% better compression efficiency than its predecessor, H.264/AVC. However, this gain comes with a significant increase in computational complexity. A primary bottleneck in the encoding process is INTRA prediction, where the encoder must choose the best prediction mode from 35 possibilities: 33 directional modes, a DC mode, and a Planar mode.

The 35 INTRA prediction modes in HEVC, including directional, DC, and Planar modes.

In standard reference software, the encoder performs a "Rough Mode Decision" (RMD) followed by a computationally expensive "Rate-Distortion Optimization" (RDO). For high-resolution or real-time video, this exhaustive search is often prohibitively slow. This paper proposes a method to accelerate this process by using frequency-domain information to pre-select likely candidate modes.

Proposed DCT-Based Method

The core innovation of this research is using the Discrete Cosine Transform (DCT) coefficients of a Prediction Block (PB) to estimate its texture direction before the heavy computation of RMD and RDO begins. The process involves four main steps:

  1. Texture Estimation: Horizontal ($E_h$) and vertical ($E_v$) features are calculated by summing the absolute values of specific DCT coefficients.
  2. Angle Calculation: An estimated texture angle ($ heta$) is derived using the arctangent of the ratio between these features.
  3. Refinement with $\delta$: To distinguish between directions that share the same absolute angle (e.g., diagonal up-left vs. down-right), a parameter $\delta$ is derived from low-frequency DCT coefficients.
  4. Mode Mapping: The calculated $\theta$ and $\delta$ are mapped to a specific subset of the 35 HEVC modes using a predefined lookup table.

The algorithm introduces tunable parameters, $m$ and $n$, which determine how many candidate modes are passed to the RMD and RDO stages, respectively. This allows for a flexible trade-off between encoding speed and video quality.

Statistical Insights and Candidate Selection

A critical observation from the authors' statistical analysis is the prevalence of non-directional modes. Across various test sequences, the DC and Planar modes are frequently selected as the optimal prediction modes.

Frequency of DC and Planar modes across different test sequences and PU sizes.

As shown in the data, DC and Planar modes can account for a significant percentage of optimal mode selections—often exceeding 40% in aggregate. Consequently, the proposed algorithm always includes these two modes in the candidate set, regardless of the directionality calculated from the DCT coefficients. This ensures that the most common scenarios are always covered, maintaining high prediction accuracy.

Experimental Results

The proposed method was compared against the HEVC reference software (HM 12.0) using standard test sequences ranging from 240p to 1600p resolutions. The results demonstrate significant efficiency gains:

  • High-Speed Configuration: Achieved an average encoding time reduction of 42.68% with a minimal 2.89% increase in bitrate (BD-Rate).
  • High-Quality Configuration: Reduced encoding time by 24.69% with a negligible 0.92% increase in BD-Rate.

In specific high-motion or complex sequences like BlowingBubbles, the algorithm saved nearly 50% of total encoding time, proving its effectiveness for practical applications.

Conclusion

By leveraging the structural "DNA" found in DCT coefficients, this method effectively prunes the INTRA prediction search space. The approach is highly flexible, making it suitable for both high-end broadcast servers and consumer-grade editing software. Future research will focus on refining the mapping relationships for synthetic content and further optimizing the computational overhead of the DCT calculations themselves.

Summary updated

BibTeX
@article{liu2017dct,
  author = {Yu Liu and Yichi Zhang and Cheng Fang and Junjuan Li},
  title = {{DCT Based Fast INTRA Mode Decision Method for HEVC Coding}},
  journal = {J. Inf. Hiding Multim. Signal Process.},
  year = {2017},
}
Figure