diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-19 17:44:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-22 01:42:22 +0200 |
| commit | cca70e0824e6883f50838578897792476953ea24 (patch) | |
| tree | ab7c32822e94fe08d1bf03d6878c66cc95070720 /src/frame_info.h | |
| parent | 066471f69400fc72e9c126ab36f5427329f30220 (diff) | |
Support MPEG2 compression.v1.9.6
Diffstat (limited to 'src/frame_info.h')
| -rw-r--r-- | src/frame_info.h | 31 |
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; +}; + + } |
