summaryrefslogtreecommitdiff
path: root/src/lib/j2k_image_proxy.cc
AgeCommit message (Collapse)Author
2020-07-24WIPsigned-unsignedCarl Hetherington
2020-04-17Rename send_binary -> write_to_socket.Carl Hetherington
2020-04-14Ignore and report failures to decode frames during playback (#1593).Carl Hetherington
2020-04-14Use a struct rather than a std::pair as the return type from ImageProxy::image.Carl Hetherington
2019-11-04Fix 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.
2019-11-04Fix out-of-bounds read when cropping JPEG2000 images (#1654).Carl Hetherington
2018-11-06Remove some unused parameters.Carl Hetherington
2018-11-06Locking tweak.Carl Hetherington
2018-11-06Move deinterleave of OpenJPEGImage to Image into the prepare(), meaningCarl Hetherington
that it can be multi-threaded. This allows the bit shift for non-12bpp JPEG2000 sources to be done at the same time as the deinterleave. Should speed up DCP playback in some cases.
2018-11-06Unwrap loop and remove lots of calls to OpenJPEGImage::data.Carl Hetherington
2018-10-12Change MagickImageProxy to FFmpegImageProxy and make it use FFmpegCarl Hetherington
to decode images. Hence remove {Image,Graphics}Magick.
2018-07-18Add some asserts.Carl Hetherington
2018-04-13Account for J2K decoding at lower-than-maximum resolution when croppingv2.13.14Carl Hetherington
the resulting images; fixes #1274.
2017-12-29Add basic memory-used stuff for butler and reduce minimum audioCarl Hetherington
readahead quite a bit. This in turn reduces the maximum butler memory usage as it will keep getting audio (and hence video) until the minimum audio readahead is hit.
2017-08-14Basics of forced reduction of JPEG2000 decode resolution.Carl Hetherington
2017-07-26Multi-threaded decode of DCP when previewing.Carl Hetherington
2017-07-26Rename some variables.Carl Hetherington
2016-12-14Fix crash on previewing JPEG2000.Carl Hetherington
I remember adding this line to fix a completely screwed up display, but on testing again it seems to be wrong; it results in wildly out-of-range memory access. Not sure what's going on.
2016-11-26Reduce during J2K decode where possible for playback (#986).Carl Hetherington
2016-08-12Move locale_convert into libdcp.Carl Hetherington
2016-08-12Move raw_convert into libdcp.Carl Hetherington
2016-06-29Fix handling of incorrectly-recognised JPEG2000 files.Carl Hetherington
Previously we asked libdcp whether an imported J2K file was RGB or XYZ. The answer it gives is sometimes wrong, for reasons that are not clear (either the files are not marked correctly, or openjpeg is not parsing whatever metadata correctly). However it seems that, in general, we use the user's specified colour conversion to decide what to do with an image, rather than asking the image what should be done to it. Hence it makes more sense to assume that if a user specifies no colour conversion for a J2K file then the file is XYZ. With preview, the colour conversion from XYZ back to RGB is done by FFmpeg, so we have to set the pixel format correctly on the Image that comes back from J2KImageProxy. Now we get that pixel format from the configured colourspace conversion rather than from openjpeg's guess as to the file's colourspace. It's a bit ugly that the only thing we ask the file about is whether or not it is in YUV (which governs whether or not FFmpeg applies the user's configured YUV-to-RGB conversion). Everything else is decided by the configured conversion. I think there's still some uglyness in here that I can't put my finger on.
2016-06-21Revert "Use make_shared<>."Carl Hetherington
Support for this seems to vary wildly across DoM's build targets. Stuff that builds on 16.04 won't build on 14.04, for example. Seems to not be worth the hassle now. This reverts commit 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f.
2016-06-21Use make_shared<>.Carl Hetherington
2016-05-25No-op; fix GPL address and use the explicit-program-name version.Carl Hetherington
2015-12-04Build fixes.Carl Hetherington
2015-12-04Use libdcp's compress_j2k; move Data into libdcp.Carl Hetherington
2015-11-06Fix warning.Carl Hetherington
2015-11-03Another missing include.Carl Hetherington
2015-10-29Fix incorrect colourspace conversion of XYZ contentCarl Hetherington
when it is not being passed through as untouched JPEG2000 (#730).
2015-10-15Use AV_ prefixes on some FFmpeg bits.Carl Hetherington
2015-09-14Lots of #include <iostream>s for Arch.Carl Hetherington
2015-09-01Add basic test for client/server with a J2K image.Carl Hetherington
2015-08-26Include tidying src/lib/a-j*.hCarl Hetherington
2015-06-21No-op: remove all trailing whitespace.Carl Hetherington
2015-06-11Use better J2KImageProxy::same() method.Carl Hetherington
2015-06-10Take a JPEG2000 header marked as SRGB to mean that no XYZ -> RGB conversion ↵Carl Hetherington
should happen.
2015-06-10Shift 8-bit XYZ images up so that they are at least visible (part of #497).Carl Hetherington
2015-06-10Tidy up J2KImageProxy a bit.Carl Hetherington
2015-06-10Rename EncodedData -> Data and trim it a bit.Carl Hetherington
2015-04-22Various changes to colour conversion specification to use chromaticities.Carl Hetherington
2015-04-16Add our own raw_convert that uses SafeStringStream.Carl Hetherington
2015-02-08Actually fix previous.Carl Hetherington
2015-02-08Fix typo in previous.Carl Hetherington
2015-02-08Fix uninitialised variable.Carl Hetherington
2015-02-02Changes to libdcp API.Carl Hetherington
2015-02-02Improve efficiency of DCP -> image decoding.Carl Hetherington
2015-01-29Move Socket to dcpomatic_socket.{cc,h}.Carl Hetherington
2015-01-07Make a note in the log when XYZ values are clamped by libdcp on XYZ -> RGB ↵Carl Hetherington
conversion.
2015-01-03Various libdcp API changes.Carl Hetherington