summaryrefslogtreecommitdiff
path: root/src/frame_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame_info.h')
-rw-r--r--src/frame_info.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/frame_info.h b/src/frame_info.h
index a49f52a9..325350c4 100644
--- a/src/frame_info.h
+++ b/src/frame_info.h
@@ -36,6 +36,10 @@
#define LIBDCP_FRAME_INFO_H
+#include "warnings.h"
+LIBDCP_DISABLE_WARNINGS
+#include <asdcp/AS_DCP.h>
+LIBDCP_ENABLE_WARNINGS
#include <stdint.h>
#include <string>
@@ -72,6 +76,33 @@ struct J2KFrameInfo : public FrameInfo
};
+struct MPEG2FrameInfo : public FrameInfo
+{
+ MPEG2FrameInfo() = default;
+
+ MPEG2FrameInfo(
+ uint64_t offset_,
+ uint64_t size_,
+ std::string hash_,
+ ASDCP::MPEG2::FrameType_t type_,
+ bool gop_start_,
+ bool closed_gop_,
+ uint8_t temporal_offset_
+ )
+ : FrameInfo(offset_, size_, hash_)
+ , type(type_)
+ , gop_start(gop_start_)
+ , closed_gop(closed_gop_)
+ , temporal_offset(temporal_offset_)
+ {}
+
+ ASDCP::MPEG2::FrameType_t type;
+ bool gop_start;
+ bool closed_gop;
+ uint8_t temporal_offset;
+};
+
+
}