Skip to content

Commit

Permalink
use gpu resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorayuki committed Mar 2, 2024
1 parent 02b2d30 commit b73168f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/push-widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit b73168f

Please sign in to comment.