summaryrefslogtreecommitdiff
path: root/src/mpeg2_picture_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-19 17:44:10 +0100
committerCarl Hetherington <cth@carlh.net>2024-04-22 01:42:22 +0200
commitcca70e0824e6883f50838578897792476953ea24 (patch)
treeab7c32822e94fe08d1bf03d6878c66cc95070720 /src/mpeg2_picture_asset.h
parent066471f69400fc72e9c126ab36f5427329f30220 (diff)
Support MPEG2 compression.v1.9.6
Diffstat (limited to 'src/mpeg2_picture_asset.h')
-rw-r--r--src/mpeg2_picture_asset.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mpeg2_picture_asset.h b/src/mpeg2_picture_asset.h
index df882202..38b8e0a0 100644
--- a/src/mpeg2_picture_asset.h
+++ b/src/mpeg2_picture_asset.h
@@ -41,6 +41,8 @@
*/
+#include "behaviour.h"
+#include "mpeg2_picture_asset_writer.h"
#include "picture_asset.h"
#include <boost/filesystem/path.hpp>
@@ -58,11 +60,22 @@ namespace dcp {
class MPEG2PictureAsset : public PictureAsset
{
public:
+ MPEG2PictureAsset(Fraction edit_rate)
+ : PictureAsset(edit_rate, Standard::INTEROP)
+ {}
+
explicit MPEG2PictureAsset(boost::filesystem::path file);
+ virtual std::shared_ptr<MPEG2PictureAssetWriter> start_write(
+ boost::filesystem::path file,
+ Behaviour behaviour
+ ) = 0;
+
static std::string static_pkl_type(Standard standard);
protected:
+ friend class MonoMPEG2PictureAssetWriter;
+
void read_video_descriptor(ASDCP::MPEG2::VideoDescriptor const& descriptor);
private: