AOMedia AV1 Codec
Collaboration diagram for CDEF:

Functions

void av1_cdef_frame (YV12_BUFFER_CONFIG *frame, AV1_COMMON *const cm, MACROBLOCKD *xd, cdef_init_fb_row_t cdef_init_fb_row_fn)
 Function for applying CDEF to a frame. More...
 
void av1_cdef_search (struct MultiThreadInfo *mt_info, const YV12_BUFFER_CONFIG *frame, const YV12_BUFFER_CONFIG *ref, AV1_COMMON *cm, MACROBLOCKD *xd, CDEF_PICK_METHOD pick_method, int rdmult, int skip_cdef_feature, int frames_since_key, CDEF_CONTROL cdef_control, int non_reference_frame)
 AV1 CDEF parameter search. More...
 

Detailed Description

This module describes the CDEF parameter search algorithm in AV1. More details will be added.

Function Documentation

◆ av1_cdef_frame()

void av1_cdef_frame ( YV12_BUFFER_CONFIG frame,
AV1_COMMON *const  cm,
MACROBLOCKD xd,
cdef_init_fb_row_t  cdef_init_fb_row_fn 
)

Function for applying CDEF to a frame.

This function applies CDEF to a frame.

Parameters
[in,out]frameCompressed frame buffer
[in,out]cmPointer to top level common structure
[in]xdPointer to common current coding block structure
[in]cdef_init_fb_row_fnFunction Pointer
Returns
Nothing is returned. Instead, the filtered frame is output in frame.

Referenced by cdef_restoration_frame().

◆ av1_cdef_search()

void av1_cdef_search ( struct MultiThreadInfo mt_info,
const YV12_BUFFER_CONFIG frame,
const YV12_BUFFER_CONFIG ref,
AV1_COMMON cm,
MACROBLOCKD xd,
CDEF_PICK_METHOD  pick_method,
int  rdmult,
int  skip_cdef_feature,
int  frames_since_key,
CDEF_CONTROL  cdef_control,
int  non_reference_frame 
)

AV1 CDEF parameter search.

Searches for optimal CDEF parameters for frame

Parameters
[in]mt_infoPointer to multi-threading parameters
[in]frameCompressed frame buffer
[in]refSource frame buffer
[in,out]cmPointer to top level common structure
[in]xdPointer to common current coding block structure
[in]pick_methodThe method used to select params
[in]rdmultrd multiplier to use in making param choices
[in]skip_cdef_featureSpeed feature to skip cdef
[in]frames_since_keyNumber of frames since key frame
[in]cdef_controlParameter that controls CDEF application
[in]non_reference_frameIndicates if current frame is non-reference
Returns
Nothing is returned. Instead, optimal CDEF parameters are stored in the cdef_info structure of type CdefInfo inside cm:
  • cdef_bits: Bits of strength parameters
  • nb_cdef_strengths: Number of strength parameters
  • cdef_strengths: list of nb_cdef_strengths strength parameters for the luma plane.
  • uv_cdef_strengths: list of nb_cdef_strengths strength parameters for the chroma planes.
  • damping_factor: CDEF damping factor.

Referenced by cdef_restoration_frame().