Texture Direction Based Optimization for Intra Prediction in HEVC

Zhengcong Wang, Peng Wang, Hongguang Zhang, Hongjun Zhang, Shibao Zheng, Li SongIEICE Trans. Information and Systems 2014

Abstract

This paper introduces a fast encoding algorithm for High Efficiency Video Coding (HEVC) intra prediction that reduces encoding time by approximately 40% with negligible impact on video quality. By analyzing the texture of a Coding Unit (CU) early in the process, the algorithm intelligently decides when to stop splitting blocks and which prediction modes to ignore, significantly pruning the massive search space of the H.265 standard.

Introduction

High Efficiency Video Coding (HEVC), or H.265, was designed to handle the massive data demands of HD and 4K video. It achieves superior compression compared to its predecessor (H.264) by using a flexible "quad-tree" structure. Instead of fixed-size blocks, HEVC uses Coding Units (CUs) that can range from 64x64 down to 8x8 pixels.

However, this flexibility comes at a steep computational cost. To find the optimal way to compress a frame, an encoder traditionally performs a "brute-force" search: it recursively splits CUs into smaller sub-units and tests 35 different intra-prediction modes for each.

The 35 intra-prediction modes defined in the HEVC standard.

This Rate-Distortion Optimization (RDO) process is incredibly time-consuming, making real-time encoding a significant challenge. The authors aim to reduce this complexity by predicting the optimal block size and mode based on the underlying image texture.

Proposed Methodology

The authors propose a two-stage optimization based on Texture Direction, integrating decisions at both the CU and Prediction Unit (PU) levels.

Flowchart of the proposed two-stage optimization at the CU and PU levels.

1. Early CU Termination (CU Level)

The first stage focuses on pruning the quad-tree search. The algorithm employs two main detection mechanisms:

  • Flat Texture Detection: The algorithm calculates the Mean Absolute Difference (MAD) of a block. If the MAD is below a certain threshold, the block is deemed "flat," and the encoder stops splitting it further, saving the time it would have spent checking smaller sub-blocks.
  • Directional Texture Detection: If the block isn't flat, the algorithm applies first-order difference operators in four directions (Vertical, Horizontal, 45°, and 135°). If one direction is significantly dominant, the block is marked as "directional," and further splitting is terminated.

2. Angular Mode Reduction (PU Level)

Standard HEVC checks 35 intra-prediction modes. The authors use the "direction flag" generated in the first stage to narrow this down. If a block is identified as having a specific texture direction (e.g., vertical), the encoder only tests a subset of candidate modes related to that direction, rather than all 35. This drastically reduces the number of RDO calculations required.

Key Insights

The core innovation of this research lies in using Texture as a Proxy for Complexity. The authors recognized that if a block is simple (flat) or has a clear orientation, further sub-dividing it rarely yields enough compression gain to justify the computational cost. By making decisions at the top of the quad-tree, the algorithm avoids the "exponential explosion" of calculations that happens at deeper levels. Furthermore, by reusing the "direction flag" for both block splitting and mode selection, the authors optimized two different parts of the encoding process with a single calculation.

Experimental Results

The algorithm was evaluated using the HEVC Test Model (HM10.0) on standard video sequences ranging from low resolution (e.g., BasketballPass) to high resolution (e.g., Kimono).

  • Speedup: Achieved an average 40.18% reduction in total encoding time. Some high-resolution sequences saw time savings as high as 57.7%.
  • Quality Loss: The impact on quality was negligible, with an average PSNR drop of only 0.066 dB and a slight bitrate increase of 0.95%.
  • Resolution Sensitivity: The method performed better on high-definition (720p/1080p) video than on low-resolution video. This is because HD video contains more large, flat, or consistently textured areas where early termination is most effective.

Conclusion and Future Work

This paper demonstrates that texture-based pruning is a highly effective strategy for accelerating HEVC intra prediction. While the current results are impressive, the authors suggest that implementing dynamic thresholds—adjusting based on the specific characteristics of the encoded area—could further refine the balance between speed and quality. Future research will also explore applying similar logic to inter prediction to reduce overall encoding time even further.

Summary updated

BibTeX
@article{wang2014texture,
  author = {Zhengcong Wang and Peng Wang and Hongguang Zhang and Hongjun Zhang and Shibao Zheng and Li Song},
  title = {{Texture Direction Based Optimization for Intra Prediction in HEVC}},
  journal = {IEICE Trans. Information and Systems},
  year = {2014},
  doi = {10.1587/transinf.e97.d.1390},
}
Figure