mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
encoder/ffmpeg: Improve software scaling quality
Might be better to allow end-users to choose swscale quality, if they deem it necessary.
This commit is contained in:
parent
b55e4b283b
commit
7296bbc16b
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ void ffmpeg_instance::initialize_sw(obs_data_t* settings)
|
|||
_scaler.set_target_format(pix_fmt_target);
|
||||
|
||||
// Create Scaler
|
||||
if (!_scaler.initialize(SWS_POINT)) {
|
||||
if (!_scaler.initialize(SWS_SINC | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP | SWS_ACCURATE_RND | SWS_BITEXACT)) {
|
||||
std::stringstream sstr;
|
||||
sstr << "Initializing scaler failed for conversion from '"
|
||||
<< ::streamfx::ffmpeg::tools::get_pixel_format_name(_scaler.get_source_format()) << "' to '"
|
||||
|
|
Loading…
Reference in a new issue