diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-09 02:30:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-09 02:30:18 +0100 |
| commit | 7bb241e6857f5f3614fd3b8722d545e85a6b6316 (patch) | |
| tree | 9d90112ec5f380560d9cc44db1503c0083d6f996 /test | |
| parent | 5da3dca64c9d0398a5507688a230f4a9bf7dc9cb (diff) | |
Basic reading of Interop/SMPTE image subtitles with a test for Interop.
Diffstat (limited to 'test')
| -rw-r--r-- | test/read_interop_subtitle_test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/read_interop_subtitle_test.cc b/test/read_interop_subtitle_test.cc index 6997a9a3..79010f7a 100644 --- a/test/read_interop_subtitle_test.cc +++ b/test/read_interop_subtitle_test.cc @@ -20,7 +20,9 @@ #include "interop_subtitle_asset.h" #include "interop_load_font_node.h" #include "subtitle_string.h" +#include "subtitle_image.h" #include <boost/test/unit_test.hpp> +#include <iostream> using std::list; using std::string; @@ -600,4 +602,9 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2) BOOST_AUTO_TEST_CASE (read_interop_subtitle_test3) { dcp::InteropSubtitleAsset subs ("test/data/subs3.xml"); + + BOOST_REQUIRE_EQUAL (subs.subtitles().size(), 1); + shared_ptr<dcp::SubtitleImage> si = dynamic_pointer_cast<dcp::SubtitleImage>(subs.subtitles().front()); + BOOST_REQUIRE (si); + BOOST_CHECK (si->png_image() == dcp::Data("test/data/822bd341-c751-45b1-94d2-410e4ffcff1b.png")); } |
