summaryrefslogtreecommitdiff
path: root/src/lib/j2k_image_proxy.cc
AgeCommit message (Collapse)Author
2024-08-02WIP: hacks.shared-ptrCarl Hetherington
2024-04-21Rename classes to follow preparatory renames in libdcp.Carl Hetherington
2024-03-20Remove all use of add_child() from xmlpp.Carl Hetherington
2022-04-22Use libdcp's warnings.hCarl Hetherington
2022-04-03C++11 and whitespace cleanups.Carl Hetherington
2021-09-27Replace aligned bool with enum Alignment.Carl Hetherington
2021-09-27Various alignment adjustments.Carl Hetherington
2021-09-27When the player is used in OpenGL mode, pass unscaled XYZ data through to ↵Carl Hetherington
the shader and do colourspace conversion there.
2021-05-01C++11 tidying.Carl Hetherington
2021-02-07More libdcp include fixes.Carl Hetherington
2021-01-21Adapt for libdcp use of enum class.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-11-14Fix uninitialised variable (affecting tests only).Carl Hetherington
2020-11-02Pass around JPEG2000 data as a shared_ptr and hence avoid a copyCarl Hetherington
of 4MB of data for every JPEG2000 frame we decode.
2020-07-26Ignore libxml++ warnings in a nicer way.Carl 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