summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-09-13Hopefully fix occasional hang in j2k_encoder_deadlock_test.Carl Hetherington
Previously too many frames were queued for encoding, which AFAICS meant that (if the CPU was busy) we would get to the point where too many frames were in the encoder queue, so that we blocked waiting for it to clear, and then simultaneously too many frames were in the writer queue, which (in this test) would never clear. At this point we would be backed up waiting for Writer::write() to happen in J2KEncoder::encoder_thread() so that the encoder queue could be cleared, but nobody is calling Writer::write().
2024-09-12Bump sleep a little to try and de-flake a test.Carl Hetherington
2024-06-27Fix error when importing bad subtitle file (#2838).Carl Hetherington
The subtitle XML refers to a font with no corresponding <LoadFont>.
2024-06-07Fix font ID allocation from DCP when there are subs and ccaps using the same ↵Carl Hetherington
IDs (#2822). Previously we would always use <last-reel+1>_id as a disambiguated ID for every case.
2024-05-21Fix stream length for DCP content (#2688).Carl Hetherington
2024-05-17Make sure we don't say some content has audio if none will be emitted.Carl Hetherington
In the FFmpeg (and shortly DCP) case we don't emit any audio if none is mapped, so we must take this into account in the player.
2024-05-08Work around deadlock when destroying J2KEncoder with a full writer queue ↵v2.16.83Carl Hetherington
(#2784). This feels like a hack, but I can't think of a nicer way to do it. The interruption disable makes sense because when we destroy encoder threads during a DCP encode (because a remote server goes away, for example) we don't want any frames to be lost due to the encode thread being interrupted between taking the frame off the queue and sending it to the writer. When we're destroying the encoder we don't care about this, but I can't see how you'd differentiate. Maybe the encoder queue could have two lists: to-do and in-progress; the encoder thread atomically moves a frame from to-do to in-progress, but then how do you know when the in-progress ones are orphaned and need to be re-added to the main queue. You could make the writer return saying "no" if the queue is full (rather than blocking and waiting for the queue to empty) but that seems wasteful as then the frame would be re-encoded.
2024-04-01Fix hanging/overlapping dvb subtitles (#2792).Carl Hetherington
This reverts a change made in 8ca6fd6d97e6d42492afddb655fa85130946853c "Fix doubled subtitles if subtitle stop times are specified." That change breaks the case where a subtitle _does_ have a stop time, but it's wrong (30s from the start time) and we want the next subtitle to clear the previous one. I can't now see how reverting this could cause doubled subtitles, so maybe that problem wlil come back. At least now there's a test for #2792.
2024-03-20Fix failing tests.Carl Hetherington
Broken in the fix for #2780, when we started to check that referenced audio MXFs have the correct number of channels.
2024-03-07Fix screen name order in KDM emails.Carl Hetherington
2024-02-21Make DCPExaminer::size() optional and deal with the consequences.v2.16.78Carl Hetherington
This means we can fix the case of a VF having no known size in a nice way, in turn fixing problems caused by the fix to #2775.
2024-02-21Fix failure to examine non-flat-ratio VFs (#2775).Carl Hetherington
2024-02-16Add Unzipper.Carl Hetherington
2024-02-11Don't add a font with an empty ID for ccaps either (#2762).Carl Hetherington
Previously this was all changed so that for subs we add the default font in a cleaner way (in db22f81ccce9e1a5f205e6d8b3c0631fc039a173). I can't see why we shouldn't treat ccaps the same way, and indeed not doing it causes an error as shown by the included test.
2024-02-11Fix apparently ineffective processors when analysing audio (#2671).Carl Hetherington
A whole film ("DCP side") analysis would behave the same as a single piece of content analysis if the film only had one piece of content. Here we also clarify that audio analysis of the whole film is different to that for a single piece of content; for the whole film we use processors, and for single pieces of content we do not.
2024-02-07Remove apparently out-of-date comment.Carl Hetherington
2024-02-03Remove unused variable.Carl Hetherington
2024-02-03Don't emit subtitle images that have a zero dimension (#2743).Carl Hetherington
They cause problems later when trying to blend them into the image.
2024-02-03Support alpha blend onto YUV444P9LE and YUV444P10LE (68 and 70).Carl Hetherington
2024-02-03Fix incorrect pixel formats for tests.Carl Hetherington
2024-02-03Fix flipped red and blue with rgba64_onto_* tests.Carl Hetherington
2024-01-17Fix ISDCF name when referring to OVs with subs (#2703).Carl Hetherington
2024-01-15Inspect most DCPs made during tests with ClairMeta (#76).Carl Hetherington
2024-01-15Inspect most DCPs made during tests with dcp_inspect (#76).Carl Hetherington
2024-01-15Fix handling of empty font IDs and default DCP fonts (#2721) (part of #2722).Carl Hetherington
Previously we used an empty font ID as the default for when a subtitle has no Font, but in #2721 we saw a DCP with an empty font ID which raised an assertion (because we'd already added our default font with the empty ID). Here we try to fix this (and also make the default font correctly be that from the first <LoadFont>).
2024-01-11More test fixes after changes in c2c6fbdd8dddbb6ccba0a6ae49a13d5364122df7Carl Hetherington
2024-01-11Fix tests after changes in c2c6fbdd8dddbb6ccba0a6ae49a13d5364122df7Carl Hetherington
2024-01-09Re-make video after YUV/RGB matrix is changed (#2714).Carl Hetherington
2024-01-09Cleanup: white space.Carl Hetherington
2024-01-09Check for bad DN qualifiers on signer certificates (#2716).Carl Hetherington
2024-01-09Move ScopeGuard into libdcp.Carl Hetherington
2024-01-05Add new "territory type" so that INT-T{D,L} can be chosen (#2704).Carl Hetherington
2024-01-04Add a test.Carl Hetherington
2024-01-04Allow specification of map CPLs by ID (#2702).Carl Hetherington
2023-12-12Run premultiply filter on still images that have alpha channels (more of #2681).Carl Hetherington
2023-12-09Support YUV422P9LE in alpha_blend() (#2671).notar1Carl Hetherington
2023-11-29Fix segfault when creating KDMs with certificates and project folders (not ↵Carl Hetherington
DKDMs).
2023-11-20Verify encrypted DCPs (more) correctly (#2659).Carl Hetherington
2023-11-20Fix audio analysis attempts with source files that have more channels than ↵Carl Hetherington
the film.
2023-11-20Don't feed channels to leqm that we don't have a correction factor for (#2647).Carl Hetherington
2023-11-20Add a dialog to show which screens have potentially-problematicCarl Hetherington
certificate validity periods when making KDMs (#2645).
2023-11-20Improve progress reporting of digest calculations (might help with #2643).Carl Hetherington
2023-11-17Always add a font with an empty ID (#2649).Carl Hetherington
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.
2023-11-17Pass through <Ruby> tags in subtitles (#2635) (GH#23).Carl Hetherington
2023-11-15Copy Interop PNG subtitle files correctly (#2640).Carl Hetherington
2023-11-12Replace deprecated leaf() with filename().Carl Hetherington
2023-10-28Add check before dereferencing pointer.Carl Hetherington
2023-10-17Make sure 2-channel MXFs don't get extra channel descriptors (#2631).Carl Hetherington
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.
2023-10-16Change how channels are specified for these tests.Carl Hetherington
We now have a number of channels for the MXF, and the active channels that we map in the DCP.
2023-10-16Remove unused code.Carl Hetherington