[vlc-devel] [PATCH] deinterlace:dxva: log when the algorithm doesn't match the user choice exactly

Steve Lhomme robux4 at videolabs.io
Wed Aug 2 08:31:56 CEST 2017


Since available ones may vary from hardware to hardware.

--
replaces https://patches.videolan.org/patch/17706/
- wrong lines changed (belonged to a different patch)
---
 modules/video_output/win32/d3d11_deinterlace.c | 2 ++
 modules/video_output/win32/dxva2_deinterlace.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/modules/video_output/win32/d3d11_deinterlace.c b/modules/video_output/win32/d3d11_deinterlace.c
index 6be55c600f..e7d6da8245 100644
--- a/modules/video_output/win32/d3d11_deinterlace.c
+++ b/modules/video_output/win32/d3d11_deinterlace.c
@@ -341,6 +341,8 @@ static int Open(vlc_object_t *obj)
         msg_Dbg(filter, "unknown mode %s, trying blend", psz_mode);
         p_mode = GetFilterMode("blend");
     }
+    if (strcmp(p_mode->psz_mode, p_mode))
+        msg_Dbg(filter, "using %s deinterlacing mode", p_mode->psz_mode);
 
     for (UINT type = 0; type < processorCaps.RateConversionCapsCount; ++type)
     {
diff --git a/modules/video_output/win32/dxva2_deinterlace.c b/modules/video_output/win32/dxva2_deinterlace.c
index 520fc29ac9..908a31f552 100644
--- a/modules/video_output/win32/dxva2_deinterlace.c
+++ b/modules/video_output/win32/dxva2_deinterlace.c
@@ -301,6 +301,8 @@ static int Open(vlc_object_t *obj)
         msg_Dbg(filter, "unknown mode %s, trying blend", psz_mode);
         p_mode = GetFilterMode("blend");
     }
+    if (strcmp(p_mode->psz_mode, p_mode))
+        msg_Dbg(filter, "using %s deinterlacing mode", p_mode->psz_mode);
 
     DXVA2_VideoProcessorCaps caps, best_caps;
     unsigned best_score = 0;
-- 
2.12.1



More information about the vlc-devel mailing list