summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2025-10-23Allow writing DCPs without any other metadata / working files.Carl Hetherington
2025-10-23Make it possible to not write audio analysis files.Carl Hetherington
2025-10-23Remove log handling from Film.Carl Hetherington
It should be the main UI's responsibility to set up dcpomatic_log, maybe writing it to the film's directory if it wants to.
2025-10-15Add another new test reference for FFmpeg 8.Carl Hetherington
Commit 045a8b15b19ec7f872fb01cfb986faeaa26cb8bb changed how AC3/EAC3 decoders in FFmpeg are flushed, and this caused a considerable change to the audio result in this test (in particular, the audio is about 3db louder after the FFmpeg change). I'm assuming the previous result was just wrong.
2025-10-15Add some new test references for FFmpeg 8.Carl Hetherington
In ffmpeg commit af6d52eec66961f6a502b0f2f390c12226d087cd the precision of XYZ/RGB conversion was improved from 12- to 16-bit, and this changes the outputs of these tests.
2025-10-15Fix test to use a file with audio.Carl Hetherington
2025-10-15New test reference for Arch.Carl Hetherington
2025-10-15Fix confusing file name.Carl Hetherington
2025-10-15Relax and tidy some test references for Arch.Carl Hetherington
2025-10-15Only run EBUR128 tests if we have an appropriate FFmpeg.Carl Hetherington
2025-10-15Disable use of stream IDs if there are duplicates, rather than rewriting.Carl Hetherington
It turns out that FFmpeg decoders (e.g. flv, see FFmpeg 25faaa311a74efdfdc4fed56996d7338ed807488) check stream IDs and sometimes create new streams if they see one that they didn't see before. If we change stream IDs we break this. Here we try to use stream indices in cases where the IDs are duplicated. We also account for the case where a new stream appears during examination. This wasn't covered by tests until the FFmpeg commit mentioned above, were the flv decoder creates a new stream during examination of boon_telly.mkv.
2025-10-15Cleanup: use a make_shared.Carl Hetherington
2025-10-10Fix tests after changes to config parameters.Carl Hetherington
2025-09-27Draw markers better next to the position slider (#3005).Carl Hetherington
2025-09-26Re-order cairo context scaling and pango layout setup (#2337).Carl Hetherington
This seems to fix problems where letters were scaled individually, but their spacing didn't change (when x scale was applied). Big thanks to user1768761 https://stackoverflow.com/questions/58528024/pangocairo-shows-cluttered-text-when-cairo-context-is-scaled
2025-09-23Return quite close to original approach for "no colour conversion".Carl Hetherington
There's a few things going on here: 1. Improve the regression test for 3042. Previously we made a DCP from the reporter's _original_ prores file (before they converted it to XYZ) and compared the result to a reference J2K file of uncertain origin. This seems wrong because: a) We never got confirmation from the reporter that the fix worked for them, so any arbitrary reference is dubious. b) It doesn't seem to reflect their actual complaint, which was that they got a different result when making a DCP from XYZ TIFFs compared to their "XYZ" Prores. The new test makes a DCP from their TIFFs and "XYZ" Prores and compares the result. 2. Revert to the old approach to "no conversion" handling. In the good old days we did everything -> RGB48LE except XYZ12LE -> XYZ12LE, and that's what we do again here. 3. Change the YUV->RGB conversion from Rec.601 to Rec.709 for the "no conversion" case. This fixes the 3042 regression test. The supposed "XYZ" Prores is yuv444p12le according to ffprobe. So I think what we have here is actually a file that was converted to XYZ and then back to YUV by Resolve. I experimented with using the raw YUV values and considering them as XYZ but this was clearly wrong. I think 3 is probably what I should have done in the first place.
2025-09-22Rename check_one_frame -> check_one_frame_against_j2cCarl Hetherington
2025-09-15Allow building with boost::process v2 (added in Ubuntu 25.10).Carl Hetherington
2025-09-07Add audio delay option to Config and player prefs.Carl Hetherington
2025-09-06Fix incorrectly-clipped audio on export (possibly #2865).Carl Hetherington
2025-08-25Add cover sheet magic strings for marker positions (#3076).Carl Hetherington
2025-08-25Use 0-padded numbers for all fields of a timecode.Carl Hetherington
2025-08-25White space: util_test.cc.Carl Hetherington
2025-08-12New/improved pixel format decision when converting to XYZ.Carl Hetherington
For a long time we would keep XYZ12LE, if that's what we have, otherwise ask FFmpeg to switch to RGB48LE. Then in 1d5c211dadb9a9dc2318adce86ca9c31b367cabe I tried to fix the case of an XYZ source mis-tagged as YUV. I changed things so that with no colour conversion we'd always ask FFmpeg to convert to XYZ. This meant that RGB sources with no colour conversion would get treatment by FFmpeg due to the RGB -> XYZ switch. Here we're going back to the more-or-less the "long time" behaviour when there is a conversion (keep XYZ12LE but otherwise convert to RGB48). When there's no conversion, keep RGB (to avoid the FFmpeg conversion from RGB -> XYZ) but convert everything else to XYZ.
2025-08-12Replace AVPixelFormat parameter to PlayerVideo::image with a functor.Carl Hetherington
This was removed in df9b4676aba8b941f124b174393988cad21677e1 and surrounding commits, but it turns out we need it after all.
2025-07-15Change Film::examine_and_add_content to take a vector of content.Carl Hetherington
2025-07-15Change Film::add_content to take a vector of content.Carl Hetherington
2025-07-15Don't process unnecessary video frame rate changes.Carl Hetherington
This inadvertently fixes a bug where multiple pieces of caption content would be added to the project sequentially, but then immediately re-arranged to be at the same time.
2025-07-15Change ExamineContentJob to take a vector of content.Carl Hetherington
2025-07-13White space: auto_crop_dialog.{cc,h}, export_video_file_dialog.{cc,h}, ↵Carl Hetherington
time_calculation_test.cc
2025-07-11Don't try to add unused fonts to the DCP (#3059).Carl Hetherington
With interop there can be only one font, and we need to make sure it's not one that isn't even being used.
2025-07-10Allow audio processors to pass through HI/VI/DBox etc (#3020).Carl Hetherington
Previously you couldn't map these things if you were using a processor.
2025-07-10Remove compose.hpp includes.Carl Hetherington
sed -i "/include.*compose.hpp/d;" src/lib/*.cc src/wx/*.cc src/wx/*.h src/tools/*.cc src/lib/*.h test/*.cc
2025-07-10Replace String::compose with fmt.Carl Hetherington
sed -i "/Plural-Forms/n;/%100/n;/scanf/n;s/%[123456789]/{}/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc src/lib/po/*.po src/wx/po/*.po src/tools/po/*.po test/*.cc sed -i "s/String::compose */fmt::format/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc test/*.cc
2025-07-10Tweak formatting.Carl Hetherington
2025-07-10Convert some paths to string.Carl Hetherington
2025-07-10Add some includes of fmt/format.h.Carl Hetherington
2025-07-08Fix cut-off subtitle shadows.Carl Hetherington
2025-07-04Go back to the old way of handling KDM timing.Carl Hetherington
Once again the KDM gets its timezone from the cinema.
2025-06-17Pass Ratio around as an object rather than a pointer.Carl Hetherington
2025-06-15Add --fade-{in,out} options to create CLI (#2613).Carl Hetherington
2025-05-29Interpret relative cinemas SQLite3 paths as being relative to the config.xml ↵Carl Hetherington
(#3038).
2025-05-26Remove functors for choosing pixel format output from make_image().Carl Hetherington
2025-05-26Fix incorrect colours with "no colourspace conversion" sources that are not ↵Carl Hetherington
AV_PIX_FMT_XYZ12LE. Prepare the image for where it is going to next. I don't understand the difference in this situation between XYZ12LE and RGB48LE (it seems they are both 16-bit-per-channel) but there you go.
2025-05-19Remove Ubuntu 22.04 test reference hacks.Carl Hetherington
Before the previous commit Ubuntu 22.04 would give slightly different results to 24.04 when burning subtitles. I think this was because DoM was erroneously using the system copy of Liberation Sans, which I presume was changed. After the previous commit we are always using the in-tree Liberation Sans, which means that we can update the test references for Ubuntu 24.04 and use them also for 22.04.
2025-05-19Tidy up finding required files during tests.Carl Hetherington
In particular, prefer not to use lots of fallback attempts. It seems that something funny is going on with how we find Liberation Sans on Linux, meaning that we were sometimes using the OS copy of the font when we didn't mean to.
2025-05-13Allow hyphens as part of the "name" part of the ISDCF name.Carl Hetherington
2025-05-10White space: audio_merger_test.ccCarl Hetherington
2025-05-08Add Film::possible_reel_types().Carl Hetherington
2025-04-14Fix test to not raise an error from clairmeta.Carl Hetherington