diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-28 09:06:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-28 09:08:46 +0100 |
| commit | bcf62b5e4a268554b7960e5f739b24f9eafb38a5 (patch) | |
| tree | 904fb5959dcd2401daba2d42c53d3a0736604bff /src/lib/dcp_video.h | |
| parent | bb04b67f593c1da37b76af9507f3e28e9ab15f74 (diff) | |
WIP: use fraction for DCP frame rate.archive-frame-rates
This will allow archival rates to be expressed precisely.
Diffstat (limited to 'src/lib/dcp_video.h')
| -rw-r--r-- | src/lib/dcp_video.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/dcp_video.h b/src/lib/dcp_video.h index 6afbedfad..b3e73de4a 100644 --- a/src/lib/dcp_video.h +++ b/src/lib/dcp_video.h @@ -49,7 +49,7 @@ class PlayerVideo; class DCPVideo { public: - DCPVideo(std::shared_ptr<const PlayerVideo>, int index, int dcp_fps, int64_t bit_rate, Resolution r); + DCPVideo(std::shared_ptr<const PlayerVideo>, int index, dcp::Fraction dcp_fps, int64_t bit_rate, Resolution r); DCPVideo(std::shared_ptr<const PlayerVideo>, cxml::ConstNodePtr); DCPVideo(DCPVideo const&) = default; @@ -76,10 +76,10 @@ private: void add_metadata(xmlpp::Element *) const; std::shared_ptr<const PlayerVideo> _frame; - int _index; ///< frame index within the DCP's intrinsic duration - int _frames_per_second; ///< Frames per second that we will use for the DCP - int64_t _video_bit_rate; ///< Video bit rate to use - Resolution _resolution; ///< Resolution (2K or 4K) + int _index; ///< frame index within the DCP's intrinsic duration + dcp::Fraction _frames_per_second; ///< Frames per second that we will use for the DCP + int64_t _video_bit_rate; ///< Video bit rate to use + Resolution _resolution; ///< Resolution (2K or 4K) }; #endif |
