Type Alias libaom_sys::aom_ext_part_funcs_t
source · pub type aom_ext_part_funcs_t = aom_ext_part_funcs;
Expand description
Callback function set for external partition model.
Uses can enable external partition model by registering a set of callback functions with the flag: AV1E_SET_EXTERNAL_PARTITION_MODEL
Aliased Type§
struct aom_ext_part_funcs_t {
pub create_model: Option<unsafe extern "C" fn(_: *mut c_void, _: *const aom_ext_part_config, _: *mut *mut c_void) -> u32>,
pub send_features: Option<unsafe extern "C" fn(_: *mut c_void, _: *const aom_partition_features) -> u32>,
pub get_partition_decision: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut aom_partition_decision) -> u32>,
pub send_partition_stats: Option<unsafe extern "C" fn(_: *mut c_void, _: *const aom_partition_stats) -> u32>,
pub delete_model: Option<unsafe extern "C" fn(_: *mut c_void) -> u32>,
pub decision_mode: u32,
pub priv_: *mut c_void,
}
Fields§
§create_model: Option<unsafe extern "C" fn(_: *mut c_void, _: *const aom_ext_part_config, _: *mut *mut c_void) -> u32>
Create an external partition model.
send_features: Option<unsafe extern "C" fn(_: *mut c_void, _: *const aom_partition_features) -> u32>
Send features to the external partition model to make partition decisions.
get_partition_decision: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut aom_partition_decision) -> u32>
Get partition decisions from the external partition model.
send_partition_stats: Option<unsafe extern "C" fn(_: *mut c_void, _: *const aom_partition_stats) -> u32>
Send stats of the current partition to the external model.
delete_model: Option<unsafe extern "C" fn(_: *mut c_void) -> u32>
Delete the external partition model.
decision_mode: u32
The decision mode of the model.
priv_: *mut c_void
Private data for the external partition model.