From b73168f0c2ee658345deae7baacb56ef3661828b Mon Sep 17 00:00:00 2001 From: SoraYuki Date: Sat, 2 Mar 2024 19:13:57 +0800 Subject: [PATCH] use gpu resize. --- src/push-widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/push-widget.cpp b/src/push-widget.cpp index e74f33e..301c0d2 100644 --- a/src/push-widget.cpp +++ b/src/push-widget.cpp @@ -270,6 +270,7 @@ class PushWidgetImpl : public PushWidget, public IOBSOutputEventHanlder { auto width = std::stoi(match[1].str()); auto height = std::stoi(match[2].str()); + obs_encoder_set_gpu_scale_type(venc, obs_scale_type::OBS_SCALE_BICUBIC); obs_encoder_set_scaled_size(venc, width, height); } }