[vlc-commits] videotoolbox: rework hw-accel strings
Thomas Guillem
git at videolan.org
Mon Apr 23 17:31:08 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Apr 23 17:24:36 2018 +0200| [5b3e1a9d099e52987716a4bfe2d910bc7784d718] | committer: Thomas Guillem
videotoolbox: rework hw-accel strings
Rename it to "hardware acceleration" that is way more common and remove the
LONGTEXT that was useless.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b3e1a9d099e52987716a4bfe2d910bc7784d718
---
modules/codec/videotoolbox.m | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index e39ca57694..dd5d50bd98 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -78,8 +78,7 @@ const CFStringRef kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDe
static int OpenDecoder(vlc_object_t *);
static void CloseDecoder(vlc_object_t *);
-#define VT_ENABLE_TEXT N_("Enable Hardware decoder")
-#define VT_ENABLE_LONGTEXT N_("Use VideoToolbox for hardware-accelerated video decoding")
+#define VT_ENABLE_TEXT N_("Enable hardware acceleration")
#define VT_REQUIRE_HW_DEC N_("Use Hardware decoders only")
#define VT_FORCE_CVPX_CHROMA "Force the VT decoder CVPX chroma"
#define VT_FORCE_CVPX_CHROMA_LONG "Values can be 'BGRA', 'y420', '420f', '420v', '2vuy'. \
@@ -93,7 +92,7 @@ set_capability("video decoder",800)
set_callbacks(OpenDecoder, CloseDecoder)
add_obsolete_bool("videotoolbox-temporal-deinterlacing")
-add_bool("videotoolbox", true, VT_ENABLE_TEXT, VT_ENABLE_LONGTEXT, false)
+add_bool("videotoolbox", true, VT_ENABLE_TEXT, NULL, false)
add_bool("videotoolbox-hw-decoder-only", true, VT_REQUIRE_HW_DEC, VT_REQUIRE_HW_DEC, false)
add_string("videotoolbox-cvpx-chroma", "", VT_FORCE_CVPX_CHROMA, VT_FORCE_CVPX_CHROMA_LONG, true);
vlc_module_end()
More information about the vlc-commits
mailing list