FFmpegContent::FFmpegContent (boost::filesystem::path p)
: Content (p)
+#ifdef DCPOMATIC_VARIANT_SWAROOP
, _encrypted (false)
+#endif
{
}
_color_trc = get_optional_enum<AVColorTransferCharacteristic>(node, "ColorTransferCharacteristic");
_colorspace = get_optional_enum<AVColorSpace>(node, "Colorspace");
_bits_per_pixel = node->optional_number_child<int> ("BitsPerPixel");
+#ifdef DCPOMATIC_VARIANT_SWAROOP
_encrypted = node->optional_bool_child("Encrypted").get_value_or(false);
+#endif
}
FFmpegContent::FFmpegContent (vector<shared_ptr<Content> > c)
_color_trc = ref->_color_trc;
_colorspace = ref->_colorspace;
_bits_per_pixel = ref->_bits_per_pixel;
+#ifdef DCPOMATIC_VARIANT_SWAROOP
_encrypted = ref->_encrypted;
+#endif
}
void
if (_bits_per_pixel) {
node->add_child("BitsPerPixel")->add_child_text (raw_convert<string> (*_bits_per_pixel));
}
+#ifdef DCPOMATIC_VARIANT_SWAROOP
if (_encrypted) {
node->add_child("Encypted")->add_child_text ("1");
}
+#endif
}
void
_subtitle_stream = _subtitle_streams.front ();
}
+#ifdef DCPOMATIC_VARIANT_SWAROOP
_encrypted = first_path.extension() == ".ecinema";
+#endif
}
if (examiner->has_video ()) {