summaryrefslogtreecommitdiff
path: root/test/image_test.cc
AgeCommit message (Collapse)Author
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-20Move make_black_test into image_test.Carl Hetherington
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-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-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-10-13Fix use of DCPOMATIC_TEST_PRIVATE variable to specify whereCarl Hetherington
test private data is.
2020-10-12Remove Image/GraphicsMagick dependency.Carl Hetherington
2020-04-14Use a struct rather than a std::pair as the return type from ImageProxy::image.Carl Hetherington
2020-03-11Move private_data into TestPathsCarl Hetherington
2019-11-05Provide some test references.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
2019-11-04Add a test to expose #1654, on valgrind at least.Carl Hetherington
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-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
2018-10-12Change MagickImageProxy to FFmpegImageProxy and make it use FFmpegCarl Hetherington
to decode images. Hence remove {Image,Graphics}Magick.
2018-04-13Account for J2K decoding at lower-than-maximum resolution when croppingv2.13.14Carl Hetherington
the resulting images; fixes #1274.
2018-02-02A number of unit test fixes.Carl Hetherington
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-02Add convert_pixel_format convenience function.Carl Hetherington
2017-12-30Add new test.Carl Hetherington
2017-05-25More tests; fix blend for YUV420P10LE.Carl Hetherington
2017-05-24Implement alpha_blend for YUV420P and YUV420P10. Improve unit test.Carl Hetherington
2017-04-19Doxygen tweaks.Carl Hetherington
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-10-15Use AV_ prefixes on some FFmpeg bits.Carl Hetherington
2015-09-14More <iostream> includes for Arch.Carl Hetherington
2015-08-25Add video waveform viewer.Carl Hetherington
2015-08-17Remove unused Image::crop.Carl Hetherington
2015-06-21No-op: remove all trailing whitespace.Carl Hetherington
2015-05-10Possibly inaccurate port of master; build system cleanups.Carl Hetherington
2015-04-22Actually use YUV->RGB setting when converting.Carl Hetherington
2015-03-25Remove Scaler config and use SWS_BICUBIC everywhere.Carl Hetherington
2014-10-21Merge master.Carl Hetherington
2014-10-18Fix build on Debian unstable which now has GraphicsMagick rather than ↵Carl Hetherington
ImageMagick.
2014-06-13More tests for Image.Carl Hetherington
2014-04-29Various comment fixes to tests.Carl Hetherington
2014-03-07operator bool on Time is a really bad idea; removed it and fixed lots of bugs.Carl Hetherington
2014-02-12It builds again.Carl Hetherington
2013-12-04Do lots of the player processing with less copying.Carl Hetherington
2013-08-23Tidy up duplicated code.Carl Hetherington
2013-07-18Split test compile up into individual files.Carl Hetherington
2013-07-16GPL boilerplate.Carl Hetherington
2013-07-12Remove unused RGBPlusAlphaImage; merge Image/SimpleImage.Carl Hetherington
2013-07-09Fix cropping of YUV images by amounts that are finer than the U/V resolution ↵Carl Hetherington
(and add a test for that).