nvidia/vfx/greenscreen: Parent class already does this for us

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-10-26 23:45:05 +02:00
parent 883839ed2b
commit 092ba2cad5

View file

@ -64,16 +64,6 @@ streamfx::nvidia::vfx::greenscreen::greenscreen()
auto gctx = ::streamfx::obs::gs::context();
auto cctx = ::streamfx::nvidia::cuda::obs::get()->get_context()->enter();
// Assign CUDA Stream object.
if (auto v = set(PARAMETER_CUDA_STREAM, _nvcuda->get_stream()); v != cv::result::SUCCESS) {
throw ::streamfx::nvidia::cv::exception(PARAMETER_CUDA_STREAM, v);
}
// Assign Model Directory.
if (auto v = set(PARAMETER_MODEL_DIRECTORY, _nvvfx->model_path().generic_u8string()); v != cv::result::SUCCESS) {
throw ::streamfx::nvidia::cv::exception(PARAMETER_MODEL_DIRECTORY, v);
}
// Mode
set_mode(greenscreen_mode::QUALITY);