More header trimming.
authorCarl Hetherington <cth@carlh.net>
Tue, 13 Dec 2022 10:18:31 +0000 (11:18 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 13 Dec 2022 10:18:31 +0000 (11:18 +0100)
39 files changed:
cscript
src/lib/analyse_subtitles_job.h
src/lib/atmos_content.h
src/lib/audio_examiner.h
src/lib/audio_ring_buffers.h
src/lib/butler.h
src/lib/config.cc
src/lib/config.h
src/lib/content.h
src/lib/content_atmos.h
src/lib/content_audio.h
src/lib/content_text.h
src/lib/content_video.h
src/lib/copy_dcp_details_to_film.cc
src/lib/dcp_encoder.h
src/lib/dcp_video.h
src/lib/encode_server_description.h
src/lib/encoder.h
src/lib/ffmpeg_image_proxy.h
src/lib/film.h
src/lib/frame_rate_change.cc
src/lib/hints.h
src/lib/overlaps.h
src/lib/resampler.h
src/lib/shuffler.h
src/lib/subtitle_encoder.h
src/lib/text_type.cc [new file with mode: 0644]
src/lib/text_type.h [new file with mode: 0644]
src/lib/types.cc
src/lib/types.h
src/lib/video_content.h
src/lib/video_examiner.h
src/lib/video_ring_buffers.h
src/lib/writer.h
src/lib/wscript
src/wx/audio_mapping_view.h
src/wx/content_panel.h
src/wx/timecode.h
wscript

diff --git a/cscript b/cscript
index 7568338dd94fd56ce8062b708b213fdcdbbf92eb..b025e869012bf17aad49343534c91a5581c711b3 100644 (file)
--- a/cscript
+++ b/cscript
@@ -453,7 +453,7 @@ def dependencies(target, options):
         # Use distro-provided FFmpeg on Arch
         deps = []
 
-    deps.append(('libdcp', 'v1.8.37'))
+    deps.append(('libdcp', 'v1.8.38'))
     deps.append(('libsub', 'v1.6.42'))
     deps.append(('leqm-nrt', '93ae9e6'))
     deps.append(('rtaudio', 'f619b76'))
index daaaf267a6b9a346fe0b04a2d16e27120eac667d..ef720ef09733b49557a23fd17af477bd43dc45f6 100644 (file)
@@ -20,8 +20,8 @@
 
 
 #include "job.h"
-#include "types.h"
 #include "player_text.h"
+#include "text_type.h"
 
 
 class Film;
index 8edab8c3168937057d4a9085250a829d4a3e51f3..cfacb9729255adc033f6d6e95fbc5fde6f450bf8 100644 (file)
@@ -20,6 +20,7 @@
 
 
 #include "content_part.h"
+#include "types.h"
 
 
 class Content;
index a1d952c35ef6a97b125c6350d18b9f1725328617..f18387041ada09c709cf8d36e7ff9ab8e7aaeb44 100644 (file)
@@ -25,8 +25,6 @@
  *  @brief AudioExaminer class.
  */
 
-#include "types.h"
-
 /** @class AudioExaminer
  *  @brief Parent for classes which examine AudioContent for their pertinent details.
  */
index 6fb84e0d76dc8684757827742d183943e7b62a51..376ff92eec09239c949b15597903403af5bcf02c 100644 (file)
@@ -24,8 +24,8 @@
 
 
 #include "audio_buffers.h"
-#include "types.h"
 #include "dcpomatic_time.h"
+#include "types.h"
 #include <boost/thread.hpp>
 #include <list>
 
index 1dba6e129839ab1ff9920bd1ee61d3cac622d2c3..6bb0467af1f526ed5670dde6237511c47cc0f8df 100644 (file)
@@ -28,6 +28,7 @@
 #include "change_signaller.h"
 #include "exception_store.h"
 #include "text_ring_buffers.h"
+#include "text_type.h"
 #include "video_ring_buffers.h"
 #include <boost/asio.hpp>
 #include <boost/signals2.hpp>
index 81d4ab16038ac1261f9e47630ef5e6c244aec686..e3be484e242542fbdd5f5d3107f306d6ceb479f9 100644 (file)
@@ -33,7 +33,6 @@
 #include "filter.h"
 #include "log.h"
 #include "ratio.h"
-#include "types.h"
 #include "zipper.h"
 #include <dcp/certificate_chain.h>
 #include <dcp/name_format.h>
index 62a36f084a64fa0444a19b71af143cb104f62904..2535bd82ae0d5ef3f34ca891b04c0f15623888d0 100644 (file)
@@ -31,7 +31,6 @@
 #include "export_config.h"
 #include "rough_duration.h"
 #include "state.h"
-#include "types.h"
 #include <dcp/name_format.h>
 #include <dcp/certificate_chain.h>
 #include <dcp/encrypted_kdm.h>
index ce6eaa83be63a1eceef990688e9bd328e2915961..eddce2858d2d77e775ea2120fc443a562c442db8 100644 (file)
@@ -31,8 +31,8 @@
 #include "change_signaller.h"
 #include "dcpomatic_time.h"
 #include "signaller.h"
-#include "types.h"
 #include "user_property.h"
+#include "text_type.h"
 #include <libcxml/cxml.h>
 #include <boost/filesystem.hpp>
 #include <boost/signals2.hpp>
index 891ca3b834d0a1fc697e8c94921f22833ff9a9f5..bffa94dcc81a6866db6ca1201d3dcbcdb833e733 100644 (file)
 
 */
 
+
 #ifndef DCPOMATIC_CONTENT_ATMOS_H
 #define DCPOMATIC_CONTENT_ATMOS_H
 
+
 #include "atmos_metadata.h"
 #include "types.h"
 #include <dcp/atmos_asset_reader.h>
 
+
 /** @class ContentAtmos
  *  @brief Some Atmos data that has come out of a decoder.
  */
index 89a908b6870ef06a46a6099873cd42c099d1d29f..074d6b42843869b6cb44e5bb207739e7918e95f2 100644 (file)
 
 */
 
+
 #ifndef DCPOMATIC_CONTENT_AUDIO_H
 #define DCPOMATIC_CONTENT_AUDIO_H
 
+
 /** @file  src/lib/content_audio.h
  *  @brief ContentAudio class.
  */
 
+
 #include "audio_buffers.h"
 #include "types.h"
 
+
 /** @class ContentAudio
  *  @brief A block of audio from a piece of content, with a timestamp as a frame within that content.
  */
@@ -43,4 +47,5 @@ public:
        Frame frame;
 };
 
