Function rsmpeg::ffi::av_opt_find [−][src]
pub unsafe extern "C" fn av_opt_find(
obj: *mut c_void,
name: *const i8,
unit: *const i8,
opt_flags: i32,
search_flags: i32
) -> *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_*.
@return A pointer to the option found, or NULL if no option was found.
@note Options found with AV_OPT_SEARCH_CHILDREN flag may not be settable directly with av_opt_set(). Use special calls which take an options AVDictionary (e.g. avformat_open_input()) to set options found with this flag.