Bump asdcplib to dcpomatic-2.13.0 branch. v1.9.4
authorCarl Hetherington <cth@carlh.net>
Wed, 20 Mar 2024 22:21:25 +0000 (23:21 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 22 Mar 2024 14:18:55 +0000 (15:18 +0100)
38 files changed:
benchmark/wscript
cscript
examples/wscript
libdcp-1.0.pc.in
src/asset_factory.cc
src/asset_reader.h
src/atmos_asset.cc
src/mono_picture_asset.cc
src/smpte_subtitle_asset.cc
src/sound_asset.cc
src/stereo_picture_asset.cc
src/wscript
test/mca_test.cc
test/ref/DCP/dcp_test1/audio.mxf
test/ref/DCP/dcp_test1/cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml
test/ref/DCP/dcp_test1/pkl_d199d58b-5ef8-4d49-b270-07e590ccb280.xml
test/ref/DCP/dcp_test1/video.mxf
test/ref/DCP/dcp_test2/audio.mxf
test/ref/DCP/dcp_test2/cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml
test/ref/DCP/dcp_test2/pkl_8577c7c0-be29-4eb5-a449-1e3870a42bbd.xml
test/ref/DCP/dcp_test2/video.mxf
test/ref/DCP/dcp_test5/audio.mxf
test/ref/DCP/dcp_test5/cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml
test/ref/DCP/dcp_test5/pkl_d76fdaaf-8316-42dc-a87e-1719ad6ca3ca.xml
test/ref/DCP/dcp_test5/video.mxf
test/ref/DCP/dcp_test7/audio.mxf
test/ref/DCP/dcp_test7/cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml
test/ref/DCP/dcp_test7/pkl_d199d58b-5ef8-4d49-b270-07e590ccb280.xml
test/ref/DCP/dcp_test7/video.mxf
test/ref/DCP/encryption_test/audio.mxf
test/ref/DCP/encryption_test/cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml
test/ref/DCP/encryption_test/pkl_5203f3d4-9d62-4062-8bf1-7a114eff99df.xml
test/ref/DCP/encryption_test/video.mxf
test/test.cc
test/verify_test.cc
test/wscript
tools/wscript
wscript

index 7097a762dd171279cd3539c15fbc0df24c76b37e..f3e2d6603bbbf93ebff6cc8115c86a361bd9ee35 100644 (file)
@@ -35,7 +35,7 @@ def build(bld):
     for p in ['rgb_to_xyz', 'j2k_transcode']:
         obj = bld(features='cxx cxxprogram')
         obj.name = p
-        obj.uselib = 'BOOST_FILESYSTEM ASDCPLIB_CTH CXML'
+        obj.uselib = 'BOOST_FILESYSTEM ASDCPLIB_DCPOMATIC CXML'
         obj.cppflags = ['-g', '-O2']
         obj.use = 'libdcp%s' % bld.env.API_VERSION
         obj.source = "%s.cc" % p
diff --git a/cscript b/cscript
index 7ab2773e7c958d88f2bc65b51fb1e48e1773f59d..e09396f51d5de058b901b2dd8b13a9cb16046886 100644 (file)
--- a/cscript
+++ b/cscript
@@ -38,7 +38,7 @@ def dependencies(target, options):
     return (
         ('libcxml', 'v0.17.8', options),
         ('openjpeg', 'ad8edaacd54a862940d0a77c41ecda5858b54d6e'),
-        ('asdcplib', '8a4a2f25cac0c58aac1d4267facab20e5ec3b57f')
+        ('asdcplib', '4b5d6e8d27dfd5fb282590538068662f4dbbf1c9')
     )
 
 def build(target, options):
index d062af1b8241ae316db8cc9486cb71faf4eb4390..faaa3e9ab91240dc48a6466150cd5bda7aa78d23 100644 (file)
@@ -21,7 +21,7 @@ def build(bld):
         obj = bld(features='cxx cxxprogram')
         obj.name   = example
         obj.use    = 'libdcp%s' % bld.env.API_VERSION
-        obj.uselib = 'OPENJPEG CXML OPENMP ASDCPLIB_CTH BOOST_FILESYSTEM OPENSSL XMLSEC1 MAGICK'
+        obj.uselib = 'OPENJPEG CXML OPENMP ASDCPLIB_DCPOMATIC BOOST_FILESYSTEM OPENSSL XMLSEC1 MAGICK'
         obj.source = example + '.cc'
         obj.target = example
         obj.install_path = ''
index 84fd39ce22587ea4af93b55f18f240ccb446c73c..b838487ed1542e1c4273f8d0082f45de95a7a771 100644 (file)
@@ -5,6 +5,6 @@ includedir=@includedir@
 Name: libdcp
 Description: DCP reading and writing library
 Version: @version@
-Requires: openssl libxml++-@xmlpp_api@ xmlsec1 libasdcp-carl xerces-c
+Requires: openssl libxml++-@xmlpp_api@ xmlsec1 libasdcp-dcpomatic xerces-c
 Libs: @libs@
 Cflags: -I${includedir}
index be4f6b492088729703dac12eaf96263363e527cf..9eb42c8b35d00d9bd805c669b95053f278ad0e26 100644 (file)
@@ -61,7 +61,8 @@ dcp::asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_
        */
 
        ASDCP::EssenceType_t type;
-       auto const result = ASDCP::EssenceType(dcp::filesystem::fix_long_path(path).string().c_str(), type);
+       Kumu::FileReaderFactory factory;
+       auto const result = ASDCP::EssenceType(dcp::filesystem::fix_long_path(path).string().c_str(), type, factory);
        if (!ASDCP_SUCCESS(result)) {
                throw ReadError(String::compose("Could not find essence type (%1)", result.Message()), path.string());
        }
index c8953e09281956020935a0751e7b266b643c7e74..aa8157458497aacbe87e29e080da56bc19ef78e1 100644 (file)
@@ -97,7 +97,8 @@ private:
        explicit AssetReader (Asset const * asset, boost::optional<Key> key, Standard standard)
                : _crypto_context (new DecryptionContext(key, standard))
        {
-               _reader = new R ();
+               Kumu::FileReaderFactory factory;
+               _reader = new R(factory);
                DCP_ASSERT (asset->file());
                auto const r = _reader->OpenRead(dcp::filesystem::fix_long_path(*asset->file()).string().c_str());
                if (ASDCP_FAILURE(r)) {
index 42a0774e2656d34adec8faedc17be3661d885b04..09a22c1ed3c20f33d22fe048de29412248e848ee 100644 (file)
@@ -42,6 +42,7 @@
 #include "atmos_asset_writer.h"
 #include "exceptions.h"
 #include <asdcp/AS_DCP.h>
+#include <asdcp/KM_fileio.h>
 
 
 using std::string;
@@ -67,7 +68,8 @@ AtmosAsset::AtmosAsset (boost::filesystem::path file)
        : Asset (file)
        , MXF (Standard::SMPTE)
 {
-       ASDCP::ATMOS::MXFReader reader;
+       Kumu::FileReaderFactory factory;
+       ASDCP::ATMOS::MXFReader reader(factory);
        auto r = reader.OpenRead(dcp::filesystem::fix_long_path(file).string().c_str());
        if (ASDCP_FAILURE (r)) {
                boost::throw_exception (MXFFileError("could not open MXF file for reading", file.string(), r));
index a72fd7d47b3487065f0165391fd51cb21da16053..9a0beb42458f0aa472006a54c5e677515c4e6ab3 100644 (file)
@@ -66,7 +66,8 @@ using namespace dcp;
 MonoPictureAsset::MonoPictureAsset (boost::filesystem::path file)
        : PictureAsset (file)
 {
-       ASDCP::JP2K::MXFReader reader;
+       Kumu::FileReaderFactory factory;
+       ASDCP::JP2K::MXFReader reader(factory);
        auto r = reader.OpenRead(dcp::filesystem::fix_long_path(file).string().c_str());
        if (ASDCP_FAILURE(r)) {
                boost::throw_exception (MXFFileError("could not open MXF file for reading", file.string(), r));
@@ -109,14 +110,15 @@ MonoPictureAsset::equals(shared_ptr<const Asset> other, EqualityOptions const& o
                return false;
        }
 
-       ASDCP::JP2K::MXFReader reader_A;
+       Kumu::FileReaderFactory factory;
+       ASDCP::JP2K::MXFReader reader_A(factory);
        DCP_ASSERT (_file);
        auto r = reader_A.OpenRead(dcp::filesystem::fix_long_path(*_file).string().c_str());
        if (ASDCP_FAILURE(r)) {
                boost::throw_exception (MXFFileError("could not open MXF file for reading", _file->string(), r));
        }
 
-       ASDCP::JP2K::MXFReader reader_B;
+       ASDCP::JP2K::MXFReader reader_B(factory);
        DCP_ASSERT (other->file ());
        r = reader_B.OpenRead(dcp::filesystem::fix_long_path(*other->file()).string().c_str());
        if (ASDCP_FAILURE (r)) {
index 06c91c0b2c414a9aa02453dc2fed020b8f5cc674..4f611583b36c0db47ac19a3ecc03f12b19bea48d 100644 (file)
@@ -95,7 +95,8 @@ SMPTESubtitleAsset::SMPTESubtitleAsset (boost::filesystem::path file)
 {
        auto xml = make_shared<cxml::Document>("SubtitleReel");
 
-       auto reader = make_shared<ASDCP::TimedText::MXFReader>();
+       Kumu::FileReaderFactory factory;
+       auto reader = make_shared<ASDCP::TimedText::MXFReader>(factory);
        auto r = Kumu::RESULT_OK;
        {
                ASDCPErrorSuspender sus;
@@ -320,7 +321,8 @@ SMPTESubtitleAsset::set_key (Key key)
 
        /* Our data was encrypted; now we can decrypt it */
 
-       auto reader = make_shared<ASDCP::TimedText::MXFReader>();
+       Kumu::FileReaderFactory factory;
+       auto reader = make_shared<ASDCP::TimedText::MXFReader>(factory);
        auto r = reader->OpenRead(dcp::filesystem::fix_long_path(*_file).string().c_str());
        if (ASDCP_FAILURE (r)) {
                boost::throw_exception (
@@ -354,7 +356,8 @@ SMPTESubtitleAsset::load_font_nodes () const
 bool
 SMPTESubtitleAsset::valid_mxf (boost::filesystem::path file)
 {
-       ASDCP::TimedText::MXFReader reader;
+       Kumu::FileReaderFactory factory;
+       ASDCP::TimedText::MXFReader reader(factory);
        Kumu::DefaultLogSink().UnsetFilterFlag(Kumu::LOG_ALLOW_ALL);
        auto r = reader.OpenRead(dcp::filesystem::fix_long_path(file).string().c_str());
        Kumu::DefaultLogSink().SetFilterFlag(Kumu::LOG_ALLOW_ALL);
index 0ceba53dd091766ee85c3dec4ba281befa2e41a4..90075278566de02278843e2c9ff1e0ab69711022 100644 (file)
@@ -70,7 +70,8 @@ using namespace dcp;
 SoundAsset::SoundAsset (boost::filesystem::path file)
        : Asset (file)
 {
-       ASDCP::PCM::MXFReader reader;
+       Kumu::FileReaderFactory factory;
+       ASDCP::PCM::MXFReader reader(factory);
        auto r = reader.OpenRead(dcp::filesystem::fix_long_path(file).string().c_str());
        if (ASDCP_FAILURE(r)) {
                boost::throw_exception (MXFFileError("could not open MXF file for reading", file.string(), r));
@@ -138,14 +139,15 @@ SoundAsset::equals(shared_ptr<const Asset> other, EqualityOptions const& opt, No
                return true;
        }
 
-       ASDCP::PCM::MXFReader reader_A;
+       Kumu::FileReaderFactory factory;
+       ASDCP::PCM::MXFReader reader_A(factory);
        DCP_ASSERT (file());
        auto r = reader_A.OpenRead(dcp::filesystem::fix_long_path(*file()).string().c_str());
        if (ASDCP_FAILURE(r)) {
                boost::throw_exception (MXFFileError("could not open MXF file for reading", file()->string(), r));
        }
 
-       ASDCP::PCM::MXFReader reader_B;
+       ASDCP::PCM::MXFReader reader_B(factory);
        r = reader_B.OpenRead(dcp::filesystem::fix_long_path(*other->file()).string().c_str());
        if (ASDCP_FAILURE (r)) {
                boost::throw_exception (MXFFileError("could not open MXF file for reading", other->file()->string(), r));
@@ -278,7 +280,8 @@ SoundAsset::static_pkl_type (Standard standard)
 bool
 SoundAsset::valid_mxf (boost::filesystem::path file)
 {
-       ASDCP::PCM::MXFReader reader;
+       Kumu::FileReaderFactory factory;
+       ASDCP::PCM::MXFReader reader(factory);
        Kumu::Result_t r = reader.OpenRead(dcp::filesystem::fix_long_path(file).string().c_str());
        return !ASDCP_FAILURE (r);
 }
index 2ce3cdc90f386ed172e7bc23315c6a6ed8ed8910..687d8572aab3dfddedfd7d3f22a16be59d1d993f 100644 (file)
@@ -59,7 +59,8 @@ using namespace dcp;
 StereoPictureAsset::StereoPictureAsset (boost::filesystem::path file)
        : PictureAsset (file)
 {
-       ASDCP::JP2K::MXFSReader reader;
+       Kumu::FileReaderFactory factory;
+       ASDCP::JP2K::MXFSReader reader(factory);
        auto r = reader.OpenRead(dcp::filesystem::fix_long_path(file).string().c_str());
        if (ASDCP_FAILURE(r)) {
                boost::throw_exception (MXFFileError("could not open MXF file for reading", file.string(), r));
@@ -105,14 +106,15 @@ StereoPictureAsset::start_read () const
 bool
 StereoPictureAsset::equals(shared_ptr<const Asset> other, EqualityOptions const& opt, NoteHandler note) const
 {
-       ASDCP::JP2K::MXFSReader reader_A;
+       Kumu::FileReaderFactory factory;
+       ASDCP::JP2K::MXFSReader reader_A(factory);
        DCP_ASSERT (file());
        auto r = reader_A.OpenRead(dcp::filesystem::fix_long_path(*file()).string().c_str());
        if (ASDCP_FAILURE (r)) {
                boost::throw_exception (MXFFileError ("could not open MXF file for reading", file()->string(), r));
        }
 
-       ASDCP::JP2K::MXFSReader reader_B;
+       ASDCP::JP2K::MXFSReader reader_B(factory);
        DCP_ASSERT (other->file());
        r = reader_B.OpenRead(dcp::filesystem::fix_long_path(*other->file()).string().c_str());
        if (ASDCP_FAILURE (r)) {
index c2d499c8be3a5a668d66dcb8ee7854d41163c96b..29eb37abf58d6ce57a52d2a8c2fc8cda190fe020 100644 (file)
@@ -244,7 +244,7 @@ def build(bld):
     obj.name = 'libdcp%s' % bld.env.API_VERSION
     obj.target = 'dcp%s' % bld.env.API_VERSION
     obj.export_includes = ['.']
-    obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH XERCES'
+    obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_DCPOMATIC XERCES'
     obj.source = source
 
     # Library for gcov
@@ -256,7 +256,7 @@ def build(bld):
         obj.name = 'libdcp%s_gcov' % bld.env.API_VERSION
         obj.target = 'dcp%s_gcov' % bld.env.API_VERSION
         obj.export_includes = ['.']
-        obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH XERCES'
+        obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_DCPOMATIC XERCES'
         obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
         obj.source = source
         obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
index bdfc9484cc33b20a9022280e6c38a89dca4a5e2d..1cd957321825e8645e98f77fdd984a660bc3f2f9 100644 (file)
@@ -168,7 +168,8 @@ check_mca_descriptors(int suffix, vector<dcp::Channel> extra_active_channels, ve
 
        /* Check MXF */
 
-       auto reader = new ASDCP::PCM::MXFReader();
+       Kumu::FileReaderFactory factory;
+       auto reader = new ASDCP::PCM::MXFReader(factory);
        reader->OpenRead(boost::filesystem::path(dir / "mxf.mxf").string());
 
        list<ASDCP::MXF::InterchangeObject*> channels;
index 5e08f74f86b8b05b36fffb5eb52a9b0300621fd3..1f5f798702ab0e62d3f4e19ab345f3447684d5ed 100644 (file)
Binary files a/test/ref/DCP/dcp_test1/audio.mxf and b/test/ref/DCP/dcp_test1/audio.mxf differ
index b239661b9c399f182567f20800ed27d7f68c0648..26d410709f8905f01e35900c0ad5c5dd4d0ae995 100644 (file)
@@ -37,7 +37,7 @@
           <IntrinsicDuration>24</IntrinsicDuration>
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
-          <Hash>7a4KZ9j2kpSuBz+iBQD4f03ctm8=</Hash>
+          <Hash>vsVjRV9vhTBPUWfE/TT1o2vdQsI=</Hash>
           <FrameRate>24 1</FrameRate>
           <ScreenAspectRatio>1998 1080</ScreenAspectRatio>
         </MainPicture>
@@ -47,7 +47,7 @@
           <IntrinsicDuration>24</IntrinsicDuration>
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
-          <Hash>KcJb7S2K5cNm8RG4kfQD5FTeS0A=</Hash>
+          <Hash>3M7YTgvFKXXMEGLkIbV4miC90FE=</Hash>
         </MainSound>
         <meta:CompositionMetadataAsset xmlns:meta="http://www.smpte-ra.org/schemas/429-16/2014/CPL-Metadata">
           <Id>urn:uuid:dd015243-ab77-435c-a13d-690566885121</Id>
index 71cae6ff847b18f3cf27f286aa43effde06957f3..6a1392f39db559210791ac1cf5c98a11d8a5ceea 100644 (file)
@@ -9,7 +9,7 @@
     <Asset>
       <Id>urn:uuid:6affb8ee-0020-4dff-a53c-17652f6358ab</Id>
       <AnnotationText>6affb8ee-0020-4dff-a53c-17652f6358ab</AnnotationText>
-      <Hash>2DSYFM8X5sGdsYgzhs3mBbTNNmw=</Hash>
+      <Hash>skI+5b/9LA/y6h0mcyxysJYanxI=</Hash>
       <Size>8559</Size>
       <Type>text/xml</Type>
       <OriginalFileName>cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml</OriginalFileName>
@@ -17,7 +17,7 @@
     <Asset>
       <Id>urn:uuid:5407b210-4441-4e97-8b16-8bdc7c12da54</Id>
       <AnnotationText>5407b210-4441-4e97-8b16-8bdc7c12da54</AnnotationText>
-      <Hash>7a4KZ9j2kpSuBz+iBQD4f03ctm8=</Hash>
+      <Hash>vsVjRV9vhTBPUWfE/TT1o2vdQsI=</Hash>
       <Size>31648</Size>
       <Type>application/mxf</Type>
       <OriginalFileName>video.mxf</OriginalFileName>
@@ -25,7 +25,7 @@
     <Asset>
       <Id>urn:uuid:97f0f352-5b77-48ee-a558-9df37717f4fa</Id>
       <AnnotationText>97f0f352-5b77-48ee-a558-9df37717f4fa</AnnotationText>
-      <Hash>KcJb7S2K5cNm8RG4kfQD5FTeS0A=</Hash>
+      <Hash>3M7YTgvFKXXMEGLkIbV4miC90FE=</Hash>
       <Size>881326</Size>
       <Type>application/mxf</Type>
       <OriginalFileName>audio.mxf</OriginalFileName>
index eac7acea664a1ac4652e44b43365fa16e9d9fa09..cd0e43af2b388323a81742bf0eaeff9d539b89a8 100644 (file)
Binary files a/test/ref/DCP/dcp_test1/video.mxf and b/test/ref/DCP/dcp_test1/video.mxf differ
index e8bd446f9754f44fa41c2037c87334d3a092fc54..6a95baf3bbd2416aa88ed5e0a6fc5f98ab1c2388 100644 (file)
Binary files a/test/ref/DCP/dcp_test2/audio.mxf and b/test/ref/DCP/dcp_test2/audio.mxf differ
index 52a7779aac6ca3e1d162f557afd3d8750bc4ddd0..0e23332585d6175b678fc13eb94e13ea5bf7dab7 100644 (file)
@@ -22,7 +22,7 @@
           <IntrinsicDuration>24</IntrinsicDuration>
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
-          <Hash>NzWhEbTccUIh1sSXIbU+8POVui0=</Hash>
+          <Hash>X+4lOvviLTQeP28hyzhCOGjraiE=</Hash>
         </MainSound>
         <msp-cpl:MainStereoscopicPicture xmlns:msp-cpl="http://www.smpte-ra.org/schemas/429-10/2008/Main-Stereo-Picture-CPL">
           <Id>urn:uuid:5407b210-4441-4e97-8b16-8bdc7c12da54</Id>
@@ -30,7 +30,7 @@
           <IntrinsicDuration>24</IntrinsicDuration>
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
-          <Hash>BUpeFS6X9j+X0z2TZWSsLMT4pE0=</Hash>
+          <Hash>dU+tcR6bZ5BQ/TXKtBY03ejjUmc=</Hash>
           <FrameRate>48 1</FrameRate>
           <ScreenAspectRatio>1998 1080</ScreenAspectRatio>
         </msp-cpl:MainStereoscopicPicture>
index 061e8a6a74593a3b7f306702d25df9bfa966fac2..794cfb85b4789e04d5845a9ec077a7cccdc6fc8a 100644 (file)
@@ -9,7 +9,7 @@
     <Asset>
       <Id>urn:uuid:6affb8ee-0020-4dff-a53c-17652f6358ab</Id>
       <AnnotationText>6affb8ee-0020-4dff-a53c-17652f6358ab</AnnotationText>
-      <Hash>zaAcrAcv0oOzOa3etTP6xDfzQko=</Hash>
+      <Hash>2jp5+JDLOh5CqzQ8goZTzBEWsPo=</Hash>
       <Size>1686</Size>
       <Type>text/xml</Type>
       <OriginalFileName>cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml</OriginalFileName>
@@ -17,7 +17,7 @@
     <Asset>
       <Id>urn:uuid:5407b210-4441-4e97-8b16-8bdc7c12da54</Id>
       <AnnotationText>5407b210-4441-4e97-8b16-8bdc7c12da54</AnnotationText>
-      <Hash>BUpeFS6X9j+X0z2TZWSsLMT4pE0=</Hash>
+      <Hash>dU+tcR6bZ5BQ/TXKtBY03ejjUmc=</Hash>
       <Size>63160</Size>
       <Type>application/mxf</Type>
       <OriginalFileName>video.mxf</OriginalFileName>
@@ -25,7 +25,7 @@
     <Asset>
       <Id>urn:uuid:fc843acc-1ad9-4808-b9ed-33f5319e047d</Id>
       <AnnotationText>fc843acc-1ad9-4808-b9ed-33f5319e047d</AnnotationText>
-      <Hash>NzWhEbTccUIh1sSXIbU+8POVui0=</Hash>
+      <Hash>X+4lOvviLTQeP28hyzhCOGjraiE=</Hash>
       <Size>161326</Size>
       <Type>application/mxf</Type>
       <OriginalFileName>audio.mxf</OriginalFileName>
index 3b670708817297ecfc096c3e4a739fdf4beffa18..6200297c31a6dd0cd287349e1adad3d8a6dc3570 100644 (file)
Binary files a/test/ref/DCP/dcp_test2/video.mxf and b/test/ref/DCP/dcp_test2/video.mxf differ
index 947865e13c45feda38d3492e41ad035d5fc4f4a7..fc55b975beb0d1ae3ac546092d681ae756e8064b 100644 (file)
Binary files a/test/ref/DCP/dcp_test5/audio.mxf and b/test/ref/DCP/dcp_test5/audio.mxf differ
index 5fa3643bcb56996d5a8fd1e8ad697a2628fbc6be..0dbd01980a96c28e62fcec4d626ded70550d6fc8 100644 (file)
@@ -22,7 +22,7 @@
           <IntrinsicDuration>24</IntrinsicDuration>
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
-          <Hash>o3VmpdFsNUgF11oadcaGJ/IfO0M=</Hash>
+          <Hash>w7xIWU3Q+QnEQMq7BcOhsWO+OU0=</Hash>
           <FrameRate>24 1</FrameRate>
           <ScreenAspectRatio>1998 1080</ScreenAspectRatio>
         </MainPicture>
@@ -32,7 +32,7 @@
           <IntrinsicDuration>24</IntrinsicDuration>
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
-          <Hash>l+XLgxe2fMZDgY+0QYzDfGhvTQM=</Hash>
+          <Hash>5ANfi1KoyGiZ8hQIhDHm5f/OvQY=</Hash>
         </MainSound>
         <axd:AuxData xmlns:axd="http://www.dolby.com/schemas/2012/AD">
           <Id>urn:uuid:b68febcc-5ddf-489a-84a7-924f29fa2afd</Id>
index 49fd579bb05dd016e11822f06f5d1a40d4dc360e..e9b1e802bf609dfc0fbe49a147c3eca8c1627b6a 100644 (file)
@@ -9,7 +9,7 @@
     <Asset>
       <Id>urn:uuid:6affb8ee-0020-4dff-a53c-17652f6358ab</Id>
       <AnnotationText>6affb8ee-0020-4dff-a53c-17652f6358ab</AnnotationText>
-      <Hash>eqEIVxSAbJL+SROmqrDHbr9sb+A=</Hash>
+      <Hash>4zHV3/AhGYo5WjNmyuxeRSPOVwk=</Hash>
       <Size>2024</Size>
       <Type>text/xml</Type>
       <OriginalFileName>cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml</OriginalFileName>
@@ -17,7 +17,7 @@
     <Asset>
       <Id>urn:uuid:5407b210-4441-4e97-8b16-8bdc7c12da54</Id>
       <AnnotationText>5407b210-4441-4e97-8b16-8bdc7c12da54</AnnotationText>
-      <Hash>o3VmpdFsNUgF11oadcaGJ/IfO0M=</Hash>
+      <Hash>w7xIWU3Q+QnEQMq7BcOhsWO+OU0=</Hash>
       <Size>40144</Size>
       <Type>application/mxf</Type>
       <OriginalFileName>video.mxf</OriginalFileName>
@@ -25,7 +25,7 @@
     <Asset>
       <Id>urn:uuid:97f0f352-5b77-48ee-a558-9df37717f4fa</Id>
       <AnnotationText>97f0f352-5b77-48ee-a558-9df37717f4fa</AnnotationText>
-      <Hash>l+XLgxe2fMZDgY+0QYzDfGhvTQM=</Hash>
+      <Hash>5ANfi1KoyGiZ8hQIhDHm5f/OvQY=</Hash>
       <Size>161326</Size>
       <Type>application/mxf</Type>
       <OriginalFileName>audio.mxf</OriginalFileName>
index f3e7588b8d13ba259ab6a7def2a54fc0b9f73e72..3ec65a511319df1c802d028c3e67081ea8fa11e5 100644 (file)
Binary files a/test/ref/DCP/dcp_test5/video.mxf and b/test/ref/DCP/dcp_test5/video.mxf differ
index 5e08f74f86b8b05b36fffb5eb52a9b0300621fd3..1f5f798702ab0e62d3f4e19ab345f3447684d5ed 100644 (file)
Binary files a/test/ref/DCP/dcp_test7/audio.mxf and b/test/ref/DCP/dcp_test7/audio.mxf differ
index 42f0910989b7e1a690967014a6bb345231bbe530..13aecd8ab2b7a0bcbb10439d3cb664878b6ab7c7 100644 (file)
@@ -37,7 +37,7 @@
           <IntrinsicDuration>24</IntrinsicDuration>
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
-          <Hash>7a4KZ9j2kpSuBz+iBQD4f03ctm8=</Hash>
+          <Hash>vsVjRV9vhTBPUWfE/TT1o2vdQsI=</Hash>
           <FrameRate>24 1</FrameRate>
           <ScreenAspectRatio>1.85</ScreenAspectRatio>
         </MainPicture>
@@ -47,7 +47,7 @@
           <IntrinsicDuration>24</IntrinsicDuration>
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
-          <Hash>KcJb7S2K5cNm8RG4kfQD5FTeS0A=</Hash>
+          <Hash>3M7YTgvFKXXMEGLkIbV4miC90FE=</Hash>
         </MainSound>
       </AssetList>
     </Reel>
index f4eea4ee612d981b8e557d330f5fc9ac00e15f0c..9d2511090ee6d45f9832accef55ea1392648948f 100644 (file)
@@ -9,7 +9,7 @@
     <Asset>
       <Id>urn:uuid:6affb8ee-0020-4dff-a53c-17652f6358ab</Id>
       <AnnotationText>6affb8ee-0020-4dff-a53c-17652f6358ab</AnnotationText>
-      <Hash>z9r7fpZ4wf0GbiliDzpfKQvFkmo=</Hash>
+      <Hash>SgCEvehTaji0MCWOJTVioOcNndY=</Hash>
       <Size>1965</Size>
       <Type>text/xml;asdcpKind=CPL</Type>
       <OriginalFileName>cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml</OriginalFileName>
@@ -17,7 +17,7 @@
     <Asset>
       <Id>urn:uuid:5407b210-4441-4e97-8b16-8bdc7c12da54</Id>
       <AnnotationText>5407b210-4441-4e97-8b16-8bdc7c12da54</AnnotationText>
-      <Hash>7a4KZ9j2kpSuBz+iBQD4f03ctm8=</Hash>
+      <Hash>vsVjRV9vhTBPUWfE/TT1o2vdQsI=</Hash>
       <Size>31648</Size>
       <Type>application/x-smpte-mxf;asdcpKind=Picture</Type>
       <OriginalFileName>video.mxf</OriginalFileName>
@@ -25,7 +25,7 @@
     <Asset>
       <Id>urn:uuid:97f0f352-5b77-48ee-a558-9df37717f4fa</Id>
       <AnnotationText>97f0f352-5b77-48ee-a558-9df37717f4fa</AnnotationText>
-      <Hash>KcJb7S2K5cNm8RG4kfQD5FTeS0A=</Hash>
+      <Hash>3M7YTgvFKXXMEGLkIbV4miC90FE=</Hash>
       <Size>881326</Size>
       <Type>application/x-smpte-mxf;asdcpKind=Sound</Type>
       <OriginalFileName>audio.mxf</OriginalFileName>
index eac7acea664a1ac4652e44b43365fa16e9d9fa09..cd0e43af2b388323a81742bf0eaeff9d539b89a8 100644 (file)
Binary files a/test/ref/DCP/dcp_test7/video.mxf and b/test/ref/DCP/dcp_test7/video.mxf differ
index a4f89ae9cbe765774fc673ab820b79acd075c5ef..505b7f13de4fa53d7f46e178bd3488c8645117d9 100644 (file)
Binary files a/test/ref/DCP/encryption_test/audio.mxf and b/test/ref/DCP/encryption_test/audio.mxf differ
index e8e24467342fc6a1165ba9d859f7803feaeec282..6203c884b54ef1caffbc7bb03a9420478150af6d 100644 (file)
@@ -23,7 +23,7 @@
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
           <KeyId>urn:uuid:ac8d301c-e5d9-4343-b6f3-ba2668adbe56</KeyId>
-          <Hash>AVtX8wz76uG2Uw0Qbc9+DKnHUfw=</Hash>
+          <Hash>Q0GMntXvEqVQsiv+YkfhMrXdw0w=</Hash>
           <FrameRate>24 1</FrameRate>
           <ScreenAspectRatio>1998 1080</ScreenAspectRatio>
         </MainPicture>
@@ -34,7 +34,7 @@
           <EntryPoint>0</EntryPoint>
           <Duration>24</Duration>
           <KeyId>urn:uuid:7ab6c77b-6648-44b9-8549-a5290ada6238</KeyId>
-          <Hash>3o02UpYqrl6w0NQbFvrB2tKxaIk=</Hash>
+          <Hash>v0SCdh2xnKNzGC7Sk5pS2q5Q/wQ=</Hash>
         </MainSound>
       </AssetList>
     </Reel>
           <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
         </dsig:Transforms>
         <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
-        <dsig:DigestValue>X3YkODMLyEJsAz5v3S/uT+xDD7c=</dsig:DigestValue>
+        <dsig:DigestValue>DBBENxFb5Qv377fb86n0KgUQ7go=</dsig:DigestValue>
       </dsig:Reference>
     </dsig:SignedInfo>
-    <dsig:SignatureValue>jH02vGxlTTi9T94KCIfMkafmdO0wluP9cvh+u5HyYoZo/D7O1Ki202t5uHRp0wcu
-OfBFuu1Hw3Ooy/VEa2l4l/UDfE7lI+D79e0VfA8HwFB+c21GF7Q2FRV5ddu9ODgz
-rk6kC5fZSLxc7cpK6jPNnT285O3nHfjk6MQ0fgGfNbvMefgeEWVKj8qcyFgN6H4e
-wr1omcjbdw/HVQaOW84//pBRSRdMJGe1u2iUE2RwxBLzP4BepzkMv9Asm6uDo1YG
-X1d60g2aCUdxAg9fjyTaOss1nRp1YdPlb3SHUhKXgTT/eAPkmmr7bs3jJtp2BN9U
-4Izz2GR/3Uyf0NP20mZgNQ==</dsig:SignatureValue>
+    <dsig:SignatureValue>rhF1QacGUhxm1jfcgyBjAo2BmD4QxBl7c6Bzt8rjXXhR+NVT4ITeyxi39+94WwBx
+Yp8iQhF46bE2QGZAr+HnZZJGVG3ajeaQ4uvPp2KRC8sHpBlZ2rGGtyjXAflYjepw
+c1cLvRoAKbxOMW+ESxjyYOKgT0Bke0GhbzZ8+w+hGZLHxK9oTokIG9YDnRNUKN5W
+n6avbxuaT8wtZgVwD4qfKzMeJlYW3yDFo/2apQA5K+oCj/gfrS1habYqBoNo9kO1
+fWkQ7LIeRrYuzNlr5K4e/LyIm7SHwb9EGcA7K8WbDrHKvaJmTs/T01QhU9f+huk2
+ZGJMMCGHhiwcbVtqVhgJSQ==</dsig:SignatureValue>
     <dsig:KeyInfo>
       <dsig:X509Data>
         <dsig:X509IssuerSerial>
index 4d49b25927862b00c61a16534852d5cd00380a34..fb0313ab84e94637d7027558c66d4b90b47b7142 100644 (file)
@@ -9,7 +9,7 @@
     <Asset>
       <Id>urn:uuid:6affb8ee-0020-4dff-a53c-17652f6358ab</Id>
       <AnnotationText>6affb8ee-0020-4dff-a53c-17652f6358ab</AnnotationText>
-      <Hash>Zd9zaFAGx/4W2B3vSZkAqTzcDZ0=</Hash>
+      <Hash>sLWF9OcgdkvBUH1VcNiwseLA3sA=</Hash>
       <Size>9226</Size>
       <Type>text/xml</Type>
       <OriginalFileName>cpl_6affb8ee-0020-4dff-a53c-17652f6358ab.xml</OriginalFileName>
@@ -17,7 +17,7 @@
     <Asset>
       <Id>urn:uuid:9a7fbb03-4078-4944-90b1-0d8a21c9d793</Id>
       <AnnotationText>9a7fbb03-4078-4944-90b1-0d8a21c9d793</AnnotationText>
-      <Hash>AVtX8wz76uG2Uw0Qbc9+DKnHUfw=</Hash>
+      <Hash>Q0GMntXvEqVQsiv+YkfhMrXdw0w=</Hash>
       <Size>44008</Size>
       <Type>application/mxf</Type>
       <OriginalFileName>video.mxf</OriginalFileName>
@@ -25,7 +25,7 @@
     <Asset>
       <Id>urn:uuid:ce300880-a425-40a6-adac-eb1e3f5643fc</Id>
       <AnnotationText>ce300880-a425-40a6-adac-eb1e3f5643fc</AnnotationText>
-      <Hash>3o02UpYqrl6w0NQbFvrB2tKxaIk=</Hash>
+      <Hash>v0SCdh2xnKNzGC7Sk5pS2q5Q/wQ=</Hash>
       <Size>165454</Size>
       <Type>application/mxf</Type>
       <OriginalFileName>audio.mxf</OriginalFileName>
           <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
         </dsig:Transforms>
         <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
-        <dsig:DigestValue>0F1ZXfoRDPIQHlRG0MC1uXkahG8=</dsig:DigestValue>
+        <dsig:DigestValue>OU1UpJxBmpxK8SE5yfe8aJsqoIw=</dsig:DigestValue>
       </dsig:Reference>
     </dsig:SignedInfo>
-    <dsig:SignatureValue>u98MLscN/Fn3YxGFMw6kP7fIWUj05FPxQvIYvsIpP68UP3FX9rdP6nh3Olyv194d
-A1fQJu4ZamTcYN2O2E5vdGjxxHlPNXfFPckWc9Sy1i3V8u+EFdOggjMY4snvPot6
-kMyzAICuKzTJs4l+O/BzJAJSFSxrEtBCYEFxrtyKntDxSUE7ePSqPwcim6+5BzDO
-QOsIp3wjJHlp7u4QqU3knIiaM7SibIXqtIBF7TOrChWZjFImKePNib9/DXvnE2WL
-Y+5wJjGhImQR+2U2DDpSCLkl0kVgDrYfKcNg4lXUDZGEKo0Yqz0+1Rszz/DqsC+J
-6mYxqMMvRXeh9pViSpgKaA==</dsig:SignatureValue>
+    <dsig:SignatureValue>ypg6tt5iJi7YEUJQfEQmZeigXzcm2xn/J59tqqYBqwmAch1ia//Khyo6m7/HpQJl
+2Y5swUI8MtmzdV3gj3urd8WuQsDWFLflIHHiIanYE/XCdFZ8lV/nvyCkAaf/AH2V
+W7bWD8/fYXJD2G9a2tRiWTjzfgpsTk+ox+C12Y/SebWAQ97sSLIMwwmQIYK2kTnh
+nbKSuhk+v+V2ObpYl48zXu3za3Yt77rCdcGgPwYr/NUI47ascpnueNw48clDtjp+
+775jeA5ZG5lBR3VGTLwvoOXT3CH/FgG0DPSLmYbRnOzEShVUt7xFgbxMgNTYOGQJ
+3ipS6qmHgWHjX3/fo6isgg==</dsig:SignatureValue>
     <dsig:KeyInfo>
       <dsig:X509Data>
         <dsig:X509IssuerSerial>
index 2fbfacdd8e5d2d162a735a8b9e045740440fe71e..e6ddbadbaf814d273c28b501a3b4c5b23723b57f 100644 (file)
Binary files a/test/ref/DCP/encryption_test/video.mxf and b/test/ref/DCP/encryption_test/video.mxf differ
index 6a359aebe48ba639c4098295148edfcdc01529a8..497120d4ae0b273aa90927df00e20cd9a0fd6013 100644 (file)
@@ -260,14 +260,14 @@ check_file (boost::filesystem::path ref, boost::filesystem::path check)
 
 RNGFixer::RNGFixer ()
 {
-       Kumu::cth_test = true;
+       Kumu::dcpomatic_test = true;
        Kumu::FortunaRNG().Reset();
 }
 
 
 RNGFixer::~RNGFixer ()
 {
-       Kumu::cth_test = false;
+       Kumu::dcpomatic_test = false;
 }
 
 
index b6d0ac1e590ebe0de2c5dd8ea0a3c3f480481953..34707b1f7a7df426b6501c2d819e39482b9761d3 100644 (file)
@@ -356,16 +356,16 @@ BOOST_AUTO_TEST_CASE (verify_incorrect_picture_sound_hash)
        HashCalculator video_calc(video_path);
        auto mod = fopen(video_path.string().c_str(), "r+b");
        BOOST_REQUIRE (mod);
-       fseek (mod, 4096, SEEK_SET);
+       BOOST_REQUIRE_EQUAL(fseek(mod, -16, SEEK_END), 0);
        int x = 42;
-       fwrite (&x, sizeof(x), 1, mod);
+       BOOST_REQUIRE(fwrite(&x, sizeof(x), 1, mod) == 1);
        fclose (mod);
 
        auto audio_path = path(dir / "audio.mxf");
        HashCalculator audio_calc(audio_path);
        mod = fopen(audio_path.string().c_str(), "r+b");
        BOOST_REQUIRE (mod);
-       BOOST_REQUIRE_EQUAL (fseek(mod, -64, SEEK_END), 0);
+       BOOST_REQUIRE_EQUAL(fseek(mod, 0, SEEK_END), 0);
        BOOST_REQUIRE (fwrite (&x, sizeof(x), 1, mod) == 1);
        fclose (mod);
 
@@ -406,9 +406,9 @@ BOOST_AUTO_TEST_CASE (verify_mismatched_picture_sound_hashes)
                                ).set_reference_hash("x" + calc.old_hash()).set_calculated_hash(calc.old_hash()),
                        { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::MISMATCHED_PICTURE_HASHES, canonical(dir / "video.mxf") },
                        { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::MISMATCHED_SOUND_HASHES, canonical(dir / "audio.mxf") },
-                       { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_XML, "value 'xKcJb7S2K5cNm8RG4kfQD5FTeS0A=' is invalid Base64-encoded binary", canonical(dir / dcp_test1_pkl()), 28 },
-                       { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_XML, "value 'x2DSYFM8X5sGdsYgzhs3mBbTNNmw=' is invalid Base64-encoded binary", canonical(dir / dcp_test1_pkl()), 12 },
-                       { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_XML, "value 'x7a4KZ9j2kpSuBz+iBQD4f03ctm8=' is invalid Base64-encoded binary", canonical(dir / dcp_test1_pkl()), 20 },
+                       { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_XML, "value 'x3M7YTgvFKXXMEGLkIbV4miC90FE=' is invalid Base64-encoded binary", canonical(dir / dcp_test1_pkl()), 28 },
+                       { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_XML, "value 'xskI+5b/9LA/y6h0mcyxysJYanxI=' is invalid Base64-encoded binary", canonical(dir / dcp_test1_pkl()), 12 },
+                       { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_XML, "value 'xvsVjRV9vhTBPUWfE/TT1o2vdQsI=' is invalid Base64-encoded binary", canonical(dir / dcp_test1_pkl()), 20 },
                });
 }
 
@@ -1503,7 +1503,7 @@ verify_timed_text_asset_too_large (string name)
                { dir },
                {},
                {
-                       { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::INVALID_TIMED_TEXT_SIZE_IN_BYTES, string("121695488"), canonical(dir / "subs.mxf") },
+                       { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::INVALID_TIMED_TEXT_SIZE_IN_BYTES, string("121698284"), canonical(dir / "subs.mxf") },
                        { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::INVALID_TIMED_TEXT_FONT_SIZE_IN_BYTES, string("121634816"), canonical(dir / "subs.mxf") },
                        { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::MISSING_SUBTITLE_START_TIME, canonical(dir / "subs.mxf") },
                        { dcp::VerificationNote::Type::WARNING, dcp::VerificationNote::Code::INVALID_SUBTITLE_FIRST_TEXT_TIME },
index d2cac0b38aaf21f5b40f72465f6b8e6c41ec8540..e401f72094b55cd2cb7d88c60bc3d1f6f0cc26b3 100644 (file)
@@ -53,7 +53,7 @@ def configure(conf):
 def build(bld):
     obj = bld(features='cxx cxxprogram')
     obj.name   = 'tests'
-    obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM BOOST_DATETIME OPENJPEG CXML XMLSEC1 SNDFILE OPENMP ASDCPLIB_CTH LIBXML++ OPENSSL XERCES DL'
+    obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM BOOST_DATETIME OPENJPEG CXML XMLSEC1 SNDFILE OPENMP ASDCPLIB_DCPOMATIC LIBXML++ OPENSSL XERCES DL'
     obj.cppflags = ['-fno-inline', '-fno-elide-constructors', '-g', '-O0']
     if bld.env['CXX_NAME'] == 'gcc':
         obj.cppflags.append('-fno-default-inline')
@@ -123,7 +123,7 @@ def build(bld):
 
     obj = bld(features='cxx cxxprogram')
     obj.name   = 'subs_in_out'
-    obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM OPENJPEG CXML OPENMP ASDCPLIB_CTH XMLSEC1 OPENSSL DL LIBXML++'
+    obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM OPENJPEG CXML OPENMP ASDCPLIB_DCPOMATIC XMLSEC1 OPENSSL DL LIBXML++'
     obj.cppflags = ['-fno-inline', '-fno-elide-constructors', '-g', '-O0']
     if bld.env['CXX_NAME'] == 'gcc':
         obj.cppflags.append('-fno-default-inline')
@@ -140,7 +140,7 @@ def build(bld):
 
     obj = bld(features='cxx cxxprogram')
     obj.name   = 'rewrite_subs'
-    obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM OPENJPEG CXML OPENMP ASDCPLIB_CTH XMLSEC1 OPENSSL DL LIBXML++'
+    obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM OPENJPEG CXML OPENMP ASDCPLIB_DCPOMATIC XMLSEC1 OPENSSL DL LIBXML++'
     obj.cppflags = ['-fno-inline', '-fno-elide-constructors', '-g', '-O0']
     if bld.env['CXX_NAME'] == 'gcc':
         obj.cppflags.append('-fno-default-inline')
index 3ee04e9457db5960cd8e33a1cf54c76b6b56f879..53b74e7074d98cf164668d94286e371fb2c8cb54 100644 (file)
@@ -32,7 +32,7 @@
 #
 
 def build(bld):
-    uselib = 'OPENJPEG CXML OPENMP ASDCPLIB_CTH BOOST_FILESYSTEM LIBXML++ XMLSEC1 OPENSSL XERCES DL MAGICK'
+    uselib = 'OPENJPEG CXML OPENMP ASDCPLIB_DCPOMATIC BOOST_FILESYSTEM LIBXML++ XMLSEC1 OPENSSL XERCES DL MAGICK'
 
     for f in ['diff', 'info', 'verify']:
         obj = bld(features='cxx cxxprogram')
diff --git a/wscript b/wscript
index 8960553d595ef3c7d8b384b003110cad7ff64454..d48e7135a48a1bda29c132c7e19d80b222edc5bb 100644 (file)
--- a/wscript
+++ b/wscript
@@ -59,7 +59,7 @@ def options(opt):
     opt.add_option('--target-windows-64', action='store_true', default=False, help='set up to do a cross-compile to Windows 64-bit')
     opt.add_option('--target-windows-32', action='store_true', default=False, help='set up to do a cross-compile to Windows 32-bit')
     opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation')
-    opt.add_option('--static', action='store_true', default=False, help='build libdcp statically, and link statically to openjpeg, cxml, asdcplib-carl')
+    opt.add_option('--static', action='store_true', default=False, help='build libdcp statically, and link statically to openjpeg, cxml, asdcplib-dcpomatic')
     opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests')
     opt.add_option('--disable-benchmarks', action='store_true', default=False, help='disable building of benchmarks')
     opt.add_option('--enable-gcov', action='store_true', default=False, help='use gcov in tests')
@@ -166,16 +166,16 @@ def configure(conf):
 
     if conf.options.static:
         conf.env.STLIB_OPENJPEG = ['openjp2']
-        conf.check_cfg(package='libasdcp-carl', args='libasdcp-carl >= 0.1.3 --cflags', uselib_store='ASDCPLIB_CTH', mandatory=True)
-        conf.env.HAVE_ASDCPLIB_CTH = 1
-        conf.env.STLIB_ASDCPLIB_CTH = ['asdcp-carl', 'kumu-carl']
+        conf.check_cfg(package='libasdcp-dcpomatic', args='libasdcp-dcpomatic >= 0.1.3 --cflags', uselib_store='ASDCPLIB_DCPOMATIC', mandatory=True)
+        conf.env.HAVE_ASDCPLIB_DCPOMATIC = 1
+        conf.env.STLIB_ASDCPLIB_DCPOMATIC = ['asdcp-dcpomatic', 'kumu-dcpomatic']
         conf.env.HAVE_CXML = 1
         conf.env.LIB_CXML = ['xml++-' + conf.env.XMLPP_API, 'glibmm-2.4']
         conf.env.STLIB_CXML = ['cxml']
         conf.check_cfg(package='xerces-c', args='--cflags', uselib_store='XERCES', mandatory=True)
         conf.env.LIB_XERCES = ['xerces-c', 'icuuc', 'curl']
     else:
-        conf.check_cfg(package='libasdcp-carl', args='libasdcp-carl >= 0.1.3 --cflags --libs', uselib_store='ASDCPLIB_CTH', mandatory=True)
+        conf.check_cfg(package='libasdcp-dcpomatic', args='libasdcp-dcpomatic >= 0.1.3 --cflags --libs', uselib_store='ASDCPLIB_DCPOMATIC', mandatory=True)
         conf.check_cfg(package='libcxml', args='libcxml >= 0.17.0 --cflags --libs', uselib_store='CXML', mandatory=True)
         conf.check_cfg(package='xerces-c', args='--cflags --libs', uselib_store='XERCES', mandatory=True)