Hopefully fix black borders round the preview in some cases.
[dcpomatic.git] / src / lib / types.h
index e858d1e1feb6b7827ce09d79822e5817b4fa3df0..f554c4dd9ad1f72dc0094fb625eed35c116e0aad 100644 (file)
 #ifndef DCPOMATIC_TYPES_H
 #define DCPOMATIC_TYPES_H
 
-#include <vector>
-#include <stdint.h>
-#include <boost/shared_ptr.hpp>
-#include <dcp/util.h>
 #include "dcpomatic_time.h"
 #include "position.h"
+#include <dcp/util.h>
+#include <boost/shared_ptr.hpp>
+#include <vector>
+#include <stdint.h>
 
 class Content;
 class VideoContent;
@@ -57,22 +57,6 @@ typedef std::vector<boost::shared_ptr<FFmpegContent> > FFmpegContentList;
 typedef int64_t VideoFrame;
 typedef int64_t AudioFrame;
 
-/* XXX -> DCPAudio */
-struct TimedAudioBuffers
-{
-       TimedAudioBuffers ()
-               : time (0)
-       {}
-       
-       TimedAudioBuffers (boost::shared_ptr<AudioBuffers> a, DCPTime t)
-               : audio (a)
-               , time (t)
-       {}
-       
-       boost::shared_ptr<AudioBuffers> audio;
-       DCPTime time;
-};
-
 enum VideoFrameType
 {
        VIDEO_FRAME_TYPE_2D,
@@ -138,6 +122,21 @@ struct Crop
        void as_xml (xmlpp::Node *) const;
 };
 
+struct CPLSummary
+{
+       CPLSummary (std::string d, std::string i, std::string a, boost::filesystem::path f)
+               : dcp_directory (d)
+               , cpl_id (i)
+               , cpl_annotation_text (a)
+               , cpl_file (f)
+       {}
+       
+       std::string dcp_directory;
+       std::string cpl_id;
+       std::string cpl_annotation_text;
+       boost::filesystem::path cpl_file;
+};
+
 extern bool operator== (Crop const & a, Crop const & b);
 extern bool operator!= (Crop const & a, Crop const & b);