summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-06 00:20:01 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-06 00:20:01 +0000
commitb7257aefd5e7c3904e34b78b384c7577751df812 (patch)
treec32c96aa3c8700e69cc7037cdc75f5488cff6aa4
parent4c9f24f422305dc69bd18b0bba6f76cccd1df21d (diff)
parent045402635eb36956b9361c3dfde15d5954645c18 (diff)
Merge branch 'master' of ssh://git.carlh.net/home/carl/git/libdcp
-rw-r--r--src/object.h12
-rw-r--r--tools/dcpdecryptmxf.cc52
2 files changed, 6 insertions, 58 deletions
diff --git a/src/object.h b/src/object.h
index d44f1be2..0132a0db 100644
--- a/src/object.h
+++ b/src/object.h
@@ -41,12 +41,12 @@
#include <boost/noncopyable.hpp>
#include <string>
-class write_interop_subtitle_test;
-class write_interop_subtitle_test2;
-class write_interop_subtitle_test3;
-class write_smpte_subtitle_test;
-class write_smpte_subtitle_test2;
-class write_smpte_subtitle_test3;
+struct write_interop_subtitle_test;
+struct write_interop_subtitle_test2;
+struct write_interop_subtitle_test3;
+struct write_smpte_subtitle_test;
+struct write_smpte_subtitle_test2;
+struct write_smpte_subtitle_test3;
namespace dcp {
diff --git a/tools/dcpdecryptmxf.cc b/tools/dcpdecryptmxf.cc
index 6a10c641..b5cf6b9b 100644
--- a/tools/dcpdecryptmxf.cc
+++ b/tools/dcpdecryptmxf.cc
@@ -63,58 +63,6 @@ help (string n)
<< " -p, --private-key private key file\n";
}
-/* XXX: this method is unused */
-int
-atmos (
- ASDCP::ATMOS::MXFReader& reader,
- boost::filesystem::path output_file,
- dcp::DecryptedKDM kdm
- )
-{
- ASDCP::WriterInfo info;
- if (ASDCP_FAILURE (reader.FillWriterInfo (info))) {
- cerr << "Could not read ATMOS MXF information\n";
- exit (EXIT_FAILURE);
- }
-
- if (!info.EncryptedEssence) {
- cerr << "MXF is not encrypted!\n";
- exit (EXIT_FAILURE);
- }
-
- char key_buffer[64];
- Kumu::bin2UUIDhex (info.CryptographicKeyID, ASDCP::UUIDlen, key_buffer, sizeof (key_buffer));
- string const key_id = key_buffer;
-
- optional<dcp::Key> key;
- BOOST_FOREACH (dcp::DecryptedKDMKey const & i, kdm.keys()) {
- if (i.id() == key_id) {
- key = i.key();
- }
- }
-
- if (!key) {
- cerr << "Could not find key in KDM.\n";
- exit (EXIT_FAILURE);
- }
-
- dcp::DecryptionContext dc (key.get(), dcp::SMPTE);
-
- ASDCP::ATMOS::AtmosDescriptor desc;
- if (ASDCP_FAILURE (reader.FillAtmosDescriptor (desc))) {
- cerr << "could not read ATMOS descriptor.\n";
- exit (EXIT_FAILURE);
- }
-
- ASDCP::DCData::FrameBuffer buffer (Kumu::Megabyte);
-
- for (size_t i = 0; i < desc.ContainerDuration; ++i) {
- reader.ReadFrame (i, buffer, dc.context(), 0);
- }
-
- return 0;
-}
-
int
main (int argc, char* argv[])
{