次の方法で共有


PerceptionVideoFrameAllocator コンストラクター

定義

IPerceptionFrameProvider で使用するために必要なプロパティを使用して新しい PerceptionVideoFrameAllocator を初期化し、PerceptionFrameProviderManagerService::P ublishFrameForProvider を介して発行された PerceptionFrame を作成します。

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)

パラメーター

maxOutstandingFrameCountForWrite
UInt32

unsigned int

uint32_t

これは、フレーム レートでフレームを生成するために FrameProvider が必要とするバッファーの数です。 提案は少なくとも 2 です。

format
BitmapPixelFormat

フレームのバイトの形式を記述する Windows::Graphics::Imaging::BitmapPixelFormat。

resolution
Size

フレームの解像度 (ピクセル単位)。

alpha
BitmapAlphaMode

ピクセルでの透明度の処理方法を説明する Windows::Graphics::Imaging::BitmapAlphaMode。

属性

適用対象