Skip to content

Commit

Permalink
vf_d3d11vpp: adjust options for userdeint filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Sep 8, 2024
1 parent e6c536a commit f6d9313
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion filters/f_auto_filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ static void deint_process(struct mp_filter *f)
p->sub.filter =
mp_create_user_filter(f, MP_OUTPUT_CHAIN_VIDEO, "vdpaupp", args);
} else if (img->imgfmt == IMGFMT_D3D11) {
char *args[] = {"parity", field_parity, NULL};
char *args[] = {"deint", "yes",
"interlaced-only", "yes",
"parity", field_parity, NULL};
p->sub.filter =
mp_create_user_filter(f, MP_OUTPUT_CHAIN_VIDEO, "d3d11vpp", args);
} else if (img->imgfmt == IMGFMT_CUDA) {
Expand Down
3 changes: 3 additions & 0 deletions video/filter/vf_d3d11vpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ static int recreate_video_proc(struct mp_filter *vf)
if (FAILED(hr))
goto fail;

if (!p->opts->mode && p->opts->deint_enabled)
p->opts->mode = D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB;

int rindex = p->opts->mode ? -1 : 0;
if (rindex == 0)
goto create;
Expand Down

0 comments on commit f6d9313

Please sign in to comment.