diff options
author | Michael <michael64> | 2022-01-25 18:59:50 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-01-25 19:07:11 +0300 |
commit | 2ed73fc97e7f9b0a0c9783933177b4c566acf6a0 (patch) | |
tree | a9317e4e0bb0fc1e3148d8e15e6c02d0b96db72c /intern/cycles/device/denoise.h | |
parent | a18bd403bf3edb495ee0531600bbf3cf23d45e1c (diff) |
Fix T94237: Glitch when copying unaligned ffmpeg buffer
Using a negative linesize to flip an image vertically is supported in
ffmpeg but not for every function.
This method treats frames that need and those that do not need alignment
the same. An RGBA frame buffer with alignment that ffmpeg decides is
optimal for the CPU and build options is allocated by ffmpeg.
The `sws_scale` does the colorspace transformation into this RGBA frame
buffer without flipping. Now the image is upside down and aligned.
The combined unaligning and vertical flipping is then done by
`av_image_copy_to_buffer` which seems to handle negative linesize
correctly.
Reviewed By: ISS
Differential Revision: https://developer.blender.org/D13908
Diffstat (limited to 'intern/cycles/device/denoise.h')
0 files changed, 0 insertions, 0 deletions