INNER CODE UNIT · C++
tf
royshil/obs-backgroundremoval · src/background-filter.cpp:299
std::shared_ptr<background_removal_filter> tf = *ptr;
if (!tf) {
return;
}
tf->isDisabled = true;
tf->stopWhenSourceIsInactive = obs_data_get_bool(settings, "stop_when_source_is_inactive");
tf->enableThreshold = (float)obs_data_get_bool(settings, "enable_threshold");
tf->threshold = (float)obs_data_get_double(settings, "threshold");
tf->contourFilter = (float)obs_data_get_double(settings, "contour_filter");
tf->smoothContour = (float)obs_data_get_double(settings, "smooth_contour");
tf->maskExpansion = (int)obs_data_get_double(settings, "mask_expansion");
tf->feather = (float)obs_data_get_double(settings, "feather");
tf->maskEveryXFrames = (int)obs_data_get_int(settings, "mask_every_x_frames");
tf->maskEveryXFramesCount = (int)(0);
tf->blurBackground = obs_data_get_int(settings, "blur_background");