libdcp
Public Member Functions | Private Member Functions | List of all members
dcp::MonoJ2KPictureAsset Class Reference

A 2D (monoscopic) picture asset. More...

#include <mono_j2k_picture_asset.h>

Inheritance diagram for dcp::MonoJ2KPictureAsset:
dcp::J2KPictureAsset dcp::PictureAsset dcp::Asset dcp::MXF dcp::Object

Public Member Functions

 MonoJ2KPictureAsset (boost::filesystem::path file)
 
 MonoJ2KPictureAsset (Fraction edit_rate, Standard standard)
 
std::shared_ptr< J2KPictureAssetWriterstart_write (boost::filesystem::path file, Behaviour behaviour) override
 
std::shared_ptr< MonoJ2KPictureAssetReaderstart_read () const
 
bool equals (std::shared_ptr< const Asset > other, EqualityOptions const &opt, NoteHandler note) const override
 
- Public Member Functions inherited from dcp::J2KPictureAsset
 J2KPictureAsset (boost::filesystem::path file)
 
 J2KPictureAsset (Fraction edit_rate, Standard standard)
 
- Public Member Functions inherited from dcp::PictureAsset
 PictureAsset (boost::filesystem::path file)
 
 PictureAsset (Fraction edit_rate, Standard standard)
 
Fraction edit_rate () const
 
int64_t intrinsic_duration () const
 
Size size () const
 
void set_size (Size s)
 
Fraction frame_rate () const
 
void set_frame_rate (Fraction r)
 
Fraction screen_aspect_ratio () const
 
void set_screen_aspect_ratio (Fraction r)
 
- Public Member Functions inherited from dcp::Asset
 Asset ()
 
 Asset (boost::filesystem::path file)
 
 Asset (std::string id, boost::filesystem::path file)
 
virtual void add_to_assetmap (AssetMap &asset_map, boost::filesystem::path root) const
 
virtual void add_to_pkl (std::shared_ptr< PKL > pkl, boost::filesystem::path root) const
 
boost::optional< boost::filesystem::path > file () const
 
void set_file (boost::filesystem::path file) const
 
void set_file_preserving_hash (boost::filesystem::path file) const
 
void rename_file (boost::filesystem::path file)
 
std::string hash (boost::function< void(int64_t, int64_t)> progress={}) const
 
void set_hash (std::string hash)
 
void unset_hash ()
 
- Public Member Functions inherited from dcp::Object
 Object ()
 
 Object (std::string id)
 
 Object (Object const &other)
 
Objectoperator= (Object const &other)
 
std::string id () const
 
- Public Member Functions inherited from dcp::MXF
 MXF (Standard standard)
 
bool encrypted () const
 
void set_key_id (std::string i)
 
boost::optional< std::string > key_id () const
 
virtual void set_key (Key)
 
boost::optional< Keykey () const
 
void set_context_id (std::string id)
 
std::string context_id () const
 
void set_metadata (MXFMetadata m)
 
MXFMetadata metadata () const
 
Standard standard () const
 

Private Member Functions

std::string cpl_node_name () const
 

Additional Inherited Members

- Static Public Member Functions inherited from dcp::J2KPictureAsset
static std::string static_pkl_type (Standard standard)
 
- Protected Member Functions inherited from dcp::J2KPictureAsset
bool frame_buffer_equals (int frame, EqualityOptions const &opt, NoteHandler note, uint8_t const *data_A, unsigned int size_A, uint8_t const *data_B, unsigned int size_B) const
 
bool descriptor_equals (ASDCP::JP2K::PictureDescriptor const &a, ASDCP::JP2K::PictureDescriptor const &b, NoteHandler note) const
 
void read_picture_descriptor (ASDCP::JP2K::PictureDescriptor const &)
 
- Protected Member Functions inherited from dcp::MXF
std::string read_writer_info (ASDCP::WriterInfo const &)
 
void fill_writer_info (ASDCP::WriterInfo *w, std::string id) const
 
- Static Protected Member Functions inherited from dcp::Asset
static void add_file_to_assetmap (AssetMap &asset_map, boost::filesystem::path root, boost::filesystem::path file, std::string id)
 
- Protected Attributes inherited from dcp::PictureAsset
Fraction _edit_rate
 
int64_t _intrinsic_duration = 0
 
Size _size
 
Fraction _frame_rate
 
Fraction _screen_aspect_ratio
 
- Protected Attributes inherited from dcp::Asset
boost::optional< boost::filesystem::path > _file
 
- Protected Attributes inherited from dcp::Object
std::string _id
 
- Protected Attributes inherited from dcp::MXF
boost::optional< std::string > _key_id
 
boost::optional< Key_key
 
std::string _context_id
 
MXFMetadata _metadata
 
boost::optional< Standard > _standard
 

Detailed Description

A 2D (monoscopic) picture asset.

Definition at line 57 of file mono_j2k_picture_asset.h.

Constructor & Destructor Documentation

◆ MonoJ2KPictureAsset() [1/2]

MonoJ2KPictureAsset::MonoJ2KPictureAsset ( boost::filesystem::path  file)
explicit

Create a MonoJ2KPictureAsset by reading a file.

Parameters
fileAsset file to read.

Definition at line 67 of file mono_j2k_picture_asset.cc.

◆ MonoJ2KPictureAsset() [2/2]

MonoJ2KPictureAsset::MonoJ2KPictureAsset ( Fraction  edit_rate,
Standard  standard 
)

Create a MonoJ2KPictureAsset with a given edit rate.

Parameters
edit_rateEdit rate (i.e. frame rate) in frames per second.
standardDCP standard (INTEROP or SMPTE).

Definition at line 93 of file mono_j2k_picture_asset.cc.

Member Function Documentation

◆ start_write()

shared_ptr< J2KPictureAssetWriter > MonoJ2KPictureAsset::start_write ( boost::filesystem::path  file,
Behaviour  behaviour 
)
overridevirtual

Start a progressive write to a MonoJ2KPictureAsset. @path file File to write to. @path behaviour OVERWRITE_EXISTING to overwrite and potentially add to an existing file (after a write previously failed), MAKE_NEW to create a new file. If in doubt, use MAKE_NEW here.

Implements dcp::J2KPictureAsset.

Definition at line 191 of file mono_j2k_picture_asset.cc.


The documentation for this class was generated from the following files: