diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-07-08 00:20:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-28 02:01:57 +0100 |
| commit | b054a6fe8359d91ed6afd5a250abd766cfafa196 (patch) | |
| tree | 9259fe00b1f7fec6df0ae04d58896df61f1ea8ee /src/lib/dcp_video.h | |
| parent | d76a9783fcc97a8a833ae060f70b12c144994651 (diff) | |
Formatting, variable name tidying and some const correctness.
Diffstat (limited to 'src/lib/dcp_video.h')
| -rw-r--r-- | src/lib/dcp_video.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/dcp_video.h b/src/lib/dcp_video.h index 23c920ede..67a2c9f44 100644 --- a/src/lib/dcp_video.h +++ b/src/lib/dcp_video.h @@ -49,7 +49,7 @@ class PlayerVideo; class DCPVideo { public: - DCPVideo (void) : DCPVideo(nullptr,0,0,0,Resolution::TWO_K){} + DCPVideo() : DCPVideo(nullptr, 0, 0, 0, Resolution::TWO_K) {} DCPVideo (std::shared_ptr<const PlayerVideo>, int index, int dcp_fps, int bandwidth, Resolution r); DCPVideo (std::shared_ptr<const PlayerVideo>, cxml::ConstNodePtr); @@ -69,8 +69,9 @@ public: static std::shared_ptr<dcp::OpenJPEGImage> convert_to_xyz(std::shared_ptr<const PlayerVideo> frame); - void convert_to_xyz (uint16_t *dst); - dcp::Size get_size(void); + void convert_to_xyz(uint16_t* dst) const; + dcp::Size get_size() const; + private: void add_metadata (xmlpp::Element *) const; |
