dcpomatic.git
5 months agohax00rs cucumber
Carl Hetherington [Fri, 24 Nov 2023 23:55:10 +0000 (00:55 +0100)]
hax00rs

5 months agoadd runner for just the server
Carl Hetherington [Fri, 24 Nov 2023 21:58:54 +0000 (22:58 +0100)]
add runner for just the server

5 months agohax
Carl Hetherington [Fri, 24 Nov 2023 21:57:53 +0000 (22:57 +0100)]
hax

5 months agoAdd some docs
Carl Hetherington [Fri, 24 Nov 2023 21:33:15 +0000 (22:33 +0100)]
Add some docs

5 months agofix stuff
Carl Hetherington [Fri, 24 Nov 2023 21:33:12 +0000 (22:33 +0100)]
fix stuff

5 months agofixup! Initial cucumber test.
Carl Hetherington [Fri, 24 Nov 2023 21:33:05 +0000 (22:33 +0100)]
fixup! Initial cucumber test.

5 months agomore hacks.
Carl Hetherington [Fri, 7 Jan 2022 22:02:49 +0000 (23:02 +0100)]
more hacks.

5 months agomore tinkering.
Carl Hetherington [Thu, 6 Jan 2022 21:59:45 +0000 (21:59 +0000)]
more tinkering.

5 months agohacks/debug.
Carl Hetherington [Wed, 5 Jan 2022 23:56:59 +0000 (23:56 +0000)]
hacks/debug.

5 months agodebug.
Carl Hetherington [Wed, 5 Jan 2022 10:50:31 +0000 (10:50 +0000)]
debug.

5 months agowip: trying to add run/cucumber.
Carl Hetherington [Sun, 5 Jul 2020 19:04:04 +0000 (21:04 +0200)]
wip: trying to add run/cucumber.

5 months agoInitial cucumber test.
Carl Hetherington [Sun, 24 May 2020 23:10:31 +0000 (01:10 +0200)]
Initial cucumber test.

cd features
rm -rf ~/test
echo "Here we go"
LD_LIBRARY_PATH=../build/src/lib:../build/src/wx ../build/features/dcpomatic_cucumber 2> /dev/null

in one terminal, then

cucumber .

in another (i.e. from the root of the dcpomatic source tree) and the test will make a new
project ~/test and add some content to it.

5 months agoFix debug assertion when adding a KDM.
Carl Hetherington [Fri, 24 Nov 2023 10:31:22 +0000 (11:31 +0100)]
Fix debug assertion when adding a KDM.

5 months agoUpdated zh_CN translation from 刘汉源
Carl Hetherington [Thu, 23 Nov 2023 22:24:59 +0000 (23:24 +0100)]
Updated zh_CN translation from 刘汉源

5 months agoUpdate servers list after connecting to the signal.
Carl Hetherington [Thu, 23 Nov 2023 00:23:37 +0000 (01:23 +0100)]
Update servers list after connecting to the signal.

Otherwise it can happen that a signal is emitted before we connect
to it, and then after that no more signals come because nothing
changes.

5 months agoClarify error messages about missing configuration.
Carl Hetherington [Thu, 23 Nov 2023 00:23:20 +0000 (01:23 +0100)]
Clarify error messages about missing configuration.

5 months agoFix Centos 7 build.
Carl Hetherington [Tue, 21 Nov 2023 19:20:04 +0000 (20:20 +0100)]
Fix Centos 7 build.

5 months agoAnother Winodws build fix. v2.16.67
Carl Hetherington [Tue, 21 Nov 2023 08:24:51 +0000 (09:24 +0100)]
Another Winodws build fix.

5 months agoMissing header for Windows build.
Carl Hetherington [Mon, 20 Nov 2023 23:31:02 +0000 (00:31 +0100)]
Missing header for Windows build.

5 months agoCleanup: whitespace and header sorting.
Carl Hetherington [Mon, 20 Nov 2023 23:22:36 +0000 (00:22 +0100)]
Cleanup: whitespace and header sorting.

5 months agoFix class/struct confusion causing build error on macOS.
Carl Hetherington [Mon, 20 Nov 2023 22:59:26 +0000 (23:59 +0100)]
Fix class/struct confusion causing build error on macOS.

