Skip to content

Commit

Permalink
(WIP) libplacebo: add support for --scale=oversample
Browse files Browse the repository at this point in the history
Added upstream in v4.141
  • Loading branch information
haasn committed May 15, 2021
1 parent 292a938 commit af9131d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion video/out/vo_placebo.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,12 +774,13 @@ static const struct pl_filter_config *map_scaler(struct priv *p,
{ "bilinear", &pl_filter_bilinear },
{ "bicubic_fast", &pl_filter_bicubic },
{ "nearest", &pl_filter_nearest },
{ "oversample", &pl_filter_oversample },
{0},
};

static const struct pl_filter_preset fixed_frame_mixers[] = {
{ "linear", &pl_filter_bilinear },
{ "oversample", &pl_oversample_frame_mixer },
{ "oversample", &pl_filter_oversample },
{0},
};

Expand Down
4 changes: 2 additions & 2 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,9 @@ video_output_features = [
'func': check_pkg_config('libplacebo >= 2.72.0'),
}, {
'name': 'vo-placebo',
'desc': 'libplacebo v4.137+, needed for vo_placebo',
'desc': 'libplacebo v4.141+, needed for vo_placebo',
'deps': 'libplacebo',
'func': check_preprocessor('libplacebo/config.h', 'PL_API_VER >= 137',
'func': check_preprocessor('libplacebo/config.h', 'PL_API_VER >= 141',
use='libplacebo'),
}, {
'name': '--vulkan',
Expand Down

0 comments on commit af9131d

Please sign in to comment.