summaryrefslogtreecommitdiff
path: root/src/asset.cc
AgeCommit message (Collapse)Author
2023-11-19Report progress with done/total rather than a float.Carl Hetherington
2023-10-09Add wrappers around boost::filesystem methods that handle theCarl Hetherington
required mangling of long filenames on Windows. Also wrap lots of missing places (e.g. calls to asdcplib, libxml++, libcxml etc.) in dcp::filesystem::fix_long_path(). The idea is to keep paths un-mangled until they we call some filesystem-related API and mangle them at that point. Otherwise we end up serialising mangled names, which seems like it will not end well. Should fix DoM #2623.
2023-07-25Cleanup: move EqualityOptions into its own file.Carl Hetherington
2023-07-25Cleanup: pass EqualityOptions as const&Carl Hetherington
This exposes a useless assignment of export_differing_subtitles, which I've removed (and altered the comment accordingly).
2023-06-29Add asset_hashes_can_differ option to the equality checks.v1.8.74Carl Hetherington
Before recent changes Asset::_hash would be empty when the equality checks were run (and Asset::equals() compares them directly). This mean that differences in asset hash were being ignored, but are no longer; so now we need this option to restore that behaviour where required.
2023-06-27Add Asset::unset_hash().Carl Hetherington
2023-06-27Cleanup: remove unnecessary namespace.Carl Hetherington
2023-06-27Add Asset::set_file_preserving_hash().Carl Hetherington
2023-03-06Add Asset::rename_file().Carl Hetherington
2022-12-22Write OriginalFileName tags in PKL (DoM #2394).Carl Hetherington
Without these it EasyDCP gives errors like "Id field in PKL must match uuid in asset" "Each Id used in the PKL files must be unique or reference the same file" which seem wrong but, as usual, here we are.
2022-04-25Move AssetMap handling out to a separate class.Carl Hetherington
2021-04-14Fix/hide some warnings.Carl Hetherington
2021-02-02Some compilers don't like x = {} where x is a boost::optional<string>Carl Hetherington
Fails on ubuntu 16 and debian 9.
2021-01-24Tidying.Carl Hetherington
2021-01-23Small bits of pre-release tidying.Carl Hetherington
2021-01-21Use enum class for the things in types.hCarl Hetherington
2021-01-08std::shared_ptrCarl Hetherington
2018-09-02Hopefully-correct PKL and AssetMap when using Interop PNG subtitles.Carl Hetherington
2018-08-17Read PKL when reading DCP.Carl Hetherington
2016-08-17Use an optional<> where there should be one.Carl Hetherington
2016-07-30Comments.Carl Hetherington
2016-06-13Add OpenSSL licence exception.Carl Hetherington
2016-06-02Add Asset::set_hash().Carl Hetherington
2016-06-02Use optional<> for _hash and make it private.Carl Hetherington
2016-06-01Still more licence fixups.Carl Hetherington
2016-05-25No-op; Fix GPL address and mention libdcp by name.Carl Hetherington
2016-04-18Replace hack with use of generic_string from boost::filesystem.Carl Hetherington
2015-10-28Don't add external (referenced) assets to the PKL.Carl Hetherington
2015-09-16Consider assets outside the DCP as referenced assets (i.e.1.0-vfCarl Hetherington
not to be written to the asset map). Return a value from finalize() to say whether a writer has written anything. Other small related tweaks.
2015-08-18Fix previous.Carl Hetherington
2015-08-18Don't allow backslashes into the ASSETMAP on Windows.Carl Hetherington
2015-06-24Fix various SNAFUs with Font ID handling.Carl Hetherington
2015-06-24No-op: whitespace.Carl Hetherington
2015-06-09Basically-working interop subtitle font handling.Carl Hetherington
2015-06-02No-op; comments.Carl Hetherington
2015-01-07Use a typedef for a note-taking functor.Carl Hetherington
2014-12-28Purge assert() from src/, at least (not asdcplib).Carl Hetherington
2014-12-28Remove unused method.Carl Hetherington
2014-07-22Various attempts to clean up DCP comparison code.Carl Hetherington
2014-07-04Tweak comments.Carl Hetherington
2014-06-13Work around symbol clash with ERROR on Win32/mingw.Carl Hetherington
2014-05-14Merge master.Carl Hetherington
2014-05-11Use raw_convert instead of boost::lexical_cast as it seemsCarl Hetherington
that lexical_cast will sometimes use a thousands separator (i.e. it will convert 1234 to a string 1,234). It appears not to be possible safely to turn this off (you have to set the global locale). Instead, raw_convert uses a stringstream which you can imbue() with std::locale::classic() to turn off the locale-specific behaviour.
2014-03-15Clean up OS X build slightly. Better error on failure of xmlSecDSigCtxSign.Carl Hetherington
2014-02-26Merge master; MXF subtitle stuff not included.Carl Hetherington
2014-02-12Various small fixes.Carl Hetherington
2014-02-08Fix typo.Carl Hetherington
2014-02-08Fix a couple of errors in Interop XMLCarl Hetherington
Reported-by: Ivan Pullman
2014-01-28Various fixes.Carl Hetherington
2014-01-27Various tinkerings.Carl Hetherington