+
 #endif
index 06fb39cfce6c423166c465a07d4d59af5367ef7e..51d4e8009942899c7008dcb838d27733de37af03 100644 (file)
@@ -27,7 +27,6 @@
 #include "dcpomatic_time.h"
 #include "rect.h"
 #include "string_text.h"
-#include "types.h"
 #include <dcp/subtitle_string.h>
 #include <vector>
 
index 8ca18576e4e939f9c7b469924b6f5e63e89a8d10..4fdab717a2965749bbd78f7a9939e1403eb15496 100644 (file)
 
 */
 
+
 #ifndef DCPOMATIC_CONTENT_VIDEO_H
 #define DCPOMATIC_CONTENT_VIDEO_H
 
+
 #include "types.h"
 
+
 class ImageProxy;
 
+
 /** @class ContentVideo
  *  @brief A frame of video straight out of some content.
  */
index 5c3c79638b877ef00d6f358fa7c5115a6a8a5167..a269fae97de1abc5cf1409308bfad9e32a7889eb 100644 (file)
 
 */
 
+
+#include "audio_content.h"
 #include "copy_dcp_details_to_film.h"
 #include "dcp_content.h"
+#include "dcp_content_type.h"
 #include "film.h"
-#include "types.h"
-#include "video_content.h"
-#include "audio_content.h"
 #include "ratio.h"
-#include "dcp_content_type.h"
+#include "video_content.h"
 #include <map>
 
 
 using std::map;
+using std::shared_ptr;
 using std::string;
 using std::vector;
-using std::shared_ptr;
 
 
 void
index a78ea1a9066a89d9d8a2738e2bbff878ddafd19e..ad77f6951312c03ace8fe91e7fe4d91608f2f743 100644 (file)
@@ -25,7 +25,6 @@
 #include "encoder.h"
 #include "player_text.h"
 #include "j2k_encoder.h"
-#include "types.h"
 #include "writer.h"
 #include <dcp/atmos_frame.h>
 
index 5b397a391608c2b0d02357783ad50da45406a822..33df0942cbb5e7a1e6c6c88b3edb3c9e2feb7ec2 100644 (file)
@@ -23,6 +23,7 @@
 #include "resolution.h"
 #include <libcxml/cxml.h>
 #include <dcp/array_data.h>
+#include <dcp/openjpeg_image.h>
 
 
 /** @file  src/dcp_video_frame.h
index f60051b85fcd9a06c7b98348f2ed20bc0b0ae50e..f79b890f7144c3b68eed6b49f5c350fdbdc9b8d1 100644 (file)
 
 */
 
+
 #ifndef DCPOMATIC_ENCODE_SERVER_DESCRIPTION_H
 #define DCPOMATIC_ENCODE_SERVER_DESCRIPTION_H
 
+
 #include "types.h"
 #include <boost/date_time/posix_time/posix_time.hpp>
 
+
 /** @class EncodeServerDescription
  *  @brief Class to describe a server to which we can send encoding work.
  */
index 24217b1244179648e0e55cfa85298836734e711c..9b67720d361cc56931fa39867b20e70003bd08ae 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "player.h"
 #include "player_text.h"
-#include "types.h"
 #include <boost/signals2.hpp>
 
 
index b2b0260b5437eab63ae99bc66e8d30ad76349ddd..df8301f15a183cd11b4517728ebb422fad4bece7 100644 (file)
@@ -19,7 +19,6 @@
 */
 
 #include "image_proxy.h"
-#include "types.h"
 #include <dcp/array_data.h>
 #include <boost/thread/mutex.hpp>
 #include <boost/filesystem.hpp>
index f3e05f083f5690944dac5e1caa922e4cfc128cfb..41b04c997463a66df784cf7f37310a6c096c1414 100644 (file)
@@ -37,6 +37,7 @@
 #include "resolution.h"
 #include "signaller.h"
 #include "transcode_job.h"
+#include "types.h"
 #include "util.h"
 #include <dcp/encrypted_kdm.h>
 #include <dcp/file.h>
index 99424a9c1d55e969245c9c2cec2b2f2581a28b3b..8372493ef71e04c4ffe51cf7338d547c36986664 100644 (file)
@@ -23,7 +23,6 @@
 #include "content.h"
 #include "film.h"
 #include "frame_rate_change.h"
-#include "types.h"
 #include <cmath>
 
 #include "i18n.h"
index 985fa1910d9b10733b88a4f827687bf11de9455a..b29b1c0fc49754c12d3f8fd49d84a002b3ab04a0 100644 (file)
@@ -22,7 +22,6 @@
 #include "audio_analyser.h"
 #include "signaller.h"
 #include "player_text.h"
-#include "types.h"
 #include "dcp_text_track.h"
 #include "dcpomatic_time.h"
 #include "weak_film.h"
index bce163a5766014c3f255e4b22bd6cce0e0e2f720..bb8277eaa91807966e2adf0f2779b1706211d283 100644 (file)
@@ -19,8 +19,8 @@
 */
 
 
-#include "types.h"
 #include "dcpomatic_time.h"
+#include "types.h"
 
 
 class ContentPart;
index 0dbd0b491edaa3c3b64d0ad00291ef0dca95ce91..95b71c222e814570a8f1a5bc6cf92bfb7244df5f 100644 (file)
@@ -19,8 +19,8 @@
 */
 
 
-#include "types.h"
 #include <samplerate.h>
+#include <memory>
 
 
 class AudioBuffers;
index 476f571b4571d88fef4d14eba5e5aaf56afef15d..4d1404560f2dc09ce597273a15b825d3b9137042 100644 (file)
@@ -24,7 +24,6 @@
 
 
 #include "content_video.h"
-#include "types.h"
 #include <boost/signals2.hpp>
 
 
index a10e4ba47e09e27e5cb16296c9c1bc0ffde8804e..17d658e6203d31dad0d99179d52f40331ee7e9ab 100644 (file)
 */
 
 
-#include "types.h"
-#include "player_text.h"
 #include "dcp_text_track.h"
-#include "encoder.h"
 #include "dcpomatic_time.h"
