summaryrefslogtreecommitdiff
path: root/src/interop_subtitle_asset.cc
AgeCommit message (Collapse)Author
2024-03-20Replace xmlpp::Node::add_child with cxml::add_child.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-05-28Don't unconditionally clear _fonts when inspecting assets (DoM #2536).v1.8.70Carl Hetherington
resolve_fonts() is sometimes called for the same asset with different lists of things to check. If it is called first with a font, and then without one, we want to keep the font from the first call.
2023-05-28Cleanup: use find_if().Carl Hetherington
2023-04-14Replace slightly weird add_font_assets() API.Carl Hetherington
2023-04-13Fix resolve_fonts() if it is called twice.Carl Hetherington
2023-04-13Add const version of add_font_assets().Carl Hetherington
2023-04-13Add check for Interop font assets being present (in the ASSETMAP and on disk).Carl Hetherington
2023-01-08Compare LoadFont URIs and asset paths correctly (DoM #2402).Carl Hetherington
2023-01-08Cleanup: use std::find_ifCarl Hetherington
2023-01-08Cleanup: improve loop variable names.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-05-04Write subtitle files in binary mode.tests-on-all-platformsCarl Hetherington
2022-04-25Move AssetMap handling out to a separate class.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-20Nearly pretty-print subtitle XML (though not in <Text> nodes).v1.8.12Carl Hetherington
This is an attempt to fix DoM bug #2205.
2022-03-19C++11 tidying.Carl Hetherington
2021-10-10Remove some unused using commands.Carl Hetherington
2021-05-27Tidy handling of _raw_xml.Carl Hetherington
Before this if we tried to get the XML of an encrypted asset we would just get an empty string. Now we get a boost::none which means the verifier can avoid trying to check details of the XML (and instead raise a warning that you are trying to verify data that it cannot decrypt).
2021-04-14Fix/hide some warnings.Carl Hetherington
2021-01-24Tidying.Carl Hetherington
2021-01-22Assorted c++11 cleanups.Carl Hetherington
2021-01-21Use enum class for the things in types.hCarl Hetherington
2021-01-17Replace std::list with std::vector in the API.Carl Hetherington
2021-01-08std::shared_ptrCarl Hetherington
2020-12-20Accept fonts as data blocks rather than files.Carl Hetherington
2020-11-02Rename Data -> ArrayData.Carl Hetherington
2020-09-11Add set_font_file()Carl Hetherington
2020-09-11Add EqualityOptions option to ignore differences in LoadFont nodes.Carl Hetherington
2020-09-11Use Data::write() to clean things up slightly.Carl Hetherington
2020-05-08Store and allow access to the raw XML that is read in fromCarl Hetherington
subtitle assets so that it cab be verified without any interference from being passed through libdcp.
2018-09-02Hopefully-correct PKL and AssetMap when using Interop PNG subtitles.Carl Hetherington
2018-07-09Basic reading of Interop/SMPTE image subtitles with a test for Interop.Carl Hetherington
2018-07-09Store image subtitle ID in the object, rather than a separate map. Start of ↵Carl Hetherington
reading image subtitles.
2018-07-09Switch to UUIDs for Interop image subtitle identification (rather than ↵Carl Hetherington
indices). Basic and untested SMPTE image subtitle support.
2018-07-08Basic interop bitmap writing.Carl Hetherington
2017-07-24Comments.Carl Hetherington
2017-07-09Prevent resolve_fonts from adding duplicate fonts to its list.Carl Hetherington
2017-06-29Remove use of _formatted when writing subtitle XML.Carl Hetherington
This has the potential to add unwanted whitespace and newlines which are significant in subtitles. I think we'd have to write the XML ourselves to get around this.
2017-02-24Format XML sub output nicely with indents and such.Carl Hetherington
2016-11-09Don't use write_to_string_formatted with subs as it introduces lots of extra ↵Carl Hetherington
spaces into the actual subs.
2016-08-30Neater and more correct XML subtitle parser.Carl Hetherington
2016-08-17Use an optional<> where there should be one.Carl Hetherington
2016-06-24Express standard differences in FontNode more neatly.Carl Hetherington
2016-06-14Tighten up time parsing, and also allow the previouslyCarl Hetherington
unsupported Interop HH:MM:SS.sss format for times.
2016-06-13Add OpenSSL licence exception.Carl Hetherington
2016-06-01Still more licence fixups.Carl Hetherington
2016-05-25No-op; Fix GPL address and mention libdcp by name.Carl Hetherington