summaryrefslogtreecommitdiff
path: root/src/picture_asset_writer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-17 22:16:05 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-17 22:16:05 +0000
commit9fd79fb05fa47833ed431d83d73fd6d9a4a9f774 (patch)
treece80b7905738eb342536f48ebb1712ad0f47ab1f /src/picture_asset_writer.h
parentf389d903e967f44a5d6eed60df48bd5a89994bb2 (diff)
Asset -> MXF in some cases.
Diffstat (limited to 'src/picture_asset_writer.h')
-rw-r--r--src/picture_asset_writer.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/src/picture_asset_writer.h b/src/picture_asset_writer.h
deleted file mode 100644
index c6c00d87..00000000
--- a/src/picture_asset_writer.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- Copyright (C) 2012-2013 Carl Hetherington <cth@carlh.net>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#include <stdint.h>
-#include <string>
-#include <fstream>
-#include <boost/shared_ptr.hpp>
-#include <boost/utility.hpp>
-#include "metadata.h"
-#include "types.h"
-
-namespace dcp {
-
-class PictureAsset;
-
-struct FrameInfo
-{
- FrameInfo (uint64_t o, uint64_t s, std::string h)
- : offset (o)
- , size (s)
- , hash (h)
- {}
-
- FrameInfo (std::istream& s);
- FrameInfo (FILE *);
-
- void write (std::ostream& s) const;
- void write (FILE *) const;
-
- uint64_t offset;
- uint64_t size;
- std::string hash;
-};
-
-class PictureAssetWriter : public boost::noncopyable
-{
-public:
- virtual ~PictureAssetWriter () {}
- virtual FrameInfo write (uint8_t *, int) = 0;
- virtual void finalize () = 0;
- virtual void fake_write (int) = 0;
-
-protected:
- template <class P, class Q>
- friend void start (PictureAssetWriter *, boost::shared_ptr<P>, Q *, uint8_t *, int);
-
- PictureAssetWriter (PictureAsset *, bool);
-
- PictureAsset* _asset;
-
- /** Number of picture frames written to the asset so far. For stereo assets
- * this will be incremented for each eye (i.e. there will be twice the number
- * of frames as in a mono asset).
- */
- int _frames_written;
- bool _started;
- /** true if finalize() has been called */
- bool _finalized;
- bool _overwrite;
-};
-
-}