[FFmpeg-devel] [PATCH] hwcontext_vulkan: fix exporting multi-plane DRM modifiers
Lynne
dev at lynne.ee
Sat May 3 10:24:05 EEST 2025
On 03/05/2025 04:39, Russell Greene wrote:
> Is this documented anywhere? Should I maybe have a fixed sized stack
> buffer and fallback to an allocation if it's just a rule of thumb that
> it'll be less than some known small number. I just somehow doubt this
> is in the vulkan spec or any sort of guaranteed....
vkGetPhysicalDeviceToolPropertiesEXT(dev, nb, array)
If pToolProperties is NULL, then the number of tools currently active on
physicalDevice is returned in pToolCount. Otherwise, pToolCount must
point to a variable set by the application to the number of elements in
the pToolProperties array, and on return the variable is overwritten
with the number of structures actually written to pToolProperties. If
pToolCount is less than the number of currently active tools, at most
pToolCount structures will be written.
It's in the spec. Different function, but all functions which write to
an array follow the same signature.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA2FEA5F03F034464.asc
Type: application/pgp-keys
Size: 624 bytes
Desc: OpenPGP public key
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250503/5770a117/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250503/5770a117/attachment.sig>
More information about the ffmpeg-devel
mailing list