From a437915f3c6e2ce50a1bac3c4ff70d08904f8101 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 14 Jul 2022 23:30:47 +0200 Subject: [PATCH] Update comment to reflect strange aspects of subtitle alignment standards. --- src/types.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/types.h b/src/types.h index 9aacdfdb..b6335546 100644 --- a/src/types.h +++ b/src/types.h @@ -176,9 +176,21 @@ extern HAlign string_to_halign (std::string s); enum class VAlign { - TOP, ///< vertical position is distance from top of screen to top of subtitle - CENTER, ///< vertical position is distance from centre of screen to centre of subtitle - BOTTOM ///< vertical position is distance from bottom of screen to bottom of subtitle + /** vertical position is distance: + * from top of screen to top of subtitle (for SMPTE) or + * from top of screen to subtitle baseline (for Interop) + */ + TOP, + /** vertical position is distance: + * from centre of screen to centre of subtitle (for SMPTE) or + * from centre of screen to subtitle baseline (for Interop) + */ + CENTER, + /** vertical position is distance: + * from bottom of screen to bottom of subtitle (for SMPTE) or + * from bottom of screen to subtitle baseline (for Interop) + */ + BOTTOM }; -- 2.30.2