diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-07-06 23:09:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-07-07 13:58:35 +0200 |
| commit | 7158e24762c77465b2827bfa8c96d2fe2368be37 (patch) | |
| tree | 8098b96e1f0632b7f9c540ba2c2dd4cd40437f1b /src/lib/dcp_video.h | |
| parent | d5e87cdc4003ed1e7c31cd4991a1c31ad7d4e3a2 (diff) | |
Patch from Aaron.
Diffstat (limited to 'src/lib/dcp_video.h')
| -rw-r--r-- | src/lib/dcp_video.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/dcp_video.h b/src/lib/dcp_video.h index 33df0942c..c09442d16 100644 --- a/src/lib/dcp_video.h +++ b/src/lib/dcp_video.h @@ -17,6 +17,8 @@ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef DCPOMATIC_DCP_VIDEO_H +#define DCPOMATIC_DCP_VIDEO_H #include "encode_server_description.h" @@ -47,6 +49,7 @@ class PlayerVideo; class DCPVideo { public: + DCPVideo (void) : 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); @@ -66,6 +69,8 @@ public: static std::shared_ptr<dcp::OpenJPEGImage> convert_to_xyz (std::shared_ptr<const PlayerVideo> frame, dcp::NoteHandler note); + void convert_to_xyz (uint16_t *dst); + dcp::Size get_size(void); private: void add_metadata (xmlpp::Element *) const; @@ -76,3 +81,5 @@ private: int _j2k_bandwidth; ///< J2K bandwidth to use Resolution _resolution; ///< Resolution (2K or 4K) }; + +#endif |
