What CDEF Methods Are Used by libaom?

The libaom reference software implements the Constrained Directional Enhancement Filter (CDEF) to post-process reconstructed video frames and eliminate ringing artifacts while preserving sharp edge details. To achieve this, libaom uses a multi-step process combining directional estimation, dual-stage non-linear low-pass filtering, and aggressive encoder search optimizations. By operating on an \(8 \times 8\) block level, the framework ensures highly parallelizable operations optimized for modern processor architectures.

Direction Estimation and Search Before any filtering occurs, libaom determines the structural orientation of each \(8 \times 8\) block through a dedicated direction search mechanism (cdef_find_dir).

Dual-Stage Non-Linear Low-Pass Filtering Once the direction is identified, libaom applies a conditional low-pass filter (cdef_filter_block) that dynamically restricts blurring across sharp boundaries. This filter uses two distinct components:

Encoder-Side Performance Optimizations Because evaluating every potential filter combination for a frame introduces massive computational overhead, libaom employs several specialized acceleration methods: