<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dcpomatic/src/lib/image.cc, branch master</title>
<subtitle>DCP-o-matic DCP tools</subtitle>
<id>https://git.carlh.net/cgit/dcpomatic/atom?h=master</id>
<link rel='self' href='https://git.carlh.net/cgit/dcpomatic/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/'/>
<updated>2021-05-06T19:59:56Z</updated>
<entry>
<title>Add pixel format 0 (AV_PIX_FMT_YUV420P) to make_part_black().</title>
<updated>2021-05-06T19:59:56Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2021-05-02T23:38:11Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=52f6790026040e17237ba8d7865cda3e0e239b62'/>
<id>urn:sha1:52f6790026040e17237ba8d7865cda3e0e239b62</id>
<content type='text'>
Remainder of fix for #1984.

Backported-from-commit: 0aabe4060ea4bad7c7caac633aef0737fccff8c2
Backported-from-branch: 2.15.x
</content>
</entry>
<entry>
<title>Add pixel format 66 (AV_PIX_FMT_YUV422P10LE) to make_part_black().</title>
<updated>2021-05-06T19:49:41Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2021-05-02T09:30:16Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=29ad9ebaba113f0300b0c94fd1fa29f67e9f24a6'/>
<id>urn:sha1:29ad9ebaba113f0300b0c94fd1fa29f67e9f24a6</id>
<content type='text'>
Part of fix for #1984.

Backported-from-commit: 2aa6fd88e6d334c040d421938e425bd2f89983a7
Backported-from-branch: 2.15.x
</content>
</entry>
<entry>
<title>Fix corrupted image when over-cropping black filler frames.</title>
<updated>2020-11-24T23:11:55Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-11-24T23:11:55Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=accdec63a79b43c6349597b15243dc41e521521d'/>
<id>urn:sha1:accdec63a79b43c6349597b15243dc41e521521d</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Hack to fix image luminance when cropping subsampled images (#1872).</title>
<updated>2020-11-19T21:08:21Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-11-19T21:07:39Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=2456409a8db781d9ef505fc9e5f9290276ce6807'/>
<id>urn:sha1:2456409a8db781d9ef505fc9e5f9290276ce6807</id>
<content type='text'>
Without this the luminance varies slightly as you crop by odd and
even amounts (for YUV420 images).
</content>
</entry>
<entry>
<title>Fix cropping of subsampled images.</title>
<updated>2020-11-17T08:59:30Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-11-16T23:00:50Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=27c0e43d75218b926068fff3d6d1364b476e56ff'/>
<id>urn:sha1:27c0e43d75218b926068fff3d6d1364b476e56ff</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Add some lrintf() calls to be sure.</title>
<updated>2020-11-16T23:18:02Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-11-16T22:58:53Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=451e5465bbd10827dafe76b35704102e589c0980'/>
<id>urn:sha1:451e5465bbd10827dafe76b35704102e589c0980</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use 64-byte alignment for aligned image memory.</title>
<updated>2020-11-16T23:17:52Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-11-16T22:56:11Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=cdf9ebe4a827d8d2d6d89e34bad0c976b04834b7'/>
<id>urn:sha1:cdf9ebe4a827d8d2d6d89e34bad0c976b04834b7</id>
<content type='text'>
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).
</content>
</entry>
<entry>
<title>Fix incorrect images when cropping without stretch.</title>
<updated>2019-11-16T21:46:39Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2019-11-04T15:38:14Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=ed4fc06db6957b2b63b2400a737f47c18a1003be'/>
<id>urn:sha1:ed4fc06db6957b2b63b2400a737f47c18a1003be</id>
<content type='text'>
Always overallocate images so that Image::crop_scale_window is always
safe from over-reading buffers.  Relates to #1654 and probably #1653.

Backported from 7b0372776ac4da6a8e4ff29f41a4f08b9b4de506 in v2.15.x.
</content>
</entry>
<entry>
<title>Fix "cannot handle pixel format 26 during make_transparent()" (part of #1545).</title>
<updated>2019-05-03T14:00:41Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2019-05-03T14:00:19Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=46df210e1c25c3cdae664390efac8e60714ad635'/>
<id>urn:sha1:46df210e1c25c3cdae664390efac8e60714ad635</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix or remove several broken pixel formats in Image::fade and add</title>
<updated>2019-04-25T15:19:25Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2019-04-25T15:19:25Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=11efa93e15b694b8ea6f0a2bc68c87503cc570bb'/>
<id>urn:sha1:11efa93e15b694b8ea6f0a2bc68c87503cc570bb</id>
<content type='text'>
unit tests for the remainder.  Fixes #1532.
</content>
</entry>
</feed>
