Function rsmpeg::ffi::av_opt_find2[][src]

pub unsafe extern "C" fn av_opt_find2(
    obj: *mut c_void,
    name: *const i8,
    unit: *const i8,
    opt_flags: i32,
    search_flags: i32,
    target_obj: *mut *mut c_void
) -> *const AVOption
Expand description

Look for an option in an object. Consider only options which have all the specified flags set.

@param[in] obj A pointer to a struct whose first element is a pointer to an AVClass. Alternatively a double pointer to an AVClass, if AV_OPT_SEARCH_FAKE_OBJ search flag is set. @param[in] name The name of the option to look for. @param[in] unit When searching for named constants, name of the unit it belongs to. @param opt_flags Find only options with all the specified flags set (AV_OPT_FLAG). @param search_flags A combination of AV_OPT_SEARCH_*. @param[out] target_obj if non-NULL, an object to which the option belongs will be written here. It may be different from obj if AV_OPT_SEARCH_CHILDREN is present in search_flags. This parameter is ignored if search_flags contain AV_OPT_SEARCH_FAKE_OBJ.

@return A pointer to the option found, or NULL if no option was found.