No-op; comments.
authorCarl Hetherington <cth@carlh.net>
Tue, 2 Jun 2015 00:01:00 +0000 (01:01 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 2 Jun 2015 00:01:00 +0000 (01:01 +0100)
README.md [new file with mode: 0644]
src/asset.cc
src/asset.h
src/local_time.cc
src/local_time.h
src/modified_gamma_transfer_function.h
src/reel_mxf_asset.h
src/reel_picture_asset.h
src/reel_sound_asset.h

diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..b8bcc3f
--- /dev/null
+++ b/README.md
@@ -0,0 +1,38 @@
+libdcp
+======
+
+Hello.
+
+
+Acknowledgements
+================
+
+Wolfgang Woehl's cinemaslides was most informative on the
+nasty details of encryption.
+
+
+Building
+========
+
+    ./waf configure
+    ./waf
+    sudo ./waf install
+
+
+Dependencies
+============
+
+boost filesystem, signals2 and unit testing libraries
+openssl
+libsigc++
+libxml++
+xmlsec
+openjpeg (1.5.0 or above)
+
+
+Documentation
+=============
+
+Run doxygen in the top-level directory and then see build/doc/html/index.html.
+
+There are some examples in the examples/ directory.
index 7e60ecc5300dfc80af79c8a524c5193a887b650e..24fc5919c10a072fe0ccdd3c78e190fa0671ed62 100644 (file)
@@ -104,6 +104,12 @@ Asset::equals (boost::shared_ptr<const Asset> other, EqualityOptions, NoteHandle
        return true;
 }
 
+/** Set the file that holds this asset on disk.  Calling this function
+ *  clears this object's store of its hash, so you should call ::hash
+ *  after this.
+ *
+ *  @param file New file's path.
+ */
 void
 Asset::set_file (boost::filesystem::path file) const
 {
index 91c7e2dcfa86fde726e46039304938f78b6bafd7..7c6aab95ec0b39201bf91438aa1ef4183b1ec7d3 100644 (file)
@@ -65,6 +65,7 @@ public:
         */
        void write_to_pkl (xmlpp::Node* node, Standard standard) const;
 
+       /** @return the most recent disk file used to read or write this asset; may be empty */
        boost::filesystem::path file () const {
                return _file;
        }
index 0bbddf43ed251b343f1fba79563285b6249908b7..f5d79938e24f63ecb7de23c189b26244a538a08b 100644 (file)
 
 */
 
+/** @file  src/local_time.cc
+ *  @brief LocalTime class.
+ */
+
 #include "local_time.h"
 #include "exceptions.h"
 #include <boost/lexical_cast.hpp>
@@ -27,6 +31,7 @@ using std::string;
 using boost::lexical_cast;
 using namespace dcp;
 
+/** Construct a LocalTime from the current time */
 LocalTime::LocalTime ()
 {
        time_t now = time (0);
@@ -42,6 +47,9 @@ LocalTime::LocalTime ()
        set_local_time_zone ();
 }
 
+/** Construct a LocalTime from a boost::posix_time::ptime using the local
+ *  time zone.
+ */
 LocalTime::LocalTime (boost::posix_time::ptime t)
 {
        _year = t.date().year ();
@@ -54,6 +62,7 @@ LocalTime::LocalTime (boost::posix_time::ptime t)
        set_local_time_zone ();
 }
 
+/** Set our UTC offset to be according to the local time zone */
 void
 LocalTime::set_local_time_zone ()
 {
@@ -96,6 +105,7 @@ LocalTime::LocalTime (string s)
        }
 }
 
+/** @return A string of the form 2013-01-05T18:06:59+04:00 */
 string
 LocalTime::as_string () const
 {
@@ -108,6 +118,7 @@ LocalTime::as_string () const
        return buffer;
 }
 
+/** @return The date in the form YYYY-MM-DD */
 string
 LocalTime::date () const
 {
@@ -116,6 +127,7 @@ LocalTime::date () const
        return buffer;
 }
 
+/** @return The time in the form HH:MM:SS */
 string
 LocalTime::time_of_day () const
 {
index 9798c2c35c5c54793ea4b57f91deed0429c607dd..c67aaee8a6d80330d7944f3bda5e0b0c97f4d873 100644 (file)
 
 */
 
+/** @file  src/local_time.h
+ *  @brief LocalTime class.
+ */
+
 #ifndef LIBDCP_LOCAL_TIME_H
 #define LIBDCP_LOCAL_TIME_H
 
@@ -27,7 +31,11 @@ class local_time_test;
 
 namespace dcp {
 
-/** I tried to use boost for this, really I did, but I could not get it
+/** @class LocalTime
+ *  @brief A representation of a local time (down to the second), including its offset
+ *  from GMT.
+ *
+ *  I tried to use boost for this, really I did, but I could not get it
  *  to parse strings of the required format (those that include time zones).
  */
 class LocalTime
@@ -54,9 +62,8 @@ private:
        int _minute; ///< minute number of the hour (0-59)
        int _second; ///< second number of the minute (0-59)
 
-       /* Amount by which this time is offset from UTC */
-       int _tz_hour;
-       int _tz_minute;
+       int _tz_hour;   ///< hours by which this time is offset from UTC
+       int _tz_minute; ///< minutes by which this time is offset from UTC
 };
 
 }
index ce7303fa7023e8e35948fb85531af17552051e0e..2a7a7b59ba4b443be7fa52259e9309320f8dac23 100644 (file)
 
 */
 
+/** @file  src/modified_gamma_transfer_function.h
+ *  @brief ModifiedGammaTransferFunction class.
+ */
+
 #include "transfer_function.h"
 
 namespace dcp {
index 9d98cd7109bd6068f3a778cf044a2490666966f0..765ba393fd42ec3452b72ea2bbc301aa753083d8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2015 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
 
 */
 
+/** @file  src/reel_mxf_asset.h
+ *  @brief ReelMXFAsset
+ */
+
 #ifndef LIBDCP_REEL_MXF_ASSET_H
 #define LIBDCP_REEL_MXF_ASSET_H
 
 
 namespace dcp {
 
-class MXF;     
+class MXF;
 
+/** @class ReelMXFAsset
+ *  @brief Part of a Reel's description which refers to an MXF.
+ */
 class ReelMXFAsset : public ReelAsset
 {
 public:
index 96c4b63b0f9ceacac8da033857016535cc51ad22..1607379a0993630b0ade428a9588b9643b85bfb6 100644 (file)
@@ -42,14 +42,19 @@ public:
        virtual void write_to_cpl (xmlpp::Node* node, Standard standard) const;
        virtual bool equals (boost::shared_ptr<const ReelAsset>, EqualityOptions, NoteHandler) const;
 
+       /** @return the PictureMXF that this object refers to */
        boost::shared_ptr<PictureMXF> mxf () {
                return boost::dynamic_pointer_cast<PictureMXF> (_content.object ());
        }
 
+       /** @return picture frame rate */
        Fraction frame_rate () const {
                return _frame_rate;
        }
 
+       /** Set the ScreenAspectRatio of this asset.
+        *  @param a New aspect ratio.
+        */
        void set_screen_aspect_ratio (Fraction a) {
                _screen_aspect_ratio = a;
        }
index 0e27f380e299ac4be657bcd9140d026fd66aacd0..b5dc819a07f843f7ce2868763063a8b1a1b6a66e 100644 (file)
@@ -37,10 +37,12 @@ public:
        ReelSoundAsset (boost::shared_ptr<dcp::SoundMXF> content, int64_t entry_point);
        ReelSoundAsset (boost::shared_ptr<const cxml::Node>);
 
+       /** @return the SoundMXF that this object refers to */
        boost::shared_ptr<SoundMXF> mxf () {
                return boost::dynamic_pointer_cast<SoundMXF> (_content.object ());
        }
 
+       /** @return the SoundMXF that this object refers to */
        boost::shared_ptr<const SoundMXF> mxf () const {
                return boost::dynamic_pointer_cast<const SoundMXF> (_content.object ());
        }