1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-24 00:46:58 +00:00

vf_d3d11vpp: log some video processor creation parameters

This commit is contained in:
wm4 2016-06-16 16:32:38 +02:00
parent 5700da4a8f
commit 1878a4655d

View File

@ -159,6 +159,9 @@ static int recreate_video_proc(struct vf_instance *vf)
if (FAILED(hr))
goto fail;
MP_VERBOSE(vf, "Found %d rate conversion caps.\n",
(int)caps.RateConversionCapsCount);
int rindex = -1;
for (int n = 0; n < caps.RateConversionCapsCount; n++) {
D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS rcaps;
@ -166,10 +169,12 @@ static int recreate_video_proc(struct vf_instance *vf)
(p->vp_enum, n, &rcaps);
if (FAILED(hr))
goto fail;
MP_VERBOSE(vf, " - %d: 0x%08x\n", n, (unsigned)rcaps.ProcessorCaps);
if (rcaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB)
{
rindex = n;
break;
MP_VERBOSE(vf, " (matching)\n");
if (rindex < 0)
rindex = n;
}
}