A two-stage video coding framework with both self-adaptive redundant dictionary and adaptively orthonormalized DCT basis

Yuanyi Xue, Yi Zhou, Yao Wang · DOI

Abstract

In this work, we propose a two-stage video coding framework as an extension of a previous one-stage model. The framework utilizes two distinct dictionaries: the first stage employs a self-adaptive dictionary of inter-prediction candidates solved via an improved orthogonal matching pursuit with embedded orthonormalization (eOMP). The second stage codes the residual using a DCT basis adaptively orthonormalized to the subspace spanned by the first-stage atoms. Transition between stages is determined by quantization stepsizes and a specific threshold. Simulation results demonstrate significant rate-distortion (RD) performance improvements over the one-stage coder, outperforming H.264 and remaining competitive with HEVC.

Introduction

Traditional video codecs, such as H.264 and HEVC, rely on a "hybrid" model that separates prediction from transform coding. This approach typically involves predicting a block of pixels and then applying a fixed mathematical transform, like the Discrete Cosine Transform (DCT), to the residual error. However, this model suffers from two primary inefficiencies:

  1. Rigidity: Codecs use a limited set of motion candidates and fixed interpolation filters.
  2. Redundancy: The fixed DCT in the second stage does not account for the information already captured during prediction, leading to potential bit wastage.

This research proposes a framework where prediction and transform stages are mathematically coupled to maximize compression efficiency.

Proposed Two-Stage Framework

The proposed pipeline consists of two integrated stages designed to minimize redundancy by ensuring the transform stage only addresses information not captured by the prediction stage.

Block diagram of the proposed two-stage video coding framework.

Stage 1: Sparse Representation with eOMP

Instead of selecting a single "best" motion vector, the encoder utilizes a "dictionary" containing all possible motion candidates within a search range. It identifies a sparse linear combination of these "atoms" to represent the block. This is achieved using an improved Orthogonal Matching Pursuit (eOMP) algorithm, which recursively orthonormalizes chosen atoms to ensure the most sparse representation possible.

Stage 2: Adaptively Orthonormalized DCT

When Stage 1 reaches a point of diminishing returns, the system transitions to Stage 2. Rather than a standard DCT, the encoder uses a DCT basis adaptively orthonormalized against the atoms selected in Stage 1. This ensures that Stage 2 only codes the "null space"—the signal components that Stage 1 could not represent—thereby eliminating cross-stage redundancy.

Switching Logic and Entropy Coding

The transition is controlled by a threshold based on the residual norm reduction ratio. Additionally, a custom context-adaptive entropy coder, similar to HEVC’s CABAC, is used to efficiently pack atom locations, selection order, and coefficients into the final bitstream.

Performance Evaluation

The framework was evaluated using standard video sequences: "football" (704 × 576, high motion) and "city" (1280 × 720, fine detail). Comparisons were made against a previous one-stage coder, H.264 (x264), and the HEVC reference software (HM).

Rate-Distortion performance comparison for (a) Football and (b) City sequences.

Key Results

  • RD Performance: The two-stage framework achieved approximately a 1dB PSNR improvement over the previous one-stage version.
  • Codec Comparisons: The proposed method significantly outperformed H.264 across all tested bitrates. In the "football" sequence at low rates, it outperformed HEVC by up to 0.5dB, remaining competitive at intermediate bitrates.
  • High Bitrate Observations: HEVC maintains an advantage at very high bitrates, likely due to its variable block size support (down to 4x4), whereas the current framework uses a fixed 16x16 block size.

Insights and Future Work

The success of this framework highlights the value of mathematical coupling between prediction and transform stages. By making the DCT basis orthogonal to the first-stage atoms, the stages become perfectly complementary.

However, limitations remain. The use of a fixed 16x16 block size restricts performance on fine details at high bitrates. Furthermore, the current implementation lacks in-loop filters (like deblocking or SAO) and is limited to inter-prediction. Future work will explore adding intra-prediction candidates and addressing the computational complexity associated with solving L0-norm minimization via OMP.

Summary updated

Abstract

In this work, we propose a two-stage video coding framework, as an extension of our previous one-stage framework in [1]. The two-stage frameworks consists two different dictionaries. Specifically, the first stage directly finds the sparse representation of a block with a self-adaptive dictionary consisting of all possible inter-prediction candidates by solving an L0-norm minimization problem using an improved orthogonal matching pursuit with embedded orthonormalization (eOMP) algorithm, and the second stage codes the residual using DCT dictionary adaptively orthonormalized to the subspace spanned by the first stage atoms. The transition of the first stage and the second stage is determined based on both stages' quantization stepsizes and a threshold. We further propose a complete context adaptive entropy coder to efficiently code the locations and the coefficients of chosen first stage atoms. Simulation results show that the proposed coder significantly improves the RD performance over our previous one-stage coder. More importantly, the two-stage coder, using a fixed block size and inter-prediction only, outperforms the H.264 coder (x264) and is competitive with the HEVC reference coder (HM) over a large rate range.
BibTeX
@misc{xue2015two,
  author = {Yuanyi Xue and Yi Zhou and Yao Wang},
  title = {{A two-stage video coding framework with both self-adaptive redundant dictionary and adaptively orthonormalized DCT basis}},
  year = {2015},
  eprint = {1502.03802},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1502.03802},
}
Figure