Carl Hetherington [Fri, 19 Jun 2020 11:12:12 +0000 (13:12 +0200)]
Missing set up of AtmosVersion when writing Atmos assets.
Carl Hetherington [Fri, 19 Jun 2020 11:11:49 +0000 (13:11 +0200)]
Add wrapper for AtmosAssetWriter::write to write a frame.
Carl Hetherington [Fri, 19 Jun 2020 11:10:45 +0000 (13:10 +0200)]
Fix a whole load of missing setup for AtmosAssets, most notably
the ID.
Carl Hetherington [Fri, 19 Jun 2020 11:09:09 +0000 (13:09 +0200)]
I believe atmos_id is a unique identifier, so create it in the
same way that all the others are created.
Carl Hetherington [Tue, 16 Jun 2020 23:04:05 +0000 (01:04 +0200)]
Allow specification of the JPEG2000 comment string.
Carl Hetherington [Tue, 16 Jun 2020 22:58:04 +0000 (00:58 +0200)]
Tidy up and fix some small memory leaks.
Carl Hetherington [Tue, 16 Jun 2020 22:55:58 +0000 (00:55 +0200)]
Clean up strange use of c_str().
Carl Hetherington [Thu, 11 Jun 2020 17:21:16 +0000 (19:21 +0200)]
Run verification tests with a space in the XSD path to trigger an old bug.
Carl Hetherington [Thu, 11 Jun 2020 14:49:33 +0000 (16:49 +0200)]
Fix failure to verify when the XSD/DTD path has a space in it.
With spaces in the path we ended up with spaces in the string
passed to setExternalSchemaLocation which screws everything up.
It turns out we can remove the URIs from that string, which seems
to move the resolution between file and URI to the LocalFileResolver,
which may now be asked to resolve either a file or a URI.
Maybe I've missed something obvious here.
Carl Hetherington [Thu, 11 Jun 2020 09:19:17 +0000 (11:19 +0200)]
Add some missing .xsd files to the install target.
Carl Hetherington [Thu, 11 Jun 2020 08:51:09 +0000 (10:51 +0200)]
Bump openjpeg for Windows ccache build fixes.
Carl Hetherington [Mon, 1 Jun 2020 22:17:44 +0000 (00:17 +0200)]
Don't build benchmarks with cdist.
Carl Hetherington [Sun, 31 May 2020 19:49:41 +0000 (21:49 +0200)]
Add very simple benchmark for rgb_to_xyz.
Carl Hetherington [Wed, 20 May 2020 20:09:55 +0000 (22:09 +0200)]
Add add_days to LocalTime.
Carl Hetherington [Tue, 12 May 2020 10:41:23 +0000 (12:41 +0200)]
Make add_minutes() work correctly with milliseconds.
Carl Hetherington [Tue, 12 May 2020 10:38:33 +0000 (12:38 +0200)]
Move some tests and rename one set.
Carl Hetherington [Tue, 12 May 2020 10:35:41 +0000 (12:35 +0200)]
Add a proper implementation of add_months() and a test for the
case when it fails by giving erroneous dates like 30th February.
Carl Hetherington [Tue, 12 May 2020 10:35:07 +0000 (12:35 +0200)]
Add a note when verifying if the DCP refers to assets
that are not mentioned in its ASSETMAP (i.e. a VF).
Carl Hetherington [Tue, 12 May 2020 10:34:03 +0000 (12:34 +0200)]
Comment typo.
Carl Hetherington [Tue, 12 May 2020 10:33:48 +0000 (12:33 +0200)]
Improve comment.
Carl Hetherington [Fri, 8 May 2020 22:33:51 +0000 (00:33 +0200)]
Verify the XML of subtitle files.
Carl Hetherington [Fri, 8 May 2020 22:32:32 +0000 (00:32 +0200)]
Comment typo.
Carl Hetherington [Fri, 8 May 2020 20:46:03 +0000 (22:46 +0200)]
Make J2K frame size tests more robust.
Carl Hetherington [Fri, 8 May 2020 20:44:50 +0000 (22:44 +0200)]
Store and allow access to the raw XML that is read in from
subtitle assets so that it cab be verified without any
interference from being passed through libdcp.
Carl Hetherington [Thu, 7 May 2020 21:23:09 +0000 (23:23 +0200)]
Factor some code out into methods.
Carl Hetherington [Wed, 6 May 2020 23:08:51 +0000 (01:08 +0200)]
Check that JPEG2000 frames aren't too big (i.e. too
many bytes).
Carl Hetherington [Wed, 6 May 2020 22:34:11 +0000 (00:34 +0200)]
Result is specific to verify_asset().
Carl Hetherington [Tue, 5 May 2020 22:50:37 +0000 (00:50 +0200)]
Allow ignoring of specifications in NameFormat.
Carl Hetherington [Sun, 26 Apr 2020 21:11:15 +0000 (23:11 +0200)]
Try to fix Centos 6 build.
Carl Hetherington [Sat, 25 Apr 2020 10:15:20 +0000 (12:15 +0200)]
Missing #include.
Carl Hetherington [Mon, 20 Apr 2020 21:15:54 +0000 (23:15 +0200)]
Fix build on some (older?) GCCs.
Carl Hetherington [Tue, 14 Apr 2020 21:11:33 +0000 (23:11 +0200)]
Add an explicit exception for J2K decompression failures.
Carl Hetherington [Tue, 14 Apr 2020 18:16:44 +0000 (20:16 +0200)]
s/DCPReadError/ReadError/g
Carl Hetherington [Mon, 13 Apr 2020 20:55:53 +0000 (22:55 +0200)]
Add a special exception for the case when opj_start_compress fails.
Carl Hetherington [Thu, 2 Apr 2020 19:50:01 +0000 (21:50 +0200)]
Bump libcxml for new force-cpp stuff.
Carl Hetherington [Thu, 2 Apr 2020 12:34:18 +0000 (14:34 +0200)]
Cleanup.
Carl Hetherington [Thu, 2 Apr 2020 12:28:12 +0000 (14:28 +0200)]
Pass force-cpp11 down to libcxml.
Carl Hetherington [Thu, 2 Apr 2020 12:17:38 +0000 (14:17 +0200)]
Tidy up by using option_defaults.
Carl Hetherington [Mon, 16 Mar 2020 10:18:15 +0000 (11:18 +0100)]
Fix misformatting of dcpinfo output.
Carl Hetherington [Sun, 15 Mar 2020 21:09:16 +0000 (22:09 +0100)]
Fix getopt string.
Carl Hetherington [Sun, 15 Mar 2020 21:07:50 +0000 (22:07 +0100)]
Allow general restriction of what is output.
Carl Hetherington [Wed, 11 Mar 2020 09:49:16 +0000 (10:49 +0100)]
Fix ::add_minutes to not alter the timezone of the time it's called on.
Carl Hetherington [Tue, 10 Mar 2020 21:24:46 +0000 (22:24 +0100)]
Be more cautious in CertificateChain::private_key_valid.
Carl Hetherington [Tue, 10 Mar 2020 16:17:45 +0000 (17:17 +0100)]
Add LocalTime::add_minutes.
Carl Hetherington [Mon, 9 Mar 2020 20:08:51 +0000 (21:08 +0100)]
Fix build following merge.
Carl Hetherington [Mon, 9 Mar 2020 20:07:30 +0000 (21:07 +0100)]
Merge.
Carl Hetherington [Mon, 9 Mar 2020 20:06:53 +0000 (21:06 +0100)]
Give an error if there is no asset map.
Carl Hetherington [Sun, 8 Mar 2020 22:16:24 +0000 (23:16 +0100)]
Add test data missing from previous.
Carl Hetherington [Sun, 8 Mar 2020 21:47:33 +0000 (22:47 +0100)]
Add verification checks too see if reel assets' Duration or IntrinsicDuration are too small.
Carl Hetherington [Sun, 8 Mar 2020 21:47:09 +0000 (22:47 +0100)]
Add Reel::assets().
Carl Hetherington [Tue, 3 Mar 2020 21:02:03 +0000 (22:02 +0100)]
Fix interop verification and add some tests for it.
Carl Hetherington [Mon, 3 Feb 2020 16:15:49 +0000 (17:15 +0100)]
Another build fix.
Carl Hetherington [Mon, 3 Feb 2020 16:08:17 +0000 (17:08 +0100)]
Try always loading the openssl crypto module, not the default one.
Carl Hetherington [Mon, 3 Feb 2020 15:51:49 +0000 (16:51 +0100)]
Try again to fix Windows build of previous.
Carl Hetherington [Mon, 3 Feb 2020 15:43:01 +0000 (16:43 +0100)]
Try to fix build of previous.
Carl Hetherington [Mon, 3 Feb 2020 15:22:38 +0000 (16:22 +0100)]
Provide more details on failure to load xmlsec-crypto.
Carl Hetherington [Sun, 2 Feb 2020 23:44:39 +0000 (00:44 +0100)]
Tidy up previous slightly.
Carl Hetherington [Sun, 2 Feb 2020 23:43:04 +0000 (00:43 +0100)]
Allow force-cpp11 via cdist options.
Carl Hetherington [Mon, 23 Dec 2019 00:05:49 +0000 (01:05 +0100)]
Add struct tm constructor for LocalTime, use it to tidy up
day_{greater,less}_than_or_equal and add add_months() method.
Carl Hetherington [Thu, 19 Dec 2019 23:08:20 +0000 (00:08 +0100)]
A reel should be the length of its main picture, or the shortest other thing if there is no picture.
Carl Hetherington [Thu, 19 Dec 2019 23:07:45 +0000 (00:07 +0100)]
Add accessors.
Carl Hetherington [Tue, 17 Dec 2019 22:09:25 +0000 (23:09 +0100)]
Fix openjpeg commit hash for XP build.
Carl Hetherington [Sun, 15 Dec 2019 21:58:21 +0000 (22:58 +0100)]
Add fix_empty_font_ids() to replace empty Font ids with a dummy string.
Carl Hetherington [Sun, 15 Dec 2019 10:03:59 +0000 (11:03 +0100)]
xerces-c will be a dynamic library, not a static one.
Carl Hetherington [Sat, 14 Dec 2019 23:40:50 +0000 (00:40 +0100)]
Windows build fix.
Carl Hetherington [Sat, 14 Dec 2019 23:09:57 +0000 (00:09 +0100)]
More adventures in the art of enum namespacing.
Carl Hetherington [Sat, 14 Dec 2019 22:16:44 +0000 (23:16 +0100)]
Fix bad implementation of bad hack.
Carl Hetherington [Fri, 13 Dec 2019 16:10:51 +0000 (17:10 +0100)]
xerces-related build fixes.
Carl Hetherington [Thu, 12 Dec 2019 15:46:34 +0000 (16:46 +0100)]
Add xerces-c dependency to .pc file.
Carl Hetherington [Wed, 11 Dec 2019 23:18:15 +0000 (00:18 +0100)]
Some cleanups; output total time.
Carl Hetherington [Wed, 11 Dec 2019 23:17:50 +0000 (00:17 +0100)]
Add operator+=
Carl Hetherington [Wed, 11 Dec 2019 11:29:59 +0000 (12:29 +0100)]
Install DTD/XSD files.
Carl Hetherington [Tue, 10 Dec 2019 23:37:24 +0000 (00:37 +0100)]
xerces is mandatory.
Carl Hetherington [Mon, 9 Dec 2019 19:37:18 +0000 (20:37 +0100)]
Remove now-unused boost regex.
Carl Hetherington [Sun, 8 Dec 2019 23:50:26 +0000 (00:50 +0100)]
Add licence for the SMPTE XSD files.
Carl Hetherington [Sun, 8 Dec 2019 23:44:07 +0000 (00:44 +0100)]
Check ASSETMAP; add a PKL test; tidy up calls to validate_xml().
Carl Hetherington [Sun, 8 Dec 2019 23:22:10 +0000 (00:22 +0100)]
Use VerificationNote more 'properly' in a fair few places.
Carl Hetherington [Sun, 8 Dec 2019 23:04:23 +0000 (00:04 +0100)]
Also check PKL XML.
Carl Hetherington [Sun, 8 Dec 2019 23:04:07 +0000 (00:04 +0100)]
Note any file that is used for reading/writing a PKL, like we do with assets.
Carl Hetherington [Sun, 8 Dec 2019 21:39:00 +0000 (22:39 +0100)]
Validate XML with xerces.
Carl Hetherington [Fri, 6 Dec 2019 21:45:55 +0000 (22:45 +0100)]
More tests.
Carl Hetherington [Fri, 6 Dec 2019 21:21:59 +0000 (22:21 +0100)]
Fix .gitignore.
Carl Hetherington [Fri, 6 Dec 2019 21:21:17 +0000 (22:21 +0100)]
Verify Id in ContentVersion.
Carl Hetherington [Fri, 6 Dec 2019 21:16:01 +0000 (22:16 +0100)]
Fix syntax of ContentVersion/Id in the reference.
Carl Hetherington [Fri, 6 Dec 2019 21:14:58 +0000 (22:14 +0100)]
Add a debug method for when there are unexpected notes.
Carl Hetherington [Fri, 6 Dec 2019 20:14:53 +0000 (21:14 +0100)]
Add a comment.
Carl Hetherington [Fri, 6 Dec 2019 16:40:25 +0000 (17:40 +0100)]
Use regex and check <IssueDate> in CPL.
Carl Hetherington [Fri, 6 Dec 2019 15:37:17 +0000 (16:37 +0100)]
Check for badly-formed CPL <Id>
Carl Hetherington [Fri, 6 Dec 2019 14:43:43 +0000 (15:43 +0100)]
More cleanups.
Carl Hetherington [Fri, 6 Dec 2019 11:32:01 +0000 (12:32 +0100)]
Add another verification test.
Carl Hetherington [Fri, 6 Dec 2019 09:47:04 +0000 (10:47 +0100)]
Use VerificationNote for non-fatal errors in DCP::read.
Carl Hetherington [Thu, 5 Dec 2019 13:00:10 +0000 (14:00 +0100)]
Add two new tests and tidy up some old ones a little.
Carl Hetherington [Thu, 5 Dec 2019 12:59:34 +0000 (13:59 +0100)]
Report errors passed back from DCP::read when exceptions aren't used.
Fix crash when verifying DCPs with missing assets.
Carl Hetherington [Thu, 5 Dec 2019 09:10:31 +0000 (10:10 +0100)]
Tweak error message.
Carl Hetherington [Thu, 5 Dec 2019 00:09:20 +0000 (01:09 +0100)]
Bump asdcplib to anything off the carl branch.
Carl Hetherington [Tue, 3 Dec 2019 19:29:57 +0000 (20:29 +0100)]
Fix asdcplib git revision.
Carl Hetherington [Tue, 3 Dec 2019 16:20:41 +0000 (17:20 +0100)]
-cth -> -carl.
Carl Hetherington [Tue, 3 Dec 2019 15:53:14 +0000 (16:53 +0100)]
Use new, improved asdcplib.
Carl Hetherington [Tue, 3 Dec 2019 11:07:33 +0000 (12:07 +0100)]
Update for openjpeg git repo tidying.
Carl Hetherington [Sun, 1 Dec 2019 22:13:25 +0000 (23:13 +0100)]
Check that KDM validity periods are safely within the validity periods
of the signing certificate chain.
This does cause problems when you try to create a KDM for a certificate
you just made (due to the fact that certificates always have a start-valid
time of "now") but hopefully this can be fixed up in another commit.