summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/imp.cc29
-rw-r--r--src/imp.h34
-rw-r--r--src/wscript2
-rw-r--r--test/imf_test.cc29
-rw-r--r--test/wscript1
5 files changed, 95 insertions, 0 deletions
diff --git a/src/imp.cc b/src/imp.cc
new file mode 100644
index 00000000..09810967
--- /dev/null
+++ b/src/imp.cc
@@ -0,0 +1,29 @@
+/*
+ Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "imp.h"
+
+using namespace dcp;
+
+IMP::IMP (boost::filesystem::path directory)
+ : Package (directory)
+{
+
+}
+
diff --git a/src/imp.h b/src/imp.h
new file mode 100644
index 00000000..d83847dc
--- /dev/null
+++ b/src/imp.h
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "package.h"
+
+namespace dcp {
+
+class IMP : public Package
+{
+public:
+ IMP (boost::filesystem::path directory);
+
+
+};
+
+}
+
+
diff --git a/src/wscript b/src/wscript
index b2119408..780c7554 100644
--- a/src/wscript
+++ b/src/wscript
@@ -37,6 +37,7 @@ def build(bld):
font_asset.cc
font_node.cc
gamma_transfer_function.cc
+ imp.cc
interop_load_font_node.cc
interop_subtitle_asset.cc
j2k.cc
@@ -99,6 +100,7 @@ def build(bld):
exceptions.h
font_asset.h
gamma_transfer_function.h
+ imp.h
interop_load_font_node.h
interop_subtitle_asset.h
j2k.h
diff --git a/test/imf_test.cc b/test/imf_test.cc
new file mode 100644
index 00000000..3b95416b
--- /dev/null
+++ b/test/imf_test.cc
@@ -0,0 +1,29 @@
+/*
+ Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "imp.h"
+#include "test.h"
+#include <boost/test/unit_test.hpp>
+
+/** Simple test of reading an IMF package */
+BOOST_AUTO_TEST_CASE (imf_test1)
+{
+ dcp::IMP imp (private_test / "data" / "BelleSebastian2_TLR-2-2398_HD-239_DE-XX_CH_51_HD_PATH_20151229_DGL_SMPTE_IMPAPP2_OV");
+ imp.read ();
+}
diff --git a/test/wscript b/test/wscript
index 60a781f6..cdb206ea 100644
--- a/test/wscript
+++ b/test/wscript
@@ -60,6 +60,7 @@ def build(bld):
exception_test.cc
fraction_test.cc
gamma_transfer_function_test.cc
+ imf_test.cc
interop_load_font_test.cc
local_time_test.cc
kdm_test.cc