summaryrefslogtreecommitdiff
path: root/test/render_subtitles_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-20 23:43:34 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-24 16:59:24 +0100
commit816a7b7a9d9c3cae7565cec139bf28068853f94d (patch)
tree718644b178b68fd03e2b1ea18c7bec96da5de4e4 /test/render_subtitles_test.cc
parente93b66f4236ec25dbd0603bbe74c904b53180e91 (diff)
Basic support for variable-Z 3D subtitles.
Diffstat (limited to 'test/render_subtitles_test.cc')
-rw-r--r--test/render_subtitles_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/render_subtitles_test.cc b/test/render_subtitles_test.cc
index e89890542..1fe43c6d8 100644
--- a/test/render_subtitles_test.cc
+++ b/test/render_subtitles_test.cc
@@ -37,6 +37,9 @@
using std::make_shared;
using std::shared_ptr;
+using std::string;
+using std::vector;
+using boost::optional;
static void
@@ -59,6 +62,7 @@ add(std::vector<StringText>& s, std::string text, bool italic, bool bold, bool u
1,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
text,
dcp::Effect::NONE,
@@ -133,6 +137,7 @@ BOOST_AUTO_TEST_CASE(render_text_with_newline_test)
0.5, dcp::HAlign::CENTER,
0.5, dcp::VAlign::CENTER,
0.0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"Hello world",
dcp::Effect::NONE, dcp::Colour(0, 0, 0),
@@ -146,6 +151,7 @@ BOOST_AUTO_TEST_CASE(render_text_with_newline_test)
0.5, dcp::HAlign::CENTER,
0.5, dcp::VAlign::CENTER,
0.0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"\n",
dcp::Effect::NONE, dcp::Colour(0, 0, 0),