- /** Sample aspect ratio obtained from the content file's header,
- if there is one.
- */
- boost::optional<float> _sample_aspect_ratio;
- ContentTime _fade_in;
- ContentTime _fade_out;
+ dcp::Size _size;
+ VideoFrameType _frame_type;
+ Crop _crop;
+ /** ratio to scale cropped image to (or none to guess); i.e. if set, scale to _custom_ratio:1 */
+ boost::optional<float> _custom_ratio;
+ /** size to scale cropped image to; only used if _custom_ratio is none */
+ boost::optional<dcp::Size> _custom_size;
+ /** ratio obtained from an older metadata file; will be used to set up
+ * _custom_{ratio,size} (or not, if not required) on the first call to
+ * scaled_size()
+ */
+ boost::optional<float> _legacy_ratio;
+ /** Sample aspect ratio obtained from the content file's header, if there is one */
+ boost::optional<double> _sample_aspect_ratio;
+ bool _yuv;
+ /** fade in time in content frames */
+ Frame _fade_in;
+ /** fade out time in content frames */
+ Frame _fade_out;
+ VideoRange _range;
+ boost::optional<dcp::LanguageTag> _burnt_subtitle_language;