summaryrefslogtreecommitdiff
path: root/src/picture_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-02 12:04:23 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-02 12:04:23 +0000
commitbb41c81485834a31c178cf2b2f4b5345aa00e5b4 (patch)
tree597621103a09e5639a73804c8b60204b7d85b588 /src/picture_asset.h
parentfe4c98bdc865290d10e70ebab7e48247d390f4c4 (diff)
Basics of fake write seem to work.
Diffstat (limited to 'src/picture_asset.h')
-rw-r--r--src/picture_asset.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/picture_asset.h b/src/picture_asset.h
index 9df85bad..2ec17235 100644
--- a/src/picture_asset.h
+++ b/src/picture_asset.h
@@ -84,9 +84,9 @@ class MonoPictureAsset;
struct FrameInfo
{
- FrameInfo (uint64_t o, uint64_t l, std::string h)
+ FrameInfo (uint64_t o, uint64_t s, std::string h)
: offset (o)
- , length (l)
+ , size (s)
, hash (h)
{}
@@ -95,7 +95,7 @@ struct FrameInfo
void write (std::ostream& s);
uint64_t offset;
- uint64_t length;
+ uint64_t size;
std::string hash;
};
@@ -121,7 +121,7 @@ public:
private:
friend class MonoPictureAsset;
- MonoPictureAssetWriter (MonoPictureAsset *, bool);
+ MonoPictureAssetWriter (MonoPictureAsset *, uint8_t *, int, bool);
/* no copy construction */
MonoPictureAssetWriter (MonoPictureAssetWriter const &);
@@ -204,9 +204,7 @@ public:
MonoPictureAsset (std::string directory, std::string mxf_name, int fps, Size size);
/** Start a progressive write to a MonoPictureAsset */
- boost::shared_ptr<MonoPictureAssetWriter> start_write ();
-
- boost::shared_ptr<MonoPictureAssetWriter> start_overwrite ();
+ boost::shared_ptr<MonoPictureAssetWriter> start_write (uint8_t *, int, bool);
boost::shared_ptr<const MonoPictureFrame> get_frame (int n) const;
bool equals (boost::shared_ptr<const Asset> other, EqualityOptions opt, std::list<std::string>& notes) const;