summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2021-05-06Add pixel format 0 (AV_PIX_FMT_YUV420P) to make_part_black().v2.14.51Carl Hetherington
Remainder of fix for #1984. Backported-from-commit: 0aabe4060ea4bad7c7caac633aef0737fccff8c2 Backported-from-branch: 2.15.x
2021-05-06Add pixel format 66 (AV_PIX_FMT_YUV422P10LE) to make_part_black().Carl Hetherington
Part of fix for #1984. Backported-from-commit: 2aa6fd88e6d334c040d421938e425bd2f89983a7 Backported-from-branch: 2.15.x
2020-11-25Fix corrupted image when over-cropping black filler frames.v2.14.45Carl 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-17Test build fixes.v2.14.43crop-fix-v2.14.xCarl Hetherington
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-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-10-14Add test for #1857.v2.14.40Carl Hetherington
Backported-from-commit: 86f855ef96a84ee7e8ad9d71b543e8c06fc91a9e Backported-from-branch: v2.15.x
2020-09-21Fix --standard flag to dcpomatic2_cli (github #9).v2.14.38Carl Hetherington
2020-08-03Add unit test for pulldown detection.v2.14.36Carl Hetherington
Backported-from-commit: 23804b8beddd616cef60900d6e51deb7788cbd79 Backported-from-branch: v2.15.x
2020-03-06Fix missed subclass of Job in the tests.Carl Hetherington
2020-02-19New way of checking for 2D content mislabelled as 3D (#1565).Carl Hetherington
Required because of the change to the way video frame timing is done.
2020-02-18Write logs during tests to a file.Carl Hetherington
2020-02-18Remove unused variable.Carl Hetherington
2020-01-27Update for new test/data file.v2.14.26Carl Hetherington
2020-01-27Fix crash with sub-sample push parts in AudioMerger.Carl Hetherington
2020-01-14Add some PT-style names to the guesswork on which channel a particular sound ↵Carl Hetherington
file belongs to. Backported from 0dca360f831aa51a4c0a33caa18e78c07391f3b7 in v2.15.x.
2019-12-19Remove our forcing of analyzeduration and probesize as they seem tov2.14.20Carl Hetherington
cause weird problems when scanning some files. The unit test case added here is a case in point: before this patch one stream reported an incorrect channel count and sample rate. It's a bit worrying as these parameters have been in DoM for many years, but perhaps they have become unnecessary / harmful with changes to FFmpeg.
2019-12-16Flush audio decoder when a DCPDecoder finishes so thatv2.14.18Carl Hetherington
resamplers are emptied and hence we don't lose any samples. Fixes #1691.
2019-12-16Restore old v2.14.x version of test reference.Carl Hetherington
2019-12-15Stop empty Font IDs in imported DCP subtitles making it into theCarl Hetherington
output DCP (#1689). Back-ported from d8d4225a3e488cf78438b80938aa18fd07d30a06 in v2.15.x
2019-12-15Update test/data and make a branch for v2.14.x there.Carl Hetherington
2019-11-30Fix crash when exporting a 2D project containing 3D content (#1680).Carl Hetherington
2019-11-16Fix incorrect images when cropping without stretch.Carl Hetherington
Always overallocate images so that Image::crop_scale_window is always safe from over-reading buffers. Relates to #1654 and probably #1653. Backported from 7b0372776ac4da6a8e4ff29f41a4f08b9b4de506 in v2.15.x.
2019-11-12Copy test fix from v2.15.x.Carl Hetherington
2019-11-11Make separate reels for parts of the timeline with no video whenCarl Hetherington
we are in REEL_TYPE_BY_VIDEO_CONTENT mode. This fixes VF creation with gaps. Also the implementation of Film::reels() is cleaner now. Backport of 122bea7f0e08e07dcdaccd51751a9c83504f4c04 from master.
2019-11-11Fix incorrect reels when the first content is not at time 0.Carl Hetherington
With REELTYPE_BY_VIDEO_CONTENT the first reel would not start at 0. Backport of b950f49fa893e71545eaf9c0abe8a453d42a4340 from master.
2019-11-11Increase fudge factor at the boundary between audio signal and silence.Carl Hetherington
2019-11-05Fix build.Carl Hetherington
2019-11-04Fix out-of-bounds read when cropping JPEG2000 images (#1654).Carl Hetherington
Backported from 25d968fdcf1abada4bd7bbcb8c72eeebda73b134 in v2.15.x.
2019-10-21Copy with progress updates when we might copy long files (#1574).Carl Hetherington
Backported from 48b82de5b6e8e07330a2f72dbddd8d9830fe047e in v2.15.x.
2019-10-18ISDCF name fixes with > 6 channels and HI/VI (#1633).Carl Hetherington
2019-10-15Fix assertion failure on making a VF, in certain circumstances.v2.14.11Carl Hetherington
These circumstances were a VF which refers to at least one complete reel of audio from a OV before adding more audio of its own.
2019-10-15Fix deadlock in tests.Carl Hetherington
2019-10-15Fix cross-thread access to info files. May help with #1618.Carl Hetherington
2019-10-14Remove possibly-dubious reuse of a single content object.Carl Hetherington
2019-10-14Enable some logging in a test.Carl Hetherington
2019-10-08Fix up namespace for master.Carl Hetherington
2019-10-08Improve OpenFileError so that it doesn't say "opening for read"Carl Hetherington
in one case where it should say "opening for read/write". Also add some unit tests for ReelWriter.
2019-06-29Build fix.v2.14.8Carl Hetherington
2019-06-28Fix incorrect timing of PNG subtitles in second and subsequent reels.Carl Hetherington
Backported from 5728b8095b9522626d61b1c684a9492f759e2870 in v2.15.x.
2019-05-22Try to fix unit tests.Carl Hetherington
2019-05-21Give an error if 2D content is set to 3D (#1565). Also runCarl Hetherington
3D tests with more parallel jobs to speed them up. Backported from 11c07c6fd98620c859c7d3dcf6a4bbf6a05e567e in v2.15.x.
2019-05-20Add test for #1565.Carl Hetherington
2019-04-30Add --j2k-bandwidth to dcpomatic_create.v2.13.158Carl Hetherington
2019-04-30Add --fourk to dcpomatic_create.Carl Hetherington
2019-04-25Fix or remove several broken pixel formats in Image::fade and addCarl Hetherington
unit tests for the remainder. Fixes #1532.
2019-04-17Add test for bug #1528.Carl Hetherington
2019-04-05Test updates.Carl Hetherington
2019-04-02Extract subtitle language from text content rather than ISDCFMetadata (part ↵Carl Hetherington
of #1516).