42 MPEG2PictureAsset::MPEG2PictureAsset(boost::filesystem::path file)
50 MPEG2PictureAsset::read_video_descriptor(ASDCP::MPEG2::VideoDescriptor
const& descriptor)
52 _size.width = descriptor.StoredWidth;
53 _size.height = descriptor.StoredHeight;
54 _edit_rate =
Fraction(descriptor.EditRate.Numerator, descriptor.EditRate.Denominator);
56 _frame_rate =
Fraction(descriptor.SampleRate.Numerator, descriptor.SampleRate.Denominator);
57 _screen_aspect_ratio =
Fraction(descriptor.AspectRatio.Numerator, descriptor.AspectRatio.Denominator);
64 DCP_ASSERT(standard == Standard::INTEROP);
65 return "application/x-smpte-mxf;asdcpKind=Picture";
70 MPEG2PictureAsset::static_pkl_type(Standard standard)
72 DCP_ASSERT(standard == Standard::INTEROP);
73 return "application/x-smpte-mxf;asdcpKind=Picture";
A fraction (i.e. a thing with an integer numerator and an integer denominator).
std::string pkl_type(Standard standard) const override
int64_t _intrinsic_duration
Namespace for everything in libdcp.