summaryrefslogtreecommitdiff
path: root/src/lib/image.cc
AgeCommit message (Collapse)Author
2021-07-10Use dcp::compose rather than our own.composeCarl Hetherington
2021-05-25Move video level conversion for RGB from FFmpegImageProxy to Image.Carl Hetherington
Since FFmpeg does not do video level conversion for RGB sources when we (sort of) ask it to in Image::crop_scale_window() it seems to make more sense to compensate for that by calling full_to_video_range() in the same place (rather than in FFmpegImageProxy).
2021-05-25Add video_to_full_range implementation for RGB48LE.Carl Hetherington
2021-05-25Clamp results correctly when shifting video levels, and account for that in ↵Carl Hetherington
tests.
2021-05-25const-correctness tweak.Carl Hetherington
2021-05-07Missing #include.Carl Hetherington
2021-05-07Hide some warnings from ffmpeg on Centos 7.Carl Hetherington
2021-05-03Add pixel format 0 (AV_PIX_FMT_YUV420P) to make_part_black().Carl Hetherington
Remainder of fix for #1984.
2021-05-03Add pixel format 66 (AV_PIX_FMT_YUV422P10LE) to make_part_black().Carl Hetherington
Part of fix for #1984.
2021-05-03C++11 tidying.Carl Hetherington
2021-05-01Switch decoding to ffmpeg send/receive API.Carl Hetherington
2021-01-27Use enum class for VideoRange.Carl Hetherington
2021-01-26Small bits of c++11 tidying.Carl Hetherington
2021-01-21Adapt for libdcp use of enum class.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-11-25Fix corrupted image when over-cropping black filler frames.Carl Hetherington
FFmpegDecoder can emit small black frames (128x128 pixels) when it wants to fill in a gap. Image::crop_scale_window would do the wrong thing if we then applied a crop of greater than 128 in either direction; though cropped_size is correctly clamped, the crop value itself was not and is used to calculate the input data pointers. This would result in random frames, usually at the end of DCPs, often made up of blurry colour washes.
2020-11-17Fix cropping of subsampled images.Carl Hetherington
The calculations for how to crop subsampled components of YUV images were wrong, causing strange effects like misregistration of colour components in cropped images. Should fix #1872.
2020-11-17Add some lrintf() calls to be sure.Carl Hetherington
2020-11-17Use 64-byte alignment for aligned image memory.Carl Hetherington
FFmpeg uses this values if AVX512 is available, and with only 32-byte alignment I am seeing strange scaling effects whereby crop_scale_window_test7 gives black bars down the right side of cropped images (when run on an i7 7700).
2020-11-16Make sure we use limited ("video") range data when exporting.Carl Hetherington
Our export formats all currently use limited range but we weren't making sure data fed to the encoders was limited range. Should fix #1832.
2020-11-16Remove pointless comment.Carl Hetherington
2020-11-16Obey requests to change the video range of RGB content.Carl Hetherington
Video that comes in with RGB pixels will not have its video level ranges changed by libswscale (it only does this for YUV and greyscale). Here we add code to do it ourselves for RGB content coming in via image files (e.g. PNG/DPX etc). Part of #1851.
2020-11-02Replace dcp::Data with dcp::ArrayDataCarl 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-05-24Basic ability to set video range (JPEG/MPEG) at least for YUV content. May ↵Carl Hetherington
not work for RGB. See #1509.
2019-05-21Tweak comment.Carl Hetherington
2019-05-03Fix "cannot handle pixel format 26 during make_transparent()" (part of #1545).Carl Hetherington
2019-04-25Fix or remove several broken pixel formats in Image::fade and addCarl Hetherington
unit tests for the remainder. Fixes #1532.
2019-03-12Fix R/B swap with as_png(); support as_png() for any pixel format.v2.13.129Carl Hetherington
2019-03-08Make alpha_blend support RGBA as well as BGRA.Carl Hetherington
2019-01-31Add some comments.Carl Hetherington
2018-12-12Fix bad rendering of AV_PIX_FMT_PAL8 (palette-ised) images (#1426).v2.13.83Carl Hetherington
2018-10-12Restore Image::as_png using libpng.Carl Hetherington
2018-10-12Change MagickImageProxy to FFmpegImageProxy and make it use FFmpegCarl Hetherington
to decode images. Hence remove {Image,Graphics}Magick.
2018-09-06Quell more valgrind warnings.Carl Hetherington
2018-09-02Play PNG subtitles from DCPs; possibly not in the right scale.Carl Hetherington
2018-07-09Try to fix Centos build.Carl Hetherington
2018-07-08Write image subs to DCPs.Carl Hetherington
2018-03-02Fix corruption of subsampled images that are being placed into blackCarl Hetherington
frames at odd offsets, using the same approach that is used when cropping. Should fix #1227.
2018-02-12Add SWS_ACCURATE_RND to sws flags. Without this, conversions to RGB inCarl Hetherington
crop_scale_window_test leave the 6 pixels at the right side of the image uninitialised (sws_scale doesn't fill them in with anything) so you get garbage in the output. SWS_ACCURATE_RND fixes it. There are whisperings that this is slow, so the impact of this patch may need to be measured in some "real" situations.
2018-01-11Harden alpha blend tests and fix alpha_blend again.Carl Hetherington
2018-01-10Fix yet more pixel order confusions.Carl Hetherington
2018-01-10Fix some incorrect alpha blending; may help with #1155.Carl Hetherington
2018-01-03Fix alpha blending with with offset; should help with #1155.Carl Hetherington
2018-01-03Fix incorrect alpha-blend in some cases.Carl Hetherington
2018-01-03Use convert_pixel_format a little.Carl Hetherington
2018-01-02Add convert_pixel_format convenience function.Carl Hetherington
2017-12-30Add missing factor to fix problems when padding in subsampled containers; ↵Carl Hetherington
should fix #1129.
2017-12-30Make horizontal_factor look the same as vertical_factor.Carl Hetherington
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.