40 #ifndef LIBDCP_PICTURE_ASSET_H
41 #define LIBDCP_PICTURE_ASSET_H
51 struct PictureDescriptor;
59 class MonoPictureFrame;
60 class StereoPictureFrame;
61 class PictureAssetWriter;
76 virtual std::shared_ptr<PictureAssetWriter> start_write (
77 boost::filesystem::path
file,
85 void set_size (
Size s) {
97 Fraction screen_aspect_ratio ()
const {
98 return _screen_aspect_ratio;
101 void set_screen_aspect_ratio (
Fraction r) {
102 _screen_aspect_ratio = r;
109 int64_t intrinsic_duration ()
const {
113 static std::string static_pkl_type (Standard standard);
119 bool frame_buffer_equals (
121 uint8_t
const * data_A,
unsigned int size_A, uint8_t
const * data_B,
unsigned int size_B
124 bool descriptor_equals (
125 ASDCP::JP2K::PictureDescriptor
const & a,
126 ASDCP::JP2K::PictureDescriptor
const & b,
130 void read_picture_descriptor (ASDCP::JP2K::PictureDescriptor
const &);
143 std::string
pkl_type (Standard standard)
const override;
Parent class for DCP assets, i.e. picture, sound, subtitles, closed captions, CPLs,...
boost::optional< boost::filesystem::path > file() const
A fraction (i.e. a thing with an integer numerator and an integer denominator).
Parent for classes which represent MXF files.
A helper class for writing to MonoPictureAssets.
An asset made up of JPEG2000 data.
int64_t _intrinsic_duration
PictureAsset(boost::filesystem::path file)
std::string pkl_type(Standard standard) const override
A helper class for writing to StereoPictureAssets.
Namespace for everything in libdcp.
A class to describe what "equality" means for a particular test.
The integer, two-dimensional size of something.
Utility methods and classes.