summaryrefslogtreecommitdiff
path: root/test/dcp_test.cc
AgeCommit message (Collapse)Author
2024-09-25Merge remote-tracking branch 'origin/main' into v1.9.xv1.9.22Carl Hetherington
2024-09-21Remove unused references to boost::signals2.Carl Hetherington
2024-08-17Reel{,Interop,SMPTE}SubtitleAsset -> Reel{,Interop,SMPTE}TextAsset.Carl Hetherington
2024-04-22Support MPEG2 decompression.Carl Hetherington
2024-04-18Move Behaviour enum out of J2KPictureAsset.Carl Hetherington
2024-04-18Rename classes.Carl Hetherington
sed -i "s/\<PictureAsset/J2KPictureAsset/g" src/*.{cc,h} sed -i "s/\<dcp::PictureAsset/dcp::J2KPictureAsset/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc sed -i "s/\<MonoPictureAsset/MonoJ2KPictureAsset/g" src/*.{cc,h} tools/*.cc test/*.{cc,h} sed -i "s/\<dcp::MonoPictureAsset/dcp::MonoJ2KPictureAsset/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc sed -i "s/\<StereoPictureAsset/StereoJ2KPictureAsset/g" src/*.{cc,h} tools/*.cc sed -i "s/\<dcp::StereoPictureAsset/dcp::StereoJ2KPictureAsset/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc sed -i "s/\<MonoPictureFrame/MonoJ2KPictureFrame/g" src/*.{cc,h} tools/*.cc test/*.{cc,h} sed -i "s/\<dcp::MonoPictureFrame/dcp::MonoJ2KPictureFrame/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc sed -i "s/\<StereoPictureFrame/StereoJ2KPictureFrame/g" src/*.{cc,h} tools/*.cc sed -i "s/\<dcp::StereoPictureFrame/dcp::StereoJ2KPictureFrame/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc
2024-04-18Fix includes.Carl Hetherington
sed -i "s/#include \"stereo_picture_asset_writer.h\"/#include \"stereo_j2k_picture_asset_writer.h\""/g src/*.{cc,h} sed -i "s/#include \"mono_picture_asset_writer.h\"/#include \"mono_j2k_picture_asset_writer.h\""/g src/*.{cc,h} examples/*.cc sed -i "s/#include \"stereo_picture_asset_reader.h\"/#include \"stereo_j2k_picture_asset_reader.h\""/g src/*.{cc,h} sed -i "s/#include \"mono_picture_asset_reader.h\"/#include \"mono_j2k_picture_asset_reader.h\""/g src/*.{cc,h} test/*.cc examples/*.cc sed -i "s/#include \"stereo_picture_asset.h\"/#include \"stereo_j2k_picture_asset.h\""/g src/*.{cc,h} test/*.cc examples/*.cc sed -i "s/#include \"mono_picture_asset.h\"/#include \"mono_j2k_picture_asset.h\""/g src/*.{cc,h} examples/*.cc sed -i "s/#include \"picture_asset_writer.h\"/#include \"j2k_picture_asset_writer.h\""/g src/*.{cc,h} test/*.cc sed -i "s/#include \"mono_picture_asset_writer.h\"/#include \"mono_j2k_picture_asset_writer.h\""/g src/*.{cc,h} test/*.cc tools/*.cc sed -i "s/#include \"picture_asset.h\"/#include \"j2k_picture_asset.h\""/g src/*.{cc,h} tools/*.cc sed -i "s/#include \"mono_picture_asset.h\"/#include \"mono_j2k_picture_asset.h\""/g src/*.{cc,h} test/*.cc tools/*.cc sed -i "s/#include \"mono_picture_frame.h\"/#include \"mono_j2k_picture_frame.h\""/g src/*.{cc,h} test/*.cc examples/*.cc sed -i "s/#include \"stereo_picture_frame.h\"/#include \"stereo_j2k_picture_frame.h\""/g src/*.{cc,h} sed -i "s/#include \"picture_asset_writer_common.cc\"/#include \"j2k_picture_asset_writer_common.cc\""/g src/*.{cc,h}
2023-07-25Cleanup: move EqualityOptions into its own file.Carl Hetherington
2023-06-29When reading a DCP set up asset hashes from the CPL/PKL, not by digesting ↵Carl Hetherington
the actual asset. Previously when reading a DCP we would recalculate asset hashes. This meant that corrupted DCPs could be loaded in and their hashes re-written (if nobody checked the new hashes against the ones in the PKL/CPL). It seems better to take the hashes from the metadata. Then if the assets are corrupted and the DCP is re-written the PKL/CPL hashes will be preserved, showing rather than hiding the corruption.
2023-06-27Cleanup: sorting.Carl Hetherington
2023-03-20Use an enum instead of a bool in PictureAsset::start_write().Carl Hetherington
2023-03-20Remove the bools and default parameters from SoundAsset::start_write().Carl Hetherington
They were more confusing than they were worth.
2023-03-16Specify number of channels in the data passed to SoundAssetWriter, and pad ↵Carl Hetherington
channels that aren't there.
2022-04-25Tidy up write_xml() API a little.Carl Hetherington
2022-04-22C++11 tidying.Carl Hetherington
2022-04-22Fix some macOS signed/unsigned warnings.Carl Hetherington
2022-04-20Add a test for DCP::add() for KDMs.Carl Hetherington
2021-04-12C++11 tidying.Carl Hetherington
2021-04-12Specify CPL standard on construction.Carl Hetherington
Then choose which standard DCP should use based on the CPL(s).
2021-03-26Write MCA tags based on the specified sound field.Carl Hetherington
I had previously assumed that one should write MCA information into the sound MXF based on what channels actually contain sound rather than silence. However a previous example of a stereo DCP gives a verification error in EasyDCP (see DoM bug #1935) which is solved by adding MCA tags for each channel in the specified sound field (e.g. at least 6 tags for a file which is marked as 5.1) even if the audio is really stereo. This commit removes the "active channels" stuff and makes sure that if we say a file is 5.1 we write at least 6 MCA tags (and similarly for 7.1).
2021-01-21Use enum class for the things in types.hCarl Hetherington
2021-01-18Bv2.1 9.1: PKL annotation text must match CPL ContentTitleText if there is ↵Carl Hetherington
only one CPL in the PKL.
2021-01-18Bv2.1 8.5: FFOC and LFOC should be present and have particular values.Carl Hetherington
2021-01-17Use feature not trailer for some tests to avoid verification errors about ↵Carl Hetherington
FFEC/FFMC.
2021-01-17Replace dcp::File with dcp::ArrayData.Carl Hetherington
2021-01-17Remove 32x32 test image.Carl Hetherington
2021-01-08std::shared_ptrCarl Hetherington
2020-11-29Fix terrible SoundAsset::equals() implementation.Carl Hetherington
It would check individual bytes of samples to see if they differed by more than the threshold. Not only is this almost useless, but the default threshold is 256 so with the default settings it would always say that two assets of the same length (and channels, etc.) were the same, even if the sample data was different.
2020-10-23macOS / new boost build fixes.Carl Hetherington
2020-10-10Fix crash when loading DCPs whose ASSETMAP contains files that areCarl Hetherington
not mentioned in any PKL (#1855).
2020-09-21Support MCA sound channel tags in MXF/CPL.Carl Hetherington
2020-09-21Add ContentVersion class.Carl Hetherington
2020-09-20Remove XMLMetadata use from tests.Carl Hetherington
2020-09-20Remove XMLMetadata from DCP::write_xml and DCP::write_assetmap.Carl Hetherington
2020-09-20Stop using XMLMetadata in CPL. It's always felt a bit clumsy, andCarl Hetherington
with the CPL metadata extension having a method like set_metadata() in CPL will be confusing.
2020-09-09Move make_simple() into test.{cc,h}Carl Hetherington
2020-09-09Fix comment typo.Carl Hetherington
2020-07-11Hopefully make all tests stable enough to be run with --random,Carl Hetherington
stopping test reference churn.
2019-12-22Fix syntax of ContentVersion/Id in the reference.Carl Hetherington
2019-03-17Merge branch 'master' of ssh://git.carlh.net/home/carl/git/libdcpCarl Hetherington
2019-03-17Finish initial CPL markers support.Carl Hetherington
2019-03-16Fix some GPL boilerplate.Carl Hetherington
2018-09-25Cope with multiple PKLs in a DCP.Carl Hetherington
2018-03-13Store interop/SMPTE in MXF.Carl Hetherington
2017-06-23Fix some test failures caused by changes to handling of metadata.Carl Hetherington
2017-05-17Test an Interop DCP (dcp_test7) with associated churn in the following test.Carl Hetherington
2017-02-14Fix test churn.Carl Hetherington
2016-09-13Various fixes to incorrect Atmos read/write wrt XML namespaces.Carl Hetherington
2016-09-09Simplify previous commit and remove some debugging.Carl Hetherington
2016-09-08Add channel assignment support for SMPTE DCPs.Carl Hetherington