]> git.sesse.net Git - casparcg/blobdiff - modules/flash/util/swf.h
Fixed bug where audio filter did not use the input channel layout of a stream
[casparcg] / modules / flash / util / swf.h
index f15293950793cc7cd67c2dc9928de11c3367711f..c22d2da7e2ad914691a272b851b04de4ac026a41 100644 (file)
 
 #pragma once
 
+#include <cstdint>
 #include <string>
+#include <array>
 
 namespace caspar { namespace flash {
 
 std::string read_template_meta_info(const std::wstring& filename);
 
+struct swf_t
+{
+       struct header_t
+       {
+               header_t(const std::wstring& filename);
+
+               std::array<std::uint8_t, 3>     signature;
+               std::uint8_t                            version;
+               std::uint32_t                           file_length;
+               std::uint32_t                           frame_width;
+               std::uint32_t                           frame_height;
+               std::uint16_t                           frame_rate;
+               std::uint16_t                           frame_count;
+
+               bool                                            valid;
+
+       } header;
+
+       std::vector<char>                               data;
+
+       swf_t(const std::wstring& filename);
+};
+
 }}
\ No newline at end of file