]> git.sesse.net Git - casparcg/blobdiff - modules/psd/psd_document.h
#433 Removed late-frame tag from html_producer since it is not possible to know wheth...
[casparcg] / modules / psd / psd_document.h
index 60104adec9f30cedc2aa02e8bc0f0027a3dca090..6836bf4d630a4139c1815a133a2a1d6c8b98c44d 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <string>
 #include <vector>
+#include <cstdint>
 
 namespace caspar { namespace psd {
 
@@ -41,11 +42,13 @@ public:
        {
                return layers_;
        }
-       std::uint32_t width() const
+
+       int width() const
        {
                return width_;
        }
-       std::uint32_t height() const
+
+       int height() const
        {
                return height_;
        }
@@ -55,28 +58,31 @@ public:
                return color_mode_;
        }
 
-       std::uint16_t color_depth() const
+       int color_depth() const
        {
                return depth_;
        }
-       std::uint16_t channels_count() const
+
+       int channels_count() const
        {
                return channels_;
        }
+
        const std::wstring& filename() const
        {
                return filename_;
        }
+
        bool has_timeline() const
        {
                return !timeline_desc_.empty();
        }
+
        const boost::property_tree::wptree& timeline() const 
        {
                return timeline_desc_;
        }
 
-
        void parse(const std::wstring& s);
 
 private:
@@ -90,11 +96,11 @@ private:
 
        std::vector<layer_ptr>                  layers_;
 
-       std::uint16_t                                   channels_;
-       std::uint32_t                                   width_;
-       std::uint32_t                                   height_;
-       std::uint16_t                                   depth_;
-       psd::color_mode                                 color_mode_;
+       int                                                             channels_               = 0;
+       int                                                             width_                  = 0;
+       int                                                             height_                 = 0;
+       int                                                             depth_                  = 0;
+       psd::color_mode                                 color_mode_             = psd::color_mode::InvalidColorMode;
        boost::property_tree::wptree    timeline_desc_;
 };