Abstract
Although wavefront parallel processing (WPP) proposed in the HEVC standard and various inter frame WPP algorithms can achieved comparatively high parallelism, their scalability for its parallelism is still very limited due to various dependencies introduced in spatial and temporal prediction in HEVC. In this paper, through pixel correlation analysis, establishment of CTU node model, multi-core resource allocation strategy, we proposed an intra/inter-frame joint WPP coding algorithm for multi-core platform which can significantly improve the parallelism, while achieved good results in bit rate, PSNR, and acceleration ratio. Experiments on standard HD test sequence show that the proposed algorithm can lead to up to 2x, 1.3x speed up compared with the original WPP and IWF parallelism.
Introduction
The High Efficiency Video Coding (HEVC/H.265) standard provides a significant leap in compression efficiency—approximately 50% better than its predecessor, H.264—but at the cost of vastly increased computational complexity. To address this, HEVC introduced Wavefront Parallel Processing (WPP), which allows multiple rows of a video frame to be processed in parallel. However, standard WPP faces scalability bottlenecks due to spatial and temporal dependencies. Spatial dependencies require a row to wait for the row above it to process at least two blocks, while temporal dependencies typically require a reference frame to be fully encoded before the next frame begins. These constraints lead to idle processor cores during the "ramp-up" and "ramp-down" phases of frame processing, limiting overall system throughput.
Proposed Methodology
The proposed algorithm introduces a joint intra/inter-frame WPP approach to maximize multicore utilization by breaking down traditional frame-level barriers.
CTU Node Modeling and Iterative Layers
To identify parallel opportunities, Coding Tree Units (CTUs) are modeled as a directed graph of parent-child nodes. This model maps out the dependencies between blocks across different rows and frames. By analyzing this graph, the system identifies "iterative layers"—sets of blocks that have no mutual dependencies and can be processed simultaneously.
Optimized Inter-frame Dependencies
Instead of the traditional approach where a frame waits for its entire reference frame to complete, this method uses a mathematical model to determine the minimum required area in the reference frame for motion estimation. As soon as these specific blocks are coded, the next frame can begin processing its corresponding CTUs immediately. This "gap-filling" strategy allows the wavefronts of consecutive frames to overlap, maintaining a steadier workload for the processor.
Two-Level Priority Task Queue
A management system coordinates work using a two-level queue: Frame-level Tasks (FT) and CTU-line level Tasks (CT). This ensures that as soon as a core completes a row, it immediately fetches the next available row from the queue—potentially from a subsequent frame—minimizing idle time and maintaining high CPU utilization throughout the encoding process.
Experimental Results
The algorithm was implemented and tested on the TILE-Gx36 many-core platform using standard HD test sequences such as Traffic (1600p), BasketballDrive (1080p), and Fourpeople (720p).
The "Joint WPP" algorithm demonstrated significant performance gains:
- Speedup: The method achieved up to a 2x speedup over standard WPP and a 1.3x speedup over Inter-frame Wavefront (IFW) parallelism.
- Scalability: On the 36-core testbed, the parallelism ratio for the Traffic sequence reached 9.22, compared to only 3.56 with standard WPP.
- Efficiency: While standard WPP hits a performance ceiling quickly as more threads are added, the Joint WPP continues to scale effectively, utilizing the many-core architecture more fully.
- Quality Preservation: Despite the increased parallelism, the Peak Signal-to-Noise Ratio (PSNR) and bit rate remained nearly identical to standard HEVC encoding, ensuring no loss in compression efficiency.
Conclusion
By transitioning from frame-level to granular CTU-level dependency management across the temporal domain, the proposed joint WPP algorithm effectively fills the "gaps" in processor utilization. This approach significantly improves scalability on many-core architectures without sacrificing video quality. Future work may involve combining this method with other HEVC parallel tools, such as "Tiles," to further enhance performance for ultra-high-resolution 4K and 8K video content.
Summary updated