summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.cc
AgeCommit message (Collapse)Author
2024-06-11Simplify the FontIDAllocator a lot (#2827).Carl Hetherington
This is at the expense of forward compatibility, and the need to re-examine subtitle content (losing custom fonts as we do so). But it does mean that the code is simpler, and there's not this weird growth of IDs where a DCP gets imported with some font, and then the ID becomes 0_font, and if you do it again it's 0_0_font, and so on.
2024-06-09Fix an erroneous font ID error that can happen when loading projects from ↵Carl Hetherington
builds without release version tags. So that last_written_by_earlier_than() always returns true, check_font_ids() happens when it doesn't really need to.
2024-06-09Cleanup: text is a vector now.Carl Hetherington
2024-06-06Store the video encoding of a DCP in the metadata (J2K/MPEG2).Carl Hetherington
2024-05-29Merge remote-tracking branch 'origin/main' into v2.17.xCarl Hetherington
2024-05-19Add and use Content::has_mapped_audio().Carl Hetherington
2024-03-20Remove all use of add_child() from xmlpp.Carl Hetherington
2024-03-11Use stored has_non_zero_entry_point() instead of parsing the DCP again (#2524).Carl Hetherington
2024-03-11Take has_non_zero_entry_point() from examiner and store it.Carl Hetherington
2024-03-11Remove redundant DCPDecoder use.Carl Hetherington
2024-03-09Merge branch 'main' into v2.17.xCarl Hetherington
2024-02-26Disallow referring to OV audio unless channel counts match (#2780).Carl Hetherington
2024-02-22Merge tag 'v2.16.78' into v2.17.xv2.17.12Carl Hetherington
2024-02-21Make DCPExaminer::size() optional and deal with the consequences.v2.16.78Carl Hetherington
This means we can fix the case of a VF having no known size in a nice way, in turn fixing problems caused by the fix to #2775.
2024-02-19Don't order the user to 'remove the other content'.Carl Hetherington
In the context of the new VF dialog this sounds odd; e.g. the user ticked video but audio is impossible, they are ordered to remove the other content (when they might just not want to refer to audio at all).
2024-02-19Merge tag 'v2.16.76' into v2.17.xCarl Hetherington
2024-02-14Cope with loading a film containing a missing DCP which itself contains ↵Carl Hetherington
subtitles.
2024-01-28Rename can_reference -> can_reference_anything.Carl Hetherington
2024-01-28Cleanup: rearrange how overlap checking is done in can_reference().Carl Hetherington
2024-01-09Move ScopeGuard into libdcp.Carl Hetherington
2024-01-04Don't crash when checking a DCP with no subtitles in some reel.Carl Hetherington
2024-01-04Remove checks for referenced DCPs having content in all reels (#2694).Carl Hetherington
I can't see why this was done, other than perhaps to avoid output with no subtitles in a reel (which is not allowed by Bv2.1). But I think even if that does still happen we could make our own reels for the missing ones.
2023-10-28Add some missing locks.Carl Hetherington
2023-10-28Cleanup: whitespace.Carl Hetherington
2023-10-15Fix DCP content font ID allocation to cope with DCPs that have multiple fontsCarl Hetherington
with the same name in the same reel (#2600). Previously we had this id_for_font_in_reel() which would give an ID of N_font-ID. This means we got duplicate font IDs. Here we replace that method with FontAllocator, which gives an ID of N_font-ID for the first font and M_font-ID, where M is a number higher than the highest reel index. The idea is to support the required new IDs without breaking exisiting projects. There is some documentation of how it works in doc/design/fonts
2023-08-27Fix refusal to reference overlapping but different text content (#2599).Carl Hetherington
2023-08-27Tweak a message to be more grammatically correct.Carl Hetherington
2023-08-26Cleanup: use some lambdas.Carl Hetherington
2023-06-25Tolerate problems when reading the contents of DCPs.Carl Hetherington
This avoids errors in cases like unreadable lost+found directories appearing inside a DCP.
2023-06-06Fix player audio, almost totally broken by a stupid mistakev2.16.59Carl Hetherington
in 78b2c650a9249cb7165d269b4378391d31e68e8b Following that commit 16 channel audio streams were being read as 6-channel, with unsurprising consequences.
2023-05-13Cleanup: use a namespace.Carl Hetherington
2023-05-12Handle fonts for ccaps coming from DCP content (#2525).Carl Hetherington
Not dealing with them calls all sort of chaos as described in the bug report.
2023-05-12add_fonts_from_examiner() can be called multiple times with the same fontCarl Hetherington
in the case of closed captions with multiple tracks. Don't reuse the same font objects in this case, otherwise we will start with something like font, disambiguate it to 0_font, then disambiguate _that_ to 0_0_font.
2023-05-10Allow signals to be blocked and resumed, and so make sure that a setCarl Hetherington
of content changes taken from an examiner are handled at the same time. Should fix DoM #2523.
2023-02-27Cleanup: swap a list for a vector.Carl Hetherington
2022-12-25Show audio bit depth in content properties (#559).Carl Hetherington
2022-11-26Noisy change to get film into AudioContent::modify_trim_start().Carl Hetherington
2022-09-27Use EnumIndexedVector in DCPContent.Carl Hetherington
2022-09-03Bump libdcp for better ContentKind support, and libsubCarl Hetherington
for fixes to \c tags in SSA files.
2022-07-23Even more logging when reading DCPs.Carl Hetherington
2022-07-23Add some more logging when reading DCPs.Carl Hetherington
2022-07-11Fix font handling for DCP subtitles.Carl Hetherington
2022-04-08Guess video range better when importing 2.14.x projects (#2227).Carl Hetherington
2022-04-03C++11 and whitespace cleanups.Carl Hetherington
2021-10-12Ignore .AppleDouble folders inside DCPs.Carl Hetherington
2021-10-09C++11 tidying.Carl Hetherington
2021-09-19Fix failure to open v2.14.x documents with invalid or empty subtitle ↵Carl Hetherington
languages (#2085).
2021-08-20Fix typo if -> of (thanks to Uwe Dittes)Carl Hetherington
2021-06-01Put audio language back in the Film.Carl Hetherington
It feels neat to have audio language in the audio tab, to match the subtitle language in the subtitle tab. It also avoids the potential confusion of there being an audio language setting in the DCP metadata but no subtitle language setting. However: - I am yet to find a need to describe multiple audio languages in the same DCP (all previous users of Film::audio_languages() were just taking the first language off the list). - As Carsten points out it's fiddly to have to set the audio language for 5 separate-channel WAV files, for example (you wouldn't actually have had to do this, but it would have felt like you did). I think subtitle language remains neater where it is (per-content) as there is this additional subtitle language metadata and it makes much more sense (and is much more likely) that there are multiple subtitle languages in a DCP than it does multiple audio languages.
2021-05-01C++11 tidying.Carl Hetherington