5 months agoVerify encrypted DCPs (more) correctly (#2659).
Carl Hetherington [Sun, 19 Nov 2023 23:25:27 +0000 (00:25 +0100)]
Verify encrypted DCPs (more) correctly (#2659).

5 months agoCleanup: use stack-allocated FileDialog and accept multiple KDMs.
Carl Hetherington [Sun, 19 Nov 2023 23:20:44 +0000 (00:20 +0100)]
Cleanup: use stack-allocated FileDialog and accept multiple KDMs.

5 months agoCleanup: use ScopeGuard.
Carl Hetherington [Sun, 19 Nov 2023 23:14:32 +0000 (00:14 +0100)]
Cleanup: use ScopeGuard.

5 months agoFix build.
Carl Hetherington [Mon, 20 Nov 2023 14:37:23 +0000 (15:37 +0100)]
Fix build.

5 months agoFix audio analysis attempts with source files that have more channels than the film.
Carl Hetherington [Wed, 15 Nov 2023 16:02:16 +0000 (17:02 +0100)]
Fix audio analysis attempts with source files that have more channels than the film.

5 months agoCleanup: handle Filter objects by value rather than by reference.
Carl Hetherington [Tue, 7 Nov 2023 23:59:42 +0000 (00:59 +0100)]
Cleanup: handle Filter objects by value rather than by reference.

5 months agoCleanup: remove an unnecessary shared_ptr.
Carl Hetherington [Tue, 7 Nov 2023 23:24:20 +0000 (00:24 +0100)]
Cleanup: remove an unnecessary shared_ptr.

5 months agoAdd header guards.
Carl Hetherington [Tue, 7 Nov 2023 23:24:11 +0000 (00:24 +0100)]
Add header guards.

5 months agoDon't feed channels to leqm that we don't have a correction factor for (#2647).
Carl Hetherington [Tue, 7 Nov 2023 23:18:22 +0000 (00:18 +0100)]
Don't feed channels to leqm that we don't have a correction factor for (#2647).

5 months agoAdd a dialog to show which screens have potentially-problematic
Carl Hetherington [Sun, 19 Nov 2023 20:34:56 +0000 (21:34 +0100)]
Add a dialog to show which screens have potentially-problematic
certificate validity periods when making KDMs (#2645).

5 months agoFix "create KDM" button sensitivity with invalid KDM time range.
Carl Hetherington [Sun, 19 Nov 2023 20:34:27 +0000 (21:34 +0100)]
Fix "create KDM" button sensitivity with invalid KDM time range.

5 months agoCleanup: header ordering.
Carl Hetherington [Sun, 19 Nov 2023 20:33:11 +0000 (21:33 +0100)]
Cleanup: header ordering.

5 months agoImprove progress reporting of digest calculations (might help with #2643).
Carl Hetherington [Sun, 12 Nov 2023 21:09:48 +0000 (22:09 +0100)]
Improve progress reporting of digest calculations (might help with #2643).

5 months agoSupporters update.
Carl Hetherington [Sun, 19 Nov 2023 21:40:40 +0000 (22:40 +0100)]
Supporters update.

5 months agoFix out-of-bounds read in OSX disk checking (#2658).
Carl Hetherington [Sun, 19 Nov 2023 20:07:25 +0000 (21:07 +0100)]
Fix out-of-bounds read in OSX disk checking (#2658).

5 months agoAlways add a font with an empty ID (#2649).
Carl Hetherington [Fri, 10 Nov 2023 22:51:46 +0000 (23:51 +0100)]
Always add a font with an empty ID (#2649).

It's not just subtitle files with no <LoadFont> that can have
subtitles without a specified font.  In particular, DoM makes a
single space subtitle with no font spec when it creates filler
subtitles in multi-reel DCPs.

5 months agoPass through <Ruby> tags in subtitles (#2635) (GH#23).
Carl Hetherington [Wed, 15 Nov 2023 22:07:42 +0000 (23:07 +0100)]
Pass through <Ruby> tags in subtitles (#2635) (GH#23).

5 months agoFix crash with subtitles for which we have no codec.
Carl Hetherington [Thu, 16 Nov 2023 14:14:16 +0000 (15:14 +0100)]
Fix crash with subtitles for which we have no codec.

5 months agoCopy Interop PNG subtitle files correctly (#2640).
Carl Hetherington [Sun, 12 Nov 2023 23:30:48 +0000 (00:30 +0100)]
Copy Interop PNG subtitle files correctly (#2640).

5 months agoExtract copy().
Carl Hetherington [Wed, 15 Nov 2023 00:48:29 +0000 (01:48 +0100)]
Extract copy().

5 months agoReplace deprecated zip_add() with zip_file_add().
Carl Hetherington [Sat, 11 Nov 2023 00:59:22 +0000 (01:59 +0100)]
Replace deprecated zip_add() with zip_file_add().

5 months agoReplace deprecated leaf() with filename().
Carl Hetherington [Sat, 11 Nov 2023 00:31:58 +0000 (01:31 +0100)]
Replace deprecated leaf() with filename().

5 months agoMove a IMB location to try_imb() and add a new IMS pattern (#2644).
Carl Hetherington [Sat, 11 Nov 2023 22:45:37 +0000 (23:45 +0100)]
Move a IMB location to try_imb() and add a new IMS pattern (#2644).

5 months agoStore last path for adding KDMs (#2348).
Carl Hetherington [Sat, 11 Nov 2023 21:55:27 +0000 (22:55 +0100)]
Store last path for adding KDMs (#2348).

5 months agoAdd FileDialog::path().
Carl Hetherington [Sat, 11 Nov 2023 21:54:51 +0000 (22:54 +0100)]
Add FileDialog::path().

5 months agoCleanup: stack-allocated dialogs.
Carl Hetherington [Sat, 11 Nov 2023 21:19:37 +0000 (22:19 +0100)]
Cleanup: stack-allocated dialogs.

5 months agoUse DirDialog and fix initial path (#2348).
Carl Hetherington [Sat, 11 Nov 2023 20:07:54 +0000 (21:07 +0100)]
Use DirDialog and fix initial path (#2348).

5 months agoMove add_files_override_path to film_util
Carl Hetherington [Sat, 11 Nov 2023 20:03:39 +0000 (21:03 +0100)]
Move add_files_override_path to film_util

5 months agoAdd comment.
Carl Hetherington [Sat, 11 Nov 2023 20:03:16 +0000 (21:03 +0100)]
Add comment.

5 months agoCleanup: stack-allocated dialogs.
Carl Hetherington [Sat, 11 Nov 2023 19:37:42 +0000 (20:37 +0100)]
Cleanup: stack-allocated dialogs.

5 months agoCleanup: auto.
Carl Hetherington [Sat, 11 Nov 2023 19:37:35 +0000 (20:37 +0100)]
Cleanup: auto.

5 months agoAdd check before dereferencing pointer.
Carl Hetherington [Sat, 28 Oct 2023 21:16:41 +0000 (23:16 +0200)]
Add check before dereferencing pointer.

5 months agoFix uninitialised variable.
Carl Hetherington [Sat, 28 Oct 2023 21:16:32 +0000 (23:16 +0200)]
Fix uninitialised variable.

5 months agoAdd some std::move.
Carl Hetherington [Sat, 28 Oct 2023 21:04:36 +0000 (23:04 +0200)]
Add some std::move.

5 months agoAdd some const& to uses of auto.
Carl Hetherington [Sat, 28 Oct 2023 21:04:26 +0000 (23:04 +0200)]
Add some const& to uses of auto.

5 months agoFix some possible overflows.
Carl Hetherington [Sat, 28 Oct 2023 21:04:15 +0000 (23:04 +0200)]
Fix some possible overflows.

5 months agoFix a bizarre thinko / typo of "false" for false.
Carl Hetherington [Sat, 28 Oct 2023 21:04:04 +0000 (23:04 +0200)]
Fix a bizarre thinko / typo of "false" for false.

5 months agoMake sure a dynamic_pointer_cast worked.
Carl Hetherington [Sat, 28 Oct 2023 21:03:38 +0000 (23:03 +0200)]
Make sure a dynamic_pointer_cast worked.

5 months agoCheck some unsanitized network inputs before allocating memory using them.
Carl Hetherington [Sat, 28 Oct 2023 21:03:24 +0000 (23:03 +0200)]
Check some unsanitized network inputs before allocating memory using them.

5 months agoFix theoretical int overflow.
Carl Hetherington [Sat, 28 Oct 2023 21:02:54 +0000 (23:02 +0200)]
Fix theoretical int overflow.

5 months agoAdd some missing locks.
Carl Hetherington [Sat, 28 Oct 2023 21:02:40 +0000 (23:02 +0200)]
Add some missing locks.

5 months agoCleanup: whitespace.
Carl Hetherington [Sat, 28 Oct 2023 21:02:17 +0000 (23:02 +0200)]
Cleanup: whitespace.

5 months agoFix thinko when trying to keep channel counts even.
Carl Hetherington [Sat, 28 Oct 2023 21:02:09 +0000 (23:02 +0200)]
Fix thinko when trying to keep channel counts even.

5 months agoFix possible deference of invalid iterator (if _reel == _reels.end()).
Carl Hetherington [Sat, 28 Oct 2023 20:31:38 +0000 (22:31 +0200)]
Fix possible deference of invalid iterator (if _reel == _reels.end()).

5 months agoFix possible dereference of invalid iterator (if have_pushed is empty).
Carl Hetherington [Sat, 28 Oct 2023 20:28:14 +0000 (22:28 +0200)]
Fix possible dereference of invalid iterator (if have_pushed is empty).

5 months agoTolerate DCPs with no video and/or audio.
Carl Hetherington [Sat, 28 Oct 2023 19:48:26 +0000 (21:48 +0200)]
Tolerate DCPs with no video and/or audio.

5 months agoUse updated libdcp, including an optimisation for rgb-onto-xyz12.
Carl Hetherington [Fri, 27 Oct 2023 23:51:51 +0000 (01:51 +0200)]
Use updated libdcp, including an optimisation for rgb-onto-xyz12.

6 months agoFix transcode job fps logging.
Carl Hetherington [Wed, 18 Oct 2023 22:10:58 +0000 (00:10 +0200)]
Fix transcode job fps logging.

Broken in d3455851f60ee6bc35ea4f314c62a7da51ce0d81

6 months agoAdd button to show only checked screens in the KDM creator (#2624).
Carl Hetherington [Tue, 17 Oct 2023 22:44:30 +0000 (00:44 +0200)]
Add button to show only checked screens in the KDM creator (#2624).

6 months agoFix crash when removing multiple cinemas caused by _selected_cinemas being changed...
Carl Hetherington [Tue, 17 Oct 2023 23:03:55 +0000 (01:03 +0200)]
Fix crash when removing multiple cinemas caused by _selected_cinemas being changed as we read it (#2632).

6 months agoMake sure 2-channel MXFs don't get extra channel descriptors (#2631).
Carl Hetherington [Mon, 16 Oct 2023 21:31:46 +0000 (23:31 +0200)]
Make sure 2-channel MXFs don't get extra channel descriptors (#2631).

With all the EasyDCP tests done in bug #2487 we didn't look at stereo
MXFs as it appeared fairly early on that EasyDCP would reject them all.

In #2631 it's pointed out that it seems to make no sense to have descriptors
for channels which aren't there.  I've still got no docs for any of this,
but let's try fixing that.

6 months agoChange how channels are specified for these tests.
Carl Hetherington [Mon, 16 Oct 2023 21:28:26 +0000 (23:28 +0200)]
Change how channels are specified for these tests.

We now have a number of channels for the MXF, and the active
channels that we map in the DCP.

6 months agoReplace a slightly tortured lambda with a loop.
Carl Hetherington [Mon, 16 Oct 2023 18:19:53 +0000 (20:19 +0200)]
Replace a slightly tortured lambda with a loop.

6 months agoRemove unused code.
Carl Hetherington [Mon, 16 Oct 2023 09:30:27 +0000 (11:30 +0200)]
Remove unused code.

6 months agoThis test suddenly just started failing with
Carl Hetherington [Sun, 15 Oct 2023 22:40:28 +0000 (00:40 +0200)]
This test suddenly just started failing with
opj_int_fix_mul: Assertion `(temp >> 13) <= (OPJ_INT64)0x7FFFFFFF' failed.
which is odd - why now?

Anywhere here we limit the OpenJPEG image values to what I think is
the "legal" range.

6 months agoSupporters update. v2.16.66
Carl Hetherington [Sun, 15 Oct 2023 15:34:33 +0000 (17:34 +0200)]
Supporters update.

6 months agoSupporters update.
Carl Hetherington [Sun, 15 Oct 2023 07:16:49 +0000 (09:16 +0200)]
Supporters update.

6 months agoFix DCP content font ID allocation to cope with DCPs that have multiple fonts
Carl Hetherington [Sat, 14 Oct 2023 19:48:25 +0000 (21:48 +0200)]
Fix DCP content font ID allocation to cope with DCPs that have multiple fonts
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

6 months agoCleanup: assert.
Carl Hetherington [Sat, 14 Oct 2023 19:43:52 +0000 (21:43 +0200)]
Cleanup: assert.

6 months agoCleanup: rename sc -> subtitle_asset
Carl Hetherington [Sat, 14 Oct 2023 19:41:15 +0000 (21:41 +0200)]
Cleanup: rename sc -> subtitle_asset

6 months agoCleanup: assert result of get_font().
Carl Hetherington [Sat, 14 Oct 2023 19:40:32 +0000 (21:40 +0200)]
Cleanup: assert result of get_font().

6 months agoBump libdcp for channel ID fix (#2629).
Carl Hetherington [Thu, 12 Oct 2023 08:50:24 +0000 (10:50 +0200)]
Bump libdcp for channel ID fix (#2629).

6 months agoAnother compilation error fix for old toolchains.
Carl Hetherington [Tue, 10 Oct 2023 18:35:16 +0000 (20:35 +0200)]
Another compilation error fix for old toolchains.

6 months agoCleanup: remove unnecessary namespace.
Carl Hetherington [Tue, 10 Oct 2023 18:35:06 +0000 (20:35 +0200)]
Cleanup: remove unnecessary namespace.

6 months agoApply another fix for a weird compilation error on old compilers.
Carl Hetherington [Tue, 10 Oct 2023 17:32:37 +0000 (19:32 +0200)]
Apply another fix for a weird compilation error on old compilers.

6 months agoBump libdcp for fixes to build on Ubuntu 16.04 etc.
Carl Hetherington [Tue, 10 Oct 2023 10:12:54 +0000 (12:12 +0200)]
Bump libdcp for fixes to build on Ubuntu 16.04 etc.

6 months agoAdd new "copy markers from this DCP" option (#2628).
Carl Hetherington [Mon, 9 Oct 2023 23:05:27 +0000 (01:05 +0200)]
Add new "copy markers from this DCP" option (#2628).

Also stop the "copy settings" options from doing this, as Carsten points
out that it could be confusing and potentially very bad if you copy
markers from an OV to an edited VF which then bring house lights up at
the wrong time or whatever.

6 months agoRename copy_dcp_details_to_film -> copy_dcp_settings_to_film.
Carl Hetherington [Mon, 9 Oct 2023 22:58:39 +0000 (00:58 +0200)]
Rename copy_dcp_details_to_film -> copy_dcp_settings_to_film.

6 months agoSupporters update.
Carl Hetherington [Mon, 9 Oct 2023 21:52:16 +0000 (23:52 +0200)]
Supporters update.

6 months agoUse dcp::filesystem to wrap filesystem calls and fix_long_path
Carl Hetherington [Fri, 6 Oct 2023 00:37:16 +0000 (02:37 +0200)]
Use dcp::filesystem to wrap filesystem calls and fix_long_path
anything that is passed to read_file() from libcxml.

This should fix #2623 and other similar problems.

6 months agoBump libdcp for new filesystem wrappers.
Carl Hetherington [Wed, 4 Oct 2023 22:20:27 +0000 (00:20 +0200)]
Bump libdcp for new filesystem wrappers.

6 months agoBump leqm-nrt to build with -O2 for a large speed-up (#2616).
Carl Hetherington [Sun, 8 Oct 2023 21:04:59 +0000 (23:04 +0200)]
Bump leqm-nrt to build with -O2 for a large speed-up (#2616).

6 months agoFix flickering timeline drags on Windows (#2625).
Carl Hetherington [Wed, 4 Oct 2023 23:17:16 +0000 (01:17 +0200)]
Fix flickering timeline drags on Windows (#2625).

6 months agoYou are advised -> It is advisable (#2189).
Carl Hetherington [Mon, 2 Oct 2023 21:41:06 +0000 (23:41 +0200)]
You are advised -> It is advisable (#2189).

6 months agoCleanup: use a lambda.
Carl Hetherington [Sat, 30 Sep 2023 20:58:45 +0000 (22:58 +0200)]
Cleanup: use a lambda.

6 months agoFix test/data branching SNAFU.
Carl Hetherington [Sat, 30 Sep 2023 10:35:26 +0000 (12:35 +0200)]
Fix test/data branching SNAFU.

6 months agoAllow DCP content type from template to work.
Carl Hetherington [Sat, 30 Sep 2023 10:32:42 +0000 (12:32 +0200)]
Allow DCP content type from template to work.

6 months agoAllow SMPTE/interop setting from template to work.
Carl Hetherington [Sat, 30 Sep 2023 10:28:05 +0000 (12:28 +0200)]
Allow SMPTE/interop setting from template to work.

6 months agoAdd --no-encrypt with the same idea as the previous commit.
Carl Hetherington [Sat, 30 Sep 2023 10:09:00 +0000 (12:09 +0200)]
Add --no-encrypt with the same idea as the previous commit.