[FFmpeg-devel] [PATCH 1/2] imgutils: expose av_image_copy_plane_uc_from()

Lynne dev at lynne.ee
Tue Aug 10 13:49:15 EEST 2021


The reason why the generic av_image_copy_uc_from() doesn't really 
fit in the case for Vulkan is because some planes may be copied via
other methods (such as mapping GPU memory), and if they don't satisfy
the strict alignment requirements, a gpu image->gpu buffer->cpu ram
copy is performed.

We need this for hwcontext_vulkan, and I think this will also be
useful to API users like libplacebo who would rather not write
a custom SIMD memcpy.

Patch attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-imgutils-expose-av_image_copy_plane_uc_from.patch
Type: text/x-patch
Size: 4232 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210810/c7c450bf/attachment.bin>


More information about the ffmpeg-devel mailing list