From 5ee3348142f4cfafdbcf2c9c833843d717affc11 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 5 Jan 2016 01:24:19 +0000 Subject: Various IMF hacks. --- src/mono_picture_asset.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/mono_picture_asset.cc') diff --git a/src/mono_picture_asset.cc b/src/mono_picture_asset.cc index f1b5f9d5..9b83bae5 100644 --- a/src/mono_picture_asset.cc +++ b/src/mono_picture_asset.cc @@ -20,6 +20,7 @@ #include "mono_picture_asset.h" #include "mono_picture_asset_writer.h" #include "AS_DCP.h" +#include "AS_02.h" #include "KM_fileio.h" #include "exceptions.h" #include "dcp_assert.h" @@ -34,8 +35,9 @@ using boost::shared_ptr; using boost::dynamic_pointer_cast; using namespace dcp; -MonoPictureAsset::MonoPictureAsset (boost::filesystem::path file) +MonoPictureAsset::MonoPictureAsset (boost::filesystem::path file, AssetType type) : PictureAsset (file) + , _type (type) { ASDCP::JP2K::MXFReader reader; Kumu::Result_t r = reader.OpenRead (file.string().c_str()); @@ -60,6 +62,7 @@ MonoPictureAsset::MonoPictureAsset (boost::filesystem::path file) MonoPictureAsset::MonoPictureAsset (Fraction edit_rate) : PictureAsset (edit_rate) + , _type (ASSET_DCP) { } @@ -67,7 +70,7 @@ MonoPictureAsset::MonoPictureAsset (Fraction edit_rate) shared_ptr MonoPictureAsset::get_frame (int n) const { - return shared_ptr (new MonoPictureFrame (_file, n, _decryption_context)); + return shared_ptr (new MonoPictureFrame (_file, n, _decryption_context, _type)); } static void -- cgit v1.2.3