From f571fd73a119c74dcdbd988dc07837fb1853b642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 18 Feb 2026 05:04:01 +0100 Subject: [PATCH] vf_d3d11vpp: print supported custom rates --- video/filter/vf_d3d11vpp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/video/filter/vf_d3d11vpp.c b/video/filter/vf_d3d11vpp.c index 9ec2a1c3e1..2b6ce3eefd 100644 --- a/video/filter/vf_d3d11vpp.c +++ b/video/filter/vf_d3d11vpp.c @@ -296,6 +296,15 @@ static int recreate_video_proc(struct mp_filter *vf) "itelecine_caps=%#x custom_rate_count=%u\n", marker, n, rcaps.ProcessorCaps, rcaps.PastFrames, rcaps.FutureFrames, rcaps.ITelecineCaps, rcaps.CustomRateCount); + + for (UINT c = 0; c < rcaps.CustomRateCount; c++) { + D3D11_VIDEO_PROCESSOR_CUSTOM_RATE cr; + if (FAILED(ID3D11VideoProcessorEnumerator_GetVideoProcessorCustomRate(p->vp_enum, n, c, &cr))) + continue; + MP_DBG(vf, "\t%u: custom_rate=%u/%u out_frames=%u in_interlaced=%d in_frames_or_fields=%u\n", + 0, cr.CustomRate.Numerator, cr.CustomRate.Denominator, cr.OutputFrames, + cr.InputInterlaced, cr.InputFramesOrFields); + } } if (rindex < 0) {