PerceptionVideoFrameAllocator 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用 IPerceptionFrameProvider 使用的必要屬性,初始化新的 PerceptionVideoFrameAllocator,以建立透過 PerceptionFrameProviderManagerService::P ublishFrameForProvider 發佈的 PerceptionFrames。
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,描述如何在圖元中處理透明度。
- 屬性