/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Holds a single shared AVHWDeviceContext (VkDevice) for all Vulkan video // decoders in the RDD process. Mirrors VADisplayHolder for VA-API. // // The first decoder to call GetOrCreate() pays vkCreateDevice; subsequent // decoders receive av_buffer_ref() on the same context. The device is // destroyed (vkDestroyDevice) when the last decoder drops its reference. class VulkanDeviceHolder final
: public SupportsThreadSafeWeakPtr<VulkanDeviceHolder> {
public:
MOZ_DECLARE_REFCOUNTED_TYPENAME(VulkanDeviceHolder)
const FFmpegLibWrapper* mLib;
AVBufferRef* mDeviceContext; // VK_MAX_PHYSICAL_DEVICE_NAME_SIZE is defined as 256 in the Vulkan spec. char mDeviceName[256] = {'\0'};
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.