[FFmpeg-devel] [V2 08/10] libavutil/hwcontext_vulkan: fix wrong offset of plane

Lynne dev at lynne.ee
Tue Aug 31 14:33:12 EEST 2021


31 Aug 2021, 09:24 by wenbin.chen at intel.com:

> According to spec, if we use VkBindImagePlaneMemoryInfo to bind image
> we mush create image with disjoint flag.
> The offset in subresourcelayout is relative to the base address of
> the plane, but the offset in drm is relative to the drm objectis so
> I think this offset should be 0.
> Also, when I import vaapi frame to vulkan I got broken frame, and
> setting plane_data->offset to 0 makes command works.
>
> Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>
>

I'm not too sure about that. I'll need to test the whole import/export code on AMD first,
and that may take some time.


More information about the ffmpeg-devel mailing list