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

Steve Lhomme git at videolan.org
Fri Aug 4 10:16:18 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Aug  2 08:31:56 2017 +0200| [a15e9a249cb551582df9bbaef97ff9a3463c473f] | committer: Jean-Baptiste Kempf

deinterlace:dxva: log when the algorithm doesn't match the user choice exactly

Since available ones may vary from hardware to hardware.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a15e9a249cb551582df9bbaef97ff9a3463c473f
---

 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;



More information about the vlc-commits mailing list