Abstract
Traditional video coding standards like High Efficiency Video Coding (HEVC) are primarily designed for natural video content, utilizing smoothing filters that can degrade the quality of digitally generated screen content. This paper proposes a selective nearest-neighbor interpolation scheme for intra prediction to preserve the sharp edges characteristic of text and computer graphics. By adaptively switching between standard bilinear and the proposed nearest-neighbor interpolation, the method achieves average bitrate savings of 3.3% for screen content with no performance loss on natural video.
Introduction
The prevalence of screen content—including desktop sharing, gaming, and remote education—has grown significantly. Unlike natural video captured by cameras, screen content is characterized by perfectly sharp, high-contrast edges and uniform color regions. Standard video codecs like HEVC (H.265) often struggle with this content because their underlying prediction mechanisms are optimized for the smooth gradients found in natural scenes.
The Problem: Smoothing in Intra Prediction
In HEVC, intra prediction predicts a block of pixels based on its spatial neighbors. For many prediction modes, the codec uses bilinear interpolation to calculate predicted pixel values. While this reduces noise and artifacts in natural video, it introduces unwanted blurring at the sharp boundaries of digital text and graphics.
This blurring results in a large "residual"—the difference between the prediction and the actual image. Encoding this large residual requires more data, leading to decreased compression efficiency for screen-based applications.
Proposed Method: Nearest-Neighbor Interpolation
To address this mismatch, the authors propose replacing standard bilinear interpolation with Nearest-Neighbor (NN) interpolation for screen content. Instead of averaging two reference pixels to predict a value, the system simply selects the pixel that is spatially closest to the target location.
Selection Mechanisms
The paper introduces three strategies to decide when to apply NN interpolation:
- SAD-based Selection (Implicit): Both the encoder and decoder calculate the Sum of Absolute Differences (SAD) of neighboring pixels. High variation triggers NN interpolation without needing extra signaling bits.
- Pixel Difference Selection (Implicit): A more granular approach that examines differences between specific reference pixels.
- Rate-Distortion Optimization (RDO) Variant (Explicit): The encoder tests both methods and sends a 1-bit flag to the decoder indicating the most efficient choice.
To maintain low computational complexity, these methods are primarily targeted at $4 \times 4$ pixel blocks, where sharp edges are most frequent.
Experimental Results
The proposed methods were evaluated using standard HEVC Screen Content Coding (SCC) test sequences and natural video sequences.
- Bitrate Savings: The RDO-based variant achieved an average of 3.3% BD-bitrate savings for screen content, with peak savings of 11.5% in specific sequences like "sc_twist_tunnel."
- Natural Content Performance: The adaptive nature of the system ensured 0.0% performance loss for traditional camera-captured video.
- Complexity: The decoder overhead was negligible, while the encoder workload increased by approximately 8% for the RDO variant—a modest cost compared to other screen content tools.
Conclusion
By allowing the intra prediction process to "stay sharp," this nearest-neighbor interpolation scheme significantly improves the compression efficiency of screen content. The method's low complexity and adaptive nature make it a viable enhancement for modern video coding standards, bridging the gap between natural and digital video processing.
Summary updated