Freigeben über


PerceptionVideoFrameAllocator Konstruktor

Definition

Initialisiert einen neuen PerceptionVideoFrameAllocator mit den erforderlichen Eigenschaften für die Verwendung durch IPerceptionFrameProvider zum Erstellen von PerceptionFrames, die über PerceptionFrameProviderManagerService::P ublishFrameForProvider veröffentlicht wurden.

public:
 PerceptionVideoFrameAllocator(unsigned int maxOutstandingFrameCountForWrite, BitmapPixelFormat format, Size resolution, BitmapAlphaMode alpha);
 PerceptionVideoFrameAllocator(uint32_t const& maxOutstandingFrameCountForWrite, BitmapPixelFormat const& format, Size const& resolution, BitmapAlphaMode const& alpha);
/// [Windows.Foundation.Metadata.Deprecated("PerceptionVideoFrameAllocator may be unavailable after Windows Creator Update. Please refer to AVStream on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
 PerceptionVideoFrameAllocator(uint32_t const& maxOutstandingFrameCountForWrite, BitmapPixelFormat const& format, Size const& resolution, BitmapAlphaMode const& alpha);
public PerceptionVideoFrameAllocator(uint maxOutstandingFrameCountForWrite, BitmapPixelFormat format, Size resolution, BitmapAlphaMode alpha);
[Windows.Foundation.Metadata.Deprecated("PerceptionVideoFrameAllocator may be unavailable after Windows Creator Update. Please refer to AVStream on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public PerceptionVideoFrameAllocator(uint maxOutstandingFrameCountForWrite, BitmapPixelFormat format, Size resolution, BitmapAlphaMode alpha);
function PerceptionVideoFrameAllocator(maxOutstandingFrameCountForWrite, format, resolution, alpha)
Public Sub New (maxOutstandingFrameCountForWrite As UInteger, format As BitmapPixelFormat, resolution As Size, alpha As BitmapAlphaMode)

Parameter

maxOutstandingFrameCountForWrite
UInt32

unsigned int

uint32_t

Dies ist die Anzahl von Puffern im Flight, die vom FrameProvider benötigt werden, um seine * Frames mit Framerate zu erzeugen. Der Vorschlag ist mindestens 2.

format
BitmapPixelFormat

Windows::Graphics::Imaging::BitmapPixelFormat beschreibt das Format der Bytes des Frames.

resolution
Size

Die Auflösung in Pixel des Frames.

alpha
BitmapAlphaMode

Windows::Graphics::Imaging::BitmapAlphaMode beschreibt, wie Transparenz in den Pixeln behandelt wird.

Attribute

Gilt für: