summaryrefslogtreecommitdiff
path: root/test/test.cc
AgeCommit message (Collapse)Author
2024-09-04Allow libcxml and libdcp builds with static boost.v1.9.16Carl Hetherington
2024-08-17Rename TextType::SUBTITLE -> OPEN_SUBTITLE and CAPTION -> CLOSED_CAPTION.Carl Hetherington
2024-08-17Subtitle{,String,Image} -> Text{,String,Image}.Carl Hetherington
2024-08-17{,Interop,SMPTE}SubtitleAsset -> {,Interop,SMPTE}TextAsset.Carl Hetherington
2024-08-17Merge ReelClosedCaptionAsset into ReelTextAsset.Carl Hetherington
2024-08-17Reel{,Interop,SMPTE}SubtitleAsset -> Reel{,Interop,SMPTE}TextAsset.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}
2024-04-15Improve error reporting for _replace tests and check everything about the ↵Carl Hetherington
notes (not just the codes).
2024-03-22Bump asdcplib to dcpomatic-2.13.0 branch.v1.9.4Carl Hetherington
2024-03-20Allow building with libxml++-4.0 and C++17.Carl Hetherington
2023-11-15Simple pass-through of <Ruby> tags in subtitles.Carl Hetherington
2023-10-10Fix argument parsing on Ubuntu 16.04.v1.8.84Carl Hetherington
2023-06-27Move Editor class from verify_test.cc to test.ccCarl Hetherington
2023-06-27Cleanup: set annotation text in make_simple().Carl Hetherington
2023-06-02Verify error if SMPTE subtitle asset has <Text> but no <LoadFont>.v1.8.73Carl Hetherington
2023-04-04Pass MainSoundConfiguration object rather than a string.Carl Hetherington
I guess originally it was a string mostly because it's not very well defined, and Interop seemingly does whatever it wants. This basic change also means that things are checked more carefully, and so we must be more relaxed with some things seen in the wild that I can't find contradictions for in the standard (and also with the case of channel IDs, which does seem to be mentioned in the standard).
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.
2023-01-24Add channels parameter to simple_audio().Carl Hetherington
2022-12-04Fix some ambiguous shared_ptrs, seen on Arch Linux.Carl Hetherington
2022-11-03Add Z position to subtitles; existing tests pass.Carl Hetherington
2022-08-10Fix undefined memory warning during tests.Carl Hetherington
2022-05-04C++11 tidying.Carl Hetherington
2022-04-12Add and use new File class.merged-to-mainCarl Hetherington
It was always a bit troubling that fopen_boost wasn't exception safe, and this also fixes a leak where load_ratings_list would never close the ratings file.
2022-03-24Remove <EntryPoint> and <Duration> from <ReelMarkerAsset> tags.Carl Hetherington
They should not be there: "EntryPoint" ... "This element shall only be present when the Asset refers to an external resource such as a Track File". Fixes DoM bug #2215.
2021-10-13Basic implementation of <Space> tag in subtitles.v1.8.3Carl Hetherington
2021-10-08Fix problems when adding KDMs to a VF, before adding the OV.v1.8.2Carl Hetherington
If we have a KDM which contains keys for all the assets referred to by a VF (even the ones in the OV) we would previously throw an exception because we tried to give the KDM to the resolved assets when it was given to the Reel. Here we change things so that the addition of KDMs to assets can be deferred if the asset is not yet resolved.
2021-04-14Fix/hide some warnings.Carl Hetherington
2021-04-12Split ReelClosedCaptionAsset into Interop and SMPTE parts.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-04-11Small bits of tidying up.Carl Hetherington
2021-04-09Add check for Bv2.1 10.4.3 - container duration vs reel duration in timed text.Carl Hetherington
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-02-06Basic analysis (verification) of J2K codestreams.Carl Hetherington
2021-02-06Don't use flat_red.j2c for the simple DCP test as it's only 8-bit.Carl Hetherington
2021-02-06Rename j2k.{cc,h} => j2k_transcode.{cc,h}Carl Hetherington
2021-01-21Use enum class for the things in types.hCarl Hetherington
2021-01-18Bv2.1 8.6.{1.2}: CompositionMetadataAsset must exist and it must have some ↵Carl Hetherington
<VersionNumber>.
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-17Bv2.1 8.2: all parts of a reel must have the same duration.Carl Hetherington
2021-01-17Bv2.1 7.3: audio sample rate must be 48kHz.Carl Hetherington
2021-01-17Give simple_{picture,sound} a length parameter and fix crazy implementation ↵Carl Hetherington
of simple_sound().
2021-01-17Replace std::list with std::vector in the API.Carl Hetherington
2021-01-17Stop tests failing when libdcp version changes.Carl Hetherington
2021-01-17Bv2.1 7.2.3: Check that subtitle <StartTime> exists and is 0.Carl Hetherington