Compartir a través de


PerceptionVideoFrameAllocator Constructor

Definición

Inicializa un nuevo PerceptionVideoFrameAllocator con las propiedades necesarias para que las use IPerceptionFrameProvider para crear perceptionFrames publicados a través de PerceptionFrameProviderManagerService::P ublishFrameForProvider.

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)

Parámetros

maxOutstandingFrameCountForWrite
UInt32

unsigned int

uint32_t

Este es el número de búferes en vuelo requeridos por FrameProvider para generar sus * fotogramas en velocidad de fotogramas. La sugerencia es al menos 2.

format
BitmapPixelFormat

Windows::Graphics::Imaging::BitmapPixelFormat que describe el formato de los bytes del marco.

resolution
Size

Resolución en píxeles del marco.

alpha
BitmapAlphaMode

Windows::Graphics::Imaging::BitmapAlphaMode que describe cómo se controla la transparencia en los píxeles.

Atributos

Se aplica a