diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-24 04:15:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-24 04:15:26 +0100 |
| commit | ceaf7bc52712cb60708ed5eb5c62c5e463dd8e89 (patch) | |
| tree | c55e4b85ee30138ce83263045d77d01631378b2e /src/picture_asset_writer.h | |
| parent | 6c37cc1979b2a01205a888c4c98f3334685ee8dd (diff) | |
Tidying.
Diffstat (limited to 'src/picture_asset_writer.h')
| -rw-r--r-- | src/picture_asset_writer.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/picture_asset_writer.h b/src/picture_asset_writer.h index 12530513..2fcd2de1 100644 --- a/src/picture_asset_writer.h +++ b/src/picture_asset_writer.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -31,13 +31,16 @@ files in the program, then also delete it here. */ + /** @file src/picture_asset_writer.h * @brief PictureAssetWriter and FrameInfo classes. */ + #ifndef LIBDCP_PICTURE_ASSET_WRITER_H #define LIBDCP_PICTURE_ASSET_WRITER_H + #include "metadata.h" #include "types.h" #include "asset_writer.h" @@ -46,19 +49,19 @@ #include <stdint.h> #include <string> + namespace dcp { + class PictureAsset; + /** @class FrameInfo * @brief Information about a single frame (either a monoscopic frame or a left *or* right eye stereoscopic frame) */ struct FrameInfo { - FrameInfo () - : offset (0) - , size (0) - {} + FrameInfo () {} FrameInfo (uint64_t o, uint64_t s, std::string h) : offset (o) @@ -66,11 +69,12 @@ struct FrameInfo , hash (h) {} - uint64_t offset; - uint64_t size; + uint64_t offset = 0; + uint64_t size = 0; std::string hash; }; + /** @class PictureAssetWriter * @brief Parent class for classes which write picture assets. */ @@ -87,9 +91,11 @@ protected: PictureAssetWriter (PictureAsset *, boost::filesystem::path, bool); PictureAsset* _picture_asset; - bool _overwrite; + bool _overwrite = false; }; + } + #endif |
