Formatting, variable name tidying and some const correctness.
[dcpomatic.git] / src / lib / dcp_video.h
index 23c920ede6fdcf5e8aa624763a503d1436cc2678..67a2c9f4412e8b06dc5932a73ee66b574e9f8150 100644 (file)
@@ -49,7 +49,7 @@ class PlayerVideo;
 class DCPVideo
 {
 public:
-       DCPVideo (void) : DCPVideo(nullptr,0,0,0,Resolution::TWO_K){}
+       DCPVideo() : DCPVideo(nullptr, 0, 0, 0, Resolution::TWO_K) {}
        DCPVideo (std::shared_ptr<const PlayerVideo>, int index, int dcp_fps, int bandwidth, Resolution r);
        DCPVideo (std::shared_ptr<const PlayerVideo>, cxml::ConstNodePtr);
 
@@ -69,8 +69,9 @@ public:
 
        static std::shared_ptr<dcp::OpenJPEGImage> convert_to_xyz(std::shared_ptr<const PlayerVideo> frame);
 
-       void convert_to_xyz (uint16_t *dst);
-       dcp::Size get_size(void);
+       void convert_to_xyz(uint16_t* dst) const;
+       dcp::Size get_size() const;
+
 private:
 
        void add_metadata (xmlpp::Element *) const;