A Probability-Based Zero-Block Early Termination Algorithm for QSHVC

Dayong Wang, Xin Lu, Yu Sun, Qianmin Wang, Weisheng Li, Frédéric Dufaux, Ce ZhuIEEE Trans. Broadcast 2023

Introduction

Quality Scalable High-Efficiency Video Coding (QSHVC) is a vital technology for streaming video over heterogeneous networks where bandwidth fluctuates. By encoding a Base Layer (BL) and one or more Enhancement Layers (ELs), QSHVC allows video streams to adapt dynamically to a user's connection quality. However, the computational complexity of QSHVC is significantly higher than standard HEVC because the encoder must exhaustively evaluate multiple coding modes and block depths across different layers. To make QSHVC viable for real-time applications like video conferencing, this paper introduces a method to predict and skip unnecessary calculations.

Methodology

The proposed approach focuses on identifying "zero-blocks"—blocks where residual pixel coefficients become zero after quantization—to terminate the encoding process early. The authors introduce two primary strategies:

1. Probability-Based AZB Early Termination (PBAET)

Standard algorithms often search for All-Zero Blocks (AZBs) using Sum of Absolute Differences (SAD). This paper derives a new AZB condition based on the Sum of Squared Differences (SSD), assuming residuals follow a Laplace distribution. SSD provides a mathematically looser condition than SAD, allowing the encoder to identify more potential AZBs and save more time without the computational weight of more complex transforms like SATD.

2. Probability-Based Partial-Zero Block Early Termination (PBPET)

Because perfect AZBs are rare, the authors also target Partial-Zero Blocks (PZBs). Rather than using the computationally expensive Discrete Cosine Transform (DCT) to find zero coefficients, they utilize the simpler Hadamard Transform (HT). By applying the law of conservation of energy, the algorithm can stop calculating HT coefficients early if the remaining ones are mathematically guaranteed to be zero.

Dynamic Thresholding

A novel aspect of this research is the integration of mode probabilities. The early-termination thresholds are dynamically adjusted based on the statistical likelihood of a specific coding mode being optimal. Highly probable modes receive looser thresholds to maximize speed, while unlikely modes face stricter thresholds to preserve video quality.

Results and Performance

The algorithm was evaluated using standard video sequences (Classes B, C, D, and E) and benchmarked against the SHM 11.0 reference software.

  • Encoding Speedup: The combined algorithm (PBAET + PBPET) reduced encoding time by an average of 79.75% to 79.85%.
  • Video Quality: This massive speedup came with a negligible impact on quality, showing only a 0.31% to 0.34% increase in Bjøntegaard Delta Bit Rate (BDBR).
  • Comparative Analysis: Compared to existing state-of-the-art fast algorithms (such as EMSIP and HAZSQBD), the proposed method saved an additional 7% to 31% in encoding time while maintaining or improving BDBR savings.

Conclusion and Future Work

By combining SSD-based detection and Hadamard-based partial zero-block prediction with dynamic probability thresholds, the authors have created a highly efficient path for real-time QSHVC encoding. Future work will explore extending these probability-based algorithms to other complex standards, including 3D-HEVC, Multiview Video Coding, and Screen Content Coding, as well as optimizing bit allocation schemes to further enhance coding efficiency.

Summary updated

BibTeX
@article{wang2023probability,
  author = {Dayong Wang and Xin Lu and Yu Sun and Qianmin Wang and Weisheng Li and Frédéric Dufaux and Ce Zhu},
  title = {{A Probability-Based Zero-Block Early Termination Algorithm for QSHVC}},
  journal = {IEEE Trans. Broadcast.},
  year = {2023},
  doi = {10.1109/tbc.2023.3262110},
}
Figure