diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-05 23:17:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-22 13:03:04 +0200 |
| commit | 21ebc2365dd7a66c05d130dc87861f7399ae834b (patch) | |
| tree | ee1feebe6e0cf10dc5d4ecddbe9ea9ccb9a6b9d8 /src/lib/film.h | |
| parent | 4f0d027f1964d0c011f89b5706fbaf654955ba2d (diff) | |
Allow specification of video bit rate separately for J2K and MPEG2.
Diffstat (limited to 'src/lib/film.h')
| -rw-r--r-- | src/lib/film.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/film.h b/src/lib/film.h index ff3dee6fc..e2e88e2c9 100644 --- a/src/lib/film.h +++ b/src/lib/film.h @@ -32,6 +32,7 @@ #include "change_signaller.h" #include "dcp_text_track.h" #include "dcpomatic_time.h" +#include "enum_indexed_vector.h" #include "film_property.h" #include "frame_rate_change.h" #include "named_channel.h" @@ -251,8 +252,8 @@ public: return _key; } - int video_bit_rate() const { - return _video_bit_rate; + int video_bit_rate(VideoEncoding encoding) const { + return _video_bit_rate[encoding]; } /** @return The frame rate of the DCP */ @@ -406,7 +407,7 @@ public: void set_container (Ratio const *, bool user_explicit = true); void set_resolution (Resolution, bool user_explicit = true); void set_encrypted (bool); - void set_video_bit_rate(int64_t); + void set_video_bit_rate(VideoEncoding encoding, int64_t); void set_video_frame_rate (int rate, bool user_explicit = false); void set_audio_channels (int); void set_three_d (bool); @@ -521,8 +522,8 @@ private: * re-start picture MXF encodes. */ std::string _context_id; - /** bit rate for encoding video using J2K or MPEG2 in bits per second */ - int64_t _video_bit_rate; + /** bit rate for encoding video using in bits per second */ + EnumIndexedVector<int64_t, VideoEncoding> _video_bit_rate; /** Frames per second to run our DCP at */ int _video_frame_rate; /** The date that we should use in a ISDCF name */ |
