Skip to content

Commit

Permalink
Reverted to use SWS_SCALE_BILINEAR flag as it was causing slow downs …
Browse files Browse the repository at this point in the history
…at 4K.
  • Loading branch information
ggarra13 committed Mar 16, 2024
1 parent b25327e commit 96e6dc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tlIO/FFmpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace tl
const size_t threadCount = 0;

//! Software scaler flags.
const int swsScaleFlags = SWS_SPLINE | SWS_ACCURATE_RND | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP;
const int swsScaleFlags = SWS_FAST_BILINEAR | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP;

//! Swap the numerator and denominator.
AVRational swap(AVRational);
Expand Down
2 changes: 1 addition & 1 deletion lib/tlIO/NDI.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace tl
namespace ndi
{
//! Software scaler flags.
const int swsScaleFlags = SWS_SPLINE | SWS_ACCURATE_RND | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP;
const int swsScaleFlags = SWS_FAST_BILINEAR | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP;

//! Convert to FFmpeg.
AVSampleFormat fromAudioType(audio::DataType);
Expand Down

0 comments on commit 96e6dc5

Please sign in to comment.