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。

属性

适用于