X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fstereo_j2k_picture_asset.cc;h=6a5e7d794cc71ad75394a364ef1fe3a95266e51c;hb=ddb999544ab9da2a3a4760baf241a5ef8520c37e;hp=ffce0f51a0cb1dc05f2687a0e3b470bc0a3d355e;hpb=f6d466eee4f1381a65da4b5f6d60924e6a81df4e;p=libdcp.git diff --git a/src/stereo_j2k_picture_asset.cc b/src/stereo_j2k_picture_asset.cc index ffce0f51..6a5e7d79 100644 --- a/src/stereo_j2k_picture_asset.cc +++ b/src/stereo_j2k_picture_asset.cc @@ -33,7 +33,7 @@ /** @file src/stereo_picture_asset.cc - * @brief StereoPictureAsset class + * @brief StereoJ2KPictureAsset class */ @@ -56,8 +56,8 @@ using std::dynamic_pointer_cast; using namespace dcp; -StereoPictureAsset::StereoPictureAsset (boost::filesystem::path file) - : PictureAsset (file) +StereoJ2KPictureAsset::StereoJ2KPictureAsset (boost::filesystem::path file) + : J2KPictureAsset (file) { Kumu::FileReaderFactory factory; ASDCP::JP2K::MXFSReader reader(factory); @@ -82,29 +82,29 @@ StereoPictureAsset::StereoPictureAsset (boost::filesystem::path file) } -StereoPictureAsset::StereoPictureAsset (Fraction edit_rate, Standard standard) - : PictureAsset (edit_rate, standard) +StereoJ2KPictureAsset::StereoJ2KPictureAsset (Fraction edit_rate, Standard standard) + : J2KPictureAsset (edit_rate, standard) { } -shared_ptr -StereoPictureAsset::start_write(boost::filesystem::path file, Behaviour behaviour) +shared_ptr +StereoJ2KPictureAsset::start_write(boost::filesystem::path file, Behaviour behaviour) { - return shared_ptr(new StereoPictureAssetWriter(this, file, behaviour == Behaviour::OVERWRITE_EXISTING)); + return shared_ptr(new StereoJ2KPictureAssetWriter(this, file, behaviour == Behaviour::OVERWRITE_EXISTING)); } -shared_ptr -StereoPictureAsset::start_read () const +shared_ptr +StereoJ2KPictureAsset::start_read () const { - return shared_ptr (new StereoPictureAssetReader(this, key(), standard())); + return shared_ptr (new StereoJ2KPictureAssetReader(this, key(), standard())); } bool -StereoPictureAsset::equals(shared_ptr other, EqualityOptions const& opt, NoteHandler note) const +StereoJ2KPictureAsset::equals(shared_ptr other, EqualityOptions const& opt, NoteHandler note) const { Kumu::FileReaderFactory factory; ASDCP::JP2K::MXFSReader reader_A(factory); @@ -134,7 +134,7 @@ StereoPictureAsset::equals(shared_ptr other, EqualityOptions const& return false; } - auto other_picture = dynamic_pointer_cast (other); + auto other_picture = dynamic_pointer_cast (other); DCP_ASSERT (other_picture); auto reader = start_read (); @@ -143,8 +143,8 @@ StereoPictureAsset::equals(shared_ptr other, EqualityOptions const& bool result = true; for (int i = 0; i < _intrinsic_duration; ++i) { - shared_ptr frame_A; - shared_ptr frame_B; + shared_ptr frame_A; + shared_ptr frame_B; try { frame_A = reader->get_frame (i); frame_B = other_reader->get_frame (i);