+#include "encoder.h"
+#include "player_text.h"
 
 
 namespace dcp {
diff --git a/src/lib/text_type.cc b/src/lib/text_type.cc
new file mode 100644 (file)
index 0000000..b1dcfc9
--- /dev/null
@@ -0,0 +1,78 @@
+/*
+    Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net>
+
+    This file is part of DCP-o-matic.
+
+    DCP-o-matic 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.
+
+    DCP-o-matic 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 DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+
+#include "compose.hpp"
+#include "dcpomatic_assert.h"
+#include "exceptions.h"
+#include "text_type.h"
+#include "types.h"
+
+#include "i18n.h"
+
+
+using std::string;
+
+
+TextType
+string_to_text_type(string s)
+{
+       if (s == "unknown") {
+               return TextType::UNKNOWN;
+       } else if (s == "open-subtitle") {
+               return TextType::OPEN_SUBTITLE;
+       } else if (s == "closed-caption") {
+               return TextType::CLOSED_CAPTION;
+       } else {
+               throw MetadataError(String::compose("Unknown text type %1", s));
+       }
+}
+
+string
+text_type_to_string(TextType t)
+{
+       switch (t) {
+       case TextType::UNKNOWN:
+               return "unknown";
+       case TextType::OPEN_SUBTITLE:
+               return "open-subtitle";
+       case TextType::CLOSED_CAPTION:
+               return "closed-caption";
+       default:
+               DCPOMATIC_ASSERT(false);
+       }
+}
+
+string
+text_type_to_name(TextType t)
+{
+       switch (t) {
+       case TextType::UNKNOWN:
+               return _("Timed text");
+       case TextType::OPEN_SUBTITLE:
+               return _("Open subtitles");
+       case TextType::CLOSED_CAPTION:
+               return _("Closed captions");
+       default:
+               DCPOMATIC_ASSERT(false);
+       }
+}
+
+
diff --git a/src/lib/text_type.h b/src/lib/text_type.h
new file mode 100644 (file)
index 0000000..d21e03a
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+    Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net>
+
+    This file is part of DCP-o-matic.
+
+    DCP-o-matic 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.
+
+    DCP-o-matic 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 DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+
+#ifndef DCPOMATIC_TEXT_TYPE_H
+#define DCPOMATIC_TEXT_TYPE_H
+
+
+#include <string>
+
+
+/** Type of captions.
+ *
+ *  The generally accepted definitions seem to be:
+ *  - subtitles: text for an audience who doesn't speak the film's language
+ *  - captions:  text for a hearing-impaired audience
+ *  - open:      on-screen
+ *  - closed:    only visible by some audience members
+ *
+ *  At the moment DoM supports open subtitles and closed captions.
+ *
+ *  There is some use of the word `subtitle' in the code which may mean
+ *  caption in some contexts.
+ */
+enum class TextType
+{
+       UNKNOWN,
+       OPEN_SUBTITLE,
+       CLOSED_CAPTION,
+       COUNT
+};
+
+extern std::string text_type_to_string(TextType t);
+extern std::string text_type_to_name(TextType t);
+extern TextType string_to_text_type(std::string s);
+
+
+#endif
+
index fd4b8906ce19e5c67e2c8e349028369a277e3f27..3ac3690c0bd8dfccb567b67ae693a389d63e6d71 100644 (file)
@@ -43,50 +43,6 @@ using std::vector;
 using dcp::raw_convert;
 
 
-TextType
-string_to_text_type (string s)
-{
-       if (s == "unknown") {
-               return TextType::UNKNOWN;
-       } else if (s == "open-subtitle") {
-               return TextType::OPEN_SUBTITLE;
-       } else if (s == "closed-caption") {
-               return TextType::CLOSED_CAPTION;
-       } else {
-               throw MetadataError (String::compose ("Unknown text type %1", s));
-       }
-}
-
-string
-text_type_to_string (TextType t)
-{
-       switch (t) {
-       case TextType::UNKNOWN:
-               return "unknown";
-       case TextType::OPEN_SUBTITLE:
-               return "open-subtitle";
-       case TextType::CLOSED_CAPTION:
-               return "closed-caption";
-       default:
-               DCPOMATIC_ASSERT (false);
-       }
-}
-
-string
-text_type_to_name (TextType t)
-{
-       switch (t) {
-       case TextType::UNKNOWN:
-               return _("Timed text");
-       case TextType::OPEN_SUBTITLE:
-               return _("Open subtitles");
-       case TextType::CLOSED_CAPTION:
-               return _("Closed captions");
-       default:
-               DCPOMATIC_ASSERT (false);
-       }
-}
-
 CPLSummary::CPLSummary (boost::filesystem::path p)
        : dcp_directory (p.leaf().string())
 {
index 9801ef5578c3efc5a105bc925b583333d9602ef0..36059401ec8eb96d73a6921d4715443ab028d9fc 100644 (file)
@@ -111,32 +111,6 @@ enum class ReelType
 };
 
 
-/** Type of captions.
- *
- *  The generally accepted definitions seem to be:
- *  - subtitles: text for an audience who doesn't speak the film's language
- *  - captions:  text for a hearing-impaired audience
- *  - open:      on-screen
- *  - closed:    only visible by some audience members
- *
- *  At the moment DoM supports open subtitles and closed captions.
- *
- *  There is some use of the word `subtitle' in the code which may mean
- *  caption in some contexts.
- */
-enum class TextType
-{
-       UNKNOWN,
-       OPEN_SUBTITLE,
-       CLOSED_CAPTION,
-       COUNT
-};
-
-extern std::string text_type_to_string (TextType t);
-extern std::string text_type_to_name (TextType t);
-extern TextType string_to_text_type (std::string s);
-
-
 struct CPLSummary
 {
        CPLSummary (boost::filesystem::path p);
index 3ef8b277592eaf7f04944ef08cdfe4b294c11c9e..9f6cc105ea42155fec19d9776ff016a368e96280 100644 (file)
@@ -31,6 +31,7 @@
 #include "user_property.h"
 #include "video_frame_type.h"
 #include "video_range.h"
+#include "types.h"
 #include <dcp/language_tag.h>
 #include <boost/thread/mutex.hpp>
 
index 86dd9345a5e75b7e5dd0f511fdcaeeb7f0fd62be..44a1186bb5fa4ff0c0cbbf660aa6f5eeebf50036 100644 (file)
@@ -25,7 +25,6 @@
 
 
 #include "pixel_quanta.h"
-#include "types.h"
 #include "video_content.h"
 #include <dcp/types.h>
 
index 842336a26d5a946790c878045faf16c96a0faa08..1514e9bbd2e23e58a7c9b4989abca99e0706a6c6 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "dcpomatic_time.h"
 #include "player_video.h"
-#include "types.h"
 #include <boost/thread/mutex.hpp>
 #include <utility>
 
index b4cc3ecaaae8e5d7fcc82259697ab35fd54e24d9..1fbf7bbd56b0d72e3cea39de85487ae5e2605870 100644 (file)
@@ -34,7 +34,6 @@
 #include "exception_store.h"
 #include "font_id_map.h"
 #include "player_text.h"
-#include "types.h"
 #include "weak_film.h"
 #include <dcp/atmos_frame.h>
 #include <boost/thread.hpp>
index cdf864cfc5b9c396cce836ae74b3abf31bc70d05..43ccead77669a74137113402ac2165d456c0e904 100644 (file)
@@ -181,6 +181,7 @@ sources = """
           subtitle_analysis.cc
           subtitle_encoder.cc
           text_ring_buffers.cc
+          text_type.cc
           timer.cc
           transcode_job.cc
           trusted_device.cc
index 3bdc8f1a99154c9d7a10b6217de35572906bdeef..70a2263926c6b83ebe59f9d378625f18f016af20 100644 (file)
@@ -26,7 +26,6 @@
 
 #include "lib/audio_mapping.h"
 #include "lib/named_channel.h"
-#include "lib/types.h"
 #include <dcp/warnings.h>
 LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
index a493ea80d91b67b7a6ae67a304c49be1d054383a..de1123ccebe78c4e31d207ceed64a288ef373533 100644 (file)
@@ -22,6 +22,7 @@
 #include "content_menu.h"
 #include "lib/enum_indexed_vector.h"
 #include "lib/film.h"
+#include "lib/text_type.h"
 #include <dcp/warnings.h>
 LIBDCP_DISABLE_WARNINGS
 #include <wx/splitter.h>
index 65b30be123d34007d6fea268f8bbdf26b1a0107e..6c5d8ae231cd0d6679e1b56cd2e98b0da34b89d6 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "wx_util.h"
 #include "lib/dcpomatic_time.h"
-#include "lib/types.h"
 #include <dcp/raw_convert.h>
 #include <dcp/warnings.h>
 LIBDCP_DISABLE_WARNINGS
diff --git a/wscript b/wscript
index 14d1d53a7e5ac81c22a94d8aab5b51c925ec668d..3a5d71a63705874f4e74bacf761e44fc3c7051b0 100644 (file)
--- a/wscript
+++ b/wscript
@@ -35,7 +35,7 @@ except ImportError:
 from waflib import Logs, Context
 
 APPNAME = 'dcpomatic'
-libdcp_version = '1.8.13'
+libdcp_version = '1.8.38'
 libsub_version = '1.6.13'
 
 this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0]