vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sat Apr 30 19:08:22 2016 +0300| [faa6ea17ed787ef3331dc6e6d0cc89b9d267e166] | committer: Rémi Denis-Courmont
w32/directdraw: add dedicated overlay option > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=faa6ea17ed787ef3331dc6e6d0cc89b9d267e166 --- modules/video_output/win32/directdraw.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/video_output/win32/directdraw.c b/modules/video_output/win32/directdraw.c index 2216ab0..b26db2d 100644 --- a/modules/video_output/win32/directdraw.c +++ b/modules/video_output/win32/directdraw.c @@ -67,6 +67,12 @@ "Try to use hardware acceleration for YUV->RGB conversions. " \ "This option doesn't have any effect when using overlays.") +#define OVERLAY_TEXT N_("Overlay video output") +#define OVERLAY_LONGTEXT N_(\ +#define OVERLAY_LONGTEXT N_(\ + "Overlay is the hardware acceleration capability of your video card " \ + "(ability to render video directly). VLC will try to use it by default.") + #define SYSMEM_TEXT N_("Use video buffers in system memory") #define SYSMEM_LONGTEXT N_(\ "Create video buffers in system memory instead of video memory. This " \ @@ -101,6 +107,7 @@ vlc_module_begin() set_subcategory(SUBCAT_VIDEO_VOUT) add_bool("directx-hw-yuv", true, HW_YUV_TEXT, HW_YUV_LONGTEXT, true) + add_bool("directx-overlay", true, OVERLAY_TEXT, OVERLAY_LONGTEXT, false) add_bool("directx-use-sysmem", false, SYSMEM_TEXT, SYSMEM_LONGTEXT, true) add_bool("directx-3buffering", true, TRIPLEBUF_TEXT, @@ -1175,7 +1182,7 @@ static int DirectXCreatePictureResource(vout_display_t *vd, bool allow_hw_yuv = sys->can_blit_fourcc && vlc_fourcc_IsYUV(fmt->i_chroma) && var_InheritBool(vd, "directx-hw-yuv"); - bool allow_overlay = var_InheritBool(vd, "overlay"); + bool allow_overlay = var_InheritBool(vd, "directx-overlay"); /* Try to use an yuv surface */ if (allow_hw_yuv) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
