From e1e7de8d73bedd0c741e7df0390068c67867e09f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 24 Jan 2021 22:56:33 +0100 Subject: Tidying. --- src/asset.cc | 2 +- src/asset_factory.cc | 8 ++++ src/asset_factory.h | 8 ++++ src/combine.h | 2 +- src/data.h | 2 +- src/fsk.h | 2 +- src/key.cc | 2 +- src/language_tag.h | 3 +- src/locale_convert.h | 2 +- src/mono_picture_asset.h | 4 +- src/openjpeg_image.cc | 2 +- src/reel_asset.h | 4 +- src/reel_markers_asset.cc | 9 +++- src/reel_markers_asset.h | 5 ++ src/rgb_xyz.cc | 13 ++++-- src/rgb_xyz.h | 5 ++ src/smpte_load_font_node.h | 2 +- src/stereo_picture_frame.cc | 5 ++ src/subtitle.h | 8 ++-- src/subtitle_image.cc | 17 ++++++- src/subtitle_image.h | 13 ++++-- src/subtitle_string.cc | 21 +++++++-- src/subtitle_string.h | 31 ++++++++++++- src/transfer_function.cc | 17 +++++-- src/transfer_function.h | 2 +- src/types.cc | 109 +++++++++++++++++++++++--------------------- src/types.h | 106 ++++++++++++++++++++++++++++-------------- src/util.h | 3 +- src/verify.cc | 14 ++++++ src/verify.h | 13 ++++++ 30 files changed, 312 insertions(+), 122 deletions(-) (limited to 'src') diff --git a/src/asset.cc b/src/asset.cc index 6364d83d..b911c70b 100644 --- a/src/asset.cc +++ b/src/asset.cc @@ -33,7 +33,7 @@ /** @file src/asset.cc - * @brief Asset class. + * @brief Asset class */ diff --git a/src/asset_factory.cc b/src/asset_factory.cc index ecda1701..e02281d2 100644 --- a/src/asset_factory.cc +++ b/src/asset_factory.cc @@ -31,6 +31,12 @@ files in the program, then also delete it here. */ + +/** @file src/asset_factory.cc + * @brief asset_factory() method + */ + + #include "mono_picture_asset.h" #include "stereo_picture_asset.h" #include "sound_asset.h" @@ -41,10 +47,12 @@ #include "asset_factory.h" #include + using std::shared_ptr; using std::make_shared; using namespace dcp; + shared_ptr dcp::asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_mxf_type) { diff --git a/src/asset_factory.h b/src/asset_factory.h index 4f7688eb..4bab9bee 100644 --- a/src/asset_factory.h +++ b/src/asset_factory.h @@ -31,8 +31,16 @@ files in the program, then also delete it here. */ + +/** @file src/asset_factory.h + * @brief asset_factory() method + */ + + namespace dcp { + std::shared_ptr asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_mxf_type); + } diff --git a/src/combine.h b/src/combine.h index dd992f1b..b23b21be 100644 --- a/src/combine.h +++ b/src/combine.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2020 Carl Hetherington + Copyright (C) 2020-2021 Carl Hetherington This file is part of libdcp. diff --git a/src/data.h b/src/data.h index 96ed4bb5..063187a6 100644 --- a/src/data.h +++ b/src/data.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2015-2020 Carl Hetherington + Copyright (C) 2015-2021 Carl Hetherington This file is part of libdcp. diff --git a/src/fsk.h b/src/fsk.h index 0f18141d..49892d00 100644 --- a/src/fsk.h +++ b/src/fsk.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2020 Carl Hetherington + Copyright (C) 2020-2021 Carl Hetherington This file is part of libdcp. diff --git a/src/key.cc b/src/key.cc index 9a755045..a5e92aac 100644 --- a/src/key.cc +++ b/src/key.cc @@ -33,7 +33,7 @@ /** @file src/key.cc - * @brief Key class. + * @brief Key class */ diff --git a/src/language_tag.h b/src/language_tag.h index 3b0b6ac9..0f05ac12 100644 --- a/src/language_tag.h +++ b/src/language_tag.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2020 Carl Hetherington + Copyright (C) 2020-2021 Carl Hetherington This file is part of libdcp. @@ -248,4 +248,5 @@ extern void load_language_tag_lists (boost::filesystem::path tags_directory); } + #endif diff --git a/src/locale_convert.h b/src/locale_convert.h index 9b1b432c..37510a96 100644 --- a/src/locale_convert.h +++ b/src/locale_convert.h @@ -33,7 +33,7 @@ /** @file src/locale_convert.cc - * @brief Methods to convert to/from string using the current locale. + * @brief Methods to convert to/from string using the current locale */ diff --git a/src/mono_picture_asset.h b/src/mono_picture_asset.h index 8c152146..f6f8877c 100644 --- a/src/mono_picture_asset.h +++ b/src/mono_picture_asset.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of libdcp. @@ -82,6 +82,8 @@ private: std::string cpl_node_name () const; }; + } + #endif diff --git a/src/openjpeg_image.cc b/src/openjpeg_image.cc index 3594b2bd..d17943af 100644 --- a/src/openjpeg_image.cc +++ b/src/openjpeg_image.cc @@ -33,7 +33,7 @@ /** @file src/openjpeg_image.cc - * @brief OpenJPEGImage class. + * @brief OpenJPEGImage class */ diff --git a/src/reel_asset.h b/src/reel_asset.h index 344e41c3..ba08c267 100644 --- a/src/reel_asset.h +++ b/src/reel_asset.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2015 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of libdcp. @@ -150,6 +150,8 @@ private: boost::optional _entry_point; ///< The <EntryPoint> from the reel's entry for this asset }; + } + #endif diff --git a/src/reel_markers_asset.cc b/src/reel_markers_asset.cc index 52151868..360a855a 100644 --- a/src/reel_markers_asset.cc +++ b/src/reel_markers_asset.cc @@ -32,6 +32,11 @@ */ +/** @file src/reel_markers_asset.cc + * @brief ReelMarkersAsset class + */ + + #include "reel_markers_asset.h" #include "raw_convert.h" #include "dcp_assert.h" @@ -88,9 +93,9 @@ ReelMarkersAsset::unset (Marker m) optional