summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)Author
2020-11-25Ignore unreasonably-sized replies from servers.encode-serversCarl Hetherington
2020-11-25Add some debug logging for encode servers.Carl Hetherington
2020-11-25Add debug log type for encode servers.Carl Hetherington
2020-11-25Remove unused method.Carl Hetherington
2020-11-25Fix corrupted image when over-cropping black filler frames.Carl Hetherington
FFmpegDecoder can emit small black frames (128x128 pixels) when it wants to fill in a gap. Image::crop_scale_window would do the wrong thing if we then applied a crop of greater than 128 in either direction; though cropped_size is correctly clamped, the crop value itself was not and is used to calculate the input data pointers. This would result in random frames, usually at the end of DCPs, often made up of blurry colour washes.
2020-11-24Fix the behaviour of FileGroup when seeking too far.Carl Hetherington
Previously, if you did a seek off the end of the file group, the seek would return an error. This is not what fseek() does; it returns no error, and preserves the file pointer (returned by ftell()) as if the seek had been successful. fread()s after a too-far seek return no data, of course. Parsing some files (the example used to find the bug was a H264 MP4) involves a seek which is to the byte after the end of the mp4 file. If this fails the whole header parsing fails and DCP-o-matic refuses to use the file.
2020-11-24Updated nl_NL translation from Rob van Nieuwkerk.Carl Hetherington
2020-11-23Remove swaroop variant.Carl Hetherington
2020-11-21pot/merge.Carl Hetherington
2020-11-21Remove the "simple" UI (#1868).Carl Hetherington
It just seemed to cause more problems than it solved; mainly people enabling it by mistake and then being told to click buttons that they could not see.
2020-11-21Add hint when making a FTR without FFEC/FFMC markers (#1804).Carl Hetherington
2020-11-21Tidy up Hints a bit.Carl Hetherington
2020-11-21Subtitle language test updates.Carl Hetherington
2020-11-20Don't try to set empty languages on CCAP tracks.Carl Hetherington
2020-11-20Use a LanguageTag for closed caption tracks.Carl Hetherington
2020-11-20Subtitle language handling tweaks; write multiple subtitle languagesCarl Hetherington
to SMPTE extended metadata.
2020-11-20Fix potential crash if maybe_add_text() fails.Carl Hetherington
2020-11-20Recover subtitle language metadata from the places is was writtenCarl Hetherington
in older films.
2020-11-20Remove subtitle language from text content.Carl Hetherington
2020-11-20Store subtitle language(s) in Film, and allow setup of thoseCarl Hetherington
languages from the Interop/SMPTE metadata dialogues.
2020-11-20Always add FFOC and LFOC markers (#1805).Carl Hetherington
2020-11-20Try to enable all streams in MOV exports.Carl Hetherington
This is a speculative fix which I haven't tested.
2020-11-17Fix cropping of subsampled images.Carl Hetherington
The calculations for how to crop subsampled components of YUV images were wrong, causing strange effects like misregistration of colour components in cropped images. Should fix #1872.
2020-11-17Add some lrintf() calls to be sure.Carl Hetherington
2020-11-17Use 64-byte alignment for aligned image memory.Carl Hetherington
FFmpeg uses this values if AVX512 is available, and with only 32-byte alignment I am seeing strange scaling effects whereby crop_scale_window_test7 gives black bars down the right side of cropped images (when run on an i7 7700).
2020-11-16Make sure we use limited ("video") range data when exporting.Carl Hetherington
Our export formats all currently use limited range but we weren't making sure data fed to the encoders was limited range. Should fix #1832.
2020-11-16Fix unnecessary condition.Carl Hetherington
2020-11-16Fix thinko-ed logic causing all subtitles to be treated as thoughCarl Hetherington
they have borders. This fix will cause some movement of border-less subtitles (in existing projects) within the video frame.
2020-11-16Remove unused code.Carl Hetherington
2020-11-16Fix limited value ranges in properties.Carl Hetherington
2020-11-16Remove pointless comment.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-14Fix uninitialised variable (affecting tests only).Carl Hetherington
2020-11-11Remove assertion checking that rotations are a multiple of 90.Carl Hetherington
This is checked later, anyway (without asserting) and we have seen files in the wild with other rotations (e.g. -135.62) which do not appear to need rotation to be applied. Fixes #1871. Backported-from-commit: f235ed07f969e1b8b9d3d05082dcdd68ceae771e Backported-from-branch: master
2020-11-06Fix start_player() on macOS (#1870).v2.15.107Carl Hetherington
2020-11-06Rename a variable and add some logging to start_tool on macOS.Carl Hetherington
2020-11-04Re-add mutex that was taken away inCarl Hetherington
73ebb92e9df01ba7afb97121b6e2cef6ca13a18e I'm not sure why it was removed, and it seems necessary; servers_list_changed() can be called from a variety of different places (the constructor and two different EncodeServerFinder threads). May help with #1854.
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-02Pass around JPEG2000 data as a shared_ptr and hence avoid a copyCarl Hetherington
of 4MB of data for every JPEG2000 frame we decode.
2020-11-02Replace dcp::Data with dcp::ArrayDataCarl Hetherington
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-10-28Add some comments.Carl Hetherington
2020-10-28Prevent import of directories as DCPs if they do not have anCarl Hetherington
ASSETMAP{,.xml} in the top level. This should avoid some confusion, as previously DoM would scan the whole directory tree looking for an ASSETMAP. It also prevents people adding a DCP-o-matic project to itself, which I believe is the cause of #1620.
2020-10-21macOS / new boost build fixes.v2.15.104Carl Hetherington
2020-10-17Fix deadlock when changing CPL in the player (#1827).Carl Hetherington
TextContent::set_dcp_track can end up requesting a view update, which involves calls to methods in Content which lock the Content::_mutex. Do these calls without a lock on that mutex held. Also, it looks like we would append to texts on every call to examine(). Fix that so that we replace the texts list on each examine() call.
2020-10-14Don't crash if the first packet in a stream has AV_NOPTS_VALUE;Carl Hetherington
instead, assume it should be at timestamp 0.
2020-10-14Clear out _next_time when seeking, so out-of-date values don'tCarl Hetherington
hang around. Part of the fix for #1857.
2020-10-13Fix errors when over-reading a "large" amount from FileGroups onCarl Hetherington
Windows. I haven't been able to find any conclusive explanation for why this stuff happens; https://stackoverflow.com/questions/7241168/safe-maximum-number-of-records-read-by-fread is one possible lead.
2020-10-13Stop the Windows version of run_ffprobe manipulating the current working ↵Carl Hetherington
directory as tests rely on it.
2020-10-13Stop run_ffprobe from changing the current working directory on Windows.Carl Hetherington