Share via


PerceptionVideoFrameAllocator.CopyFromVideoFrame(VideoFrame) Method

Definition

Creates a deep copy of the video FrameProvider with the bytes already filled in with the resulting PerceptionFrame.

public:
 virtual PerceptionFrame ^ CopyFromVideoFrame(VideoFrame ^ frame) = CopyFromVideoFrame;
PerceptionFrame CopyFromVideoFrame(VideoFrame const& frame);
/// [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")]
PerceptionFrame CopyFromVideoFrame(VideoFrame const& frame);
public PerceptionFrame CopyFromVideoFrame(VideoFrame frame);
[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 PerceptionFrame CopyFromVideoFrame(VideoFrame frame);
function copyFromVideoFrame(frame)
Public Function CopyFromVideoFrame (frame As VideoFrame) As PerceptionFrame

Parameters

frame
VideoFrame

The input frame from which to copy the pixel data.

Returns

The resulting filled PerceptionFrame.

Attributes

Applies to