summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
AgeCommit message (Collapse)Author
2022-10-19Change how video timing is done.Carl Hetherington
This commit changes the approach with video timing. Previously, we would (more-or-less) try to use every video frame from the content in the output, hoping that they come at a constant frame rate. This is not always the case, however. Here we preserve the PTS of video frames, and then when one arrives we output whatever DCP video frames we can (at the regular DCP frame rate). Hopefully this will solve a range of sync problems, but it could also introduce new ones.
2022-10-05Add contains_assetmap()Carl Hetherington
2022-07-20Handle vertical alignment of subs correctly wrt the difference between ↵Carl Hetherington
Interop and SMPTE.
2022-07-14More error message improvements.Carl Hetherington
2022-07-01Advanced option to allow mapping to any audio channel (#2279).Carl Hetherington
2022-07-01Find Liberation Sans with local builds on Fedora.Carl Hetherington
2022-06-14Log errors from asdcplib in our logs.Carl Hetherington
2022-06-07Rearrange subtitle font management.Carl Hetherington
With this change each subtitle coming out of the player has a reference to a dcpomatic::Font that belongs to the TextContent. This hopefully solves a few problems which all basically stemmed from the fact that previously the decoders/player were deciding what the font ID in the output DCP would be - they can't do that properly.
2022-06-07Fix incorrect extension on interop subtitle files (#2270).Carl Hetherington
2022-06-03Make subtitle asset filename obey custom settings (#2260).Carl Hetherington
2022-06-03Tidy up some duplicated code.Carl Hetherington
2022-05-11Fix warning introduced a couple of commits ago.Carl Hetherington
2022-05-11Tidy up careful_string_filter and add some extra transliterations.Carl Hetherington
ł seems to be ignored by the ICU transliterator for some reason.
2022-05-05Use dcp::File in DCP-o-matic (#2231).Carl Hetherington
2022-05-02Extract simple_digest().Carl Hetherington
2022-04-22Use libdcp's warnings.hCarl Hetherington
2022-04-04Cleanup: move some methods from util to memory_util.Carl Hetherington
2022-04-04Cleanup: move some methods from util to maths_util.Carl Hetherington
2022-04-03Cleanup: move stride_round_up into the only place it is used.Carl Hetherington
2022-03-09Improve ratings dialog to allow only valid values (#2199).Carl Hetherington
2021-10-17Basic and slightly inaccurate support for <Space> in subtitles (#2103).v2.15.170Carl Hetherington
Adding horizontal space to a Pango layout is hard, and I think this change probably gets it slightly wrong, but it's a step in the right direction.
2021-10-03Don't scale chroma subsampled images to sizes that don't align with the ↵v2.15.166Carl Hetherington
subsampling (#1872). There's a slightly odd effect when scaling e.g. YVU420 images to odd and then even widths - there's a small but visible luminance shift. I don't know why this happens, but keeping the scaling sizes locked to the subsampling seems to help.
2021-09-27Various alignment tidying/fixups.Carl Hetherington
2021-09-27Replace aligned bool with enum Alignment.Carl Hetherington
2021-09-27Various alignment adjustments.Carl Hetherington
2021-09-21Only define UNICODE in src/lib/{cross_windows,util}.cc.Carl Hetherington
2021-08-03Fix build with newer FFmpeg.Carl Hetherington
2021-07-13Add label for sign language track.Carl Hetherington
2021-05-25Move video level conversion for RGB from FFmpegImageProxy to Image.Carl Hetherington
Since FFmpeg does not do video level conversion for RGB sources when we (sort of) ask it to in Image::crop_scale_window() it seems to make more sense to compensate for that by calling full_to_video_range() in the same place (rather than in FFmpegImageProxy).
2021-05-07Hide some more FFmpeg warnings.v2.15.143Carl Hetherington
2021-05-01C++11 tidying.Carl Hetherington
2021-04-23Fix fopen() on windows to cope with long filenames (part of #1755).Carl Hetherington
2021-04-21Add some possibly-useful markers for debugging threads from coredumps.Carl Hetherington
2021-04-04Add to_upper() method to util.{cc,h}Carl Hetherington
2021-03-29Tread .psd as an image file.Carl Hetherington
2021-02-03Use icu to remove diacritics from strings.Carl Hetherington
This replaces some ad-hoc code and extends it to work with more characters (#1904).
2021-01-31More enum class additions.Carl Hetherington
2021-01-27Use enum class for VideoRange.Carl Hetherington
2021-01-22libdcp API fixes for macOS/Windows.Carl Hetherington
2021-01-21Adapt for libdcp use of enum class.Carl Hetherington
2021-01-11More c++ tidying.Carl Hetherington
2021-01-07BOOST_FOREACH.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-11-23Remove swaroop variant.Carl Hetherington
2020-11-16Fix unnecessary condition.Carl Hetherington
2020-11-16Obey requests to change the video range of RGB content.Carl Hetherington
Video that comes in with RGB pixels will not have its video level ranges changed by libswscale (it only does this for YUV and greyscale). Here we add code to do it ourselves for RGB content coming in via image files (e.g. PNG/DPX etc). Part of #1851.
2020-11-03Revert "Re-allow audio channel 15 to be mapped so that users can add"Carl Hetherington
This reverts commit 4cf45229bf55344e708fead769f694f13bacf39c. It's wrong - the sign language channel is 15 (1-indexed) not 15 (0-indexed) as in this commit.
2020-11-02Re-allow audio channel 15 to be mapped so that users can addCarl Hetherington
their own sign language tracks until DoM supports them properly.
2020-09-27Adapt for new libdcp (fixing large compiler resource requirements).Carl Hetherington
Also adjust Linux resource-finding code to juse look for stuff relative to the executable's location.
2020-09-25Add NamedChannel and use it to hide the never-used channelsCarl Hetherington
when mapping into a DCP.