summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.cc
AgeCommit message (Collapse)Author
2025-01-20Remove the strange tolerant flag in Film.Carl Hetherington
Instead, we now pass it in directly to Content::examine() and the Player.
2025-01-20Pass tolerant flag into Content::examine() and the ExamineContentJob.Carl Hetherington
Along the way this helps to fix #2942.
2025-01-05Bump libdcp for raw_convert changes.Carl Hetherington
raw_convert<string> is gone, so here we use fmt::{to_string,format} instead. Other raw_converts now use fast_float.
2024-09-18Fix thinko in relative path change.Carl Hetherington
We have to canonicalise relative paths with respect to the film's directory on load, otherwise we try to use the relative path and it's interpreted against the current working directory. This unfortunately requires the film's directory to be piped into quite a lot of new places.
2024-09-03Support closed subtitles and open captions.Carl Hetherington
2024-09-03Adapt to some libdcp class renaming to allow open captions/closed subtitles.Carl Hetherington
2024-08-17Add option to use relative content paths (#2856).Carl Hetherington
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