X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fpicture_asset_writer.cc;h=c30be1bc4f35a78d033ac46f7b93a645db5feeba;hb=eb80c762e9046e6b48fc754d6b510e80cd6a2d92;hp=e3d7b70e5079a2628637bce408fe771b105bfc41;hpb=1eb9ba017214698de3fd41de5291604b4fe839c5;p=libdcp.git diff --git a/src/picture_asset_writer.cc b/src/picture_asset_writer.cc index e3d7b70e..c30be1bc 100644 --- a/src/picture_asset_writer.cc +++ b/src/picture_asset_writer.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of libdcp. @@ -31,6 +31,12 @@ files in the program, then also delete it here. */ + +/** @file src/picture_asset_writer.cc + * @brief PictureAssetWriter and FrameInfo classes + */ + + #include "picture_asset_writer.h" #include "exceptions.h" #include "picture_asset.h" @@ -39,15 +45,23 @@ #include #include + using std::string; -using boost::shared_ptr; +using std::shared_ptr; using namespace dcp; -PictureAssetWriter::PictureAssetWriter (PictureAsset* asset, boost::filesystem::path file, Standard standard, bool overwrite) - : AssetWriter (asset, file, standard) + +PictureAssetWriter::PictureAssetWriter (PictureAsset* asset, boost::filesystem::path file, bool overwrite) + : AssetWriter (asset, file) , _picture_asset (asset) - , _standard (standard) , _overwrite (overwrite) { asset->set_file (file); } + + +FrameInfo +PictureAssetWriter::write (Data const& data) +{ + return write (data.data(), data.size()); +}