Jaa


MediaStreamSample.CreateFromDirect3D11Surface Method

Definition

public:
 static MediaStreamSample ^ CreateFromDirect3D11Surface(IDirect3DSurface ^ surface, TimeSpan timestamp);
 static MediaStreamSample CreateFromDirect3D11Surface(IDirect3DSurface const& surface, TimeSpan const& timestamp);
public static MediaStreamSample CreateFromDirect3D11Surface(IDirect3DSurface surface, System.TimeSpan timestamp);
function createFromDirect3D11Surface(surface, timestamp)
Public Shared Function CreateFromDirect3D11Surface (surface As IDirect3DSurface, timestamp As TimeSpan) As MediaStreamSample

Parameters

surface
IDirect3DSurface

The surface that contains the media data used to create the MediaStreamSample.

timestamp
TimeSpan TimeSpan

The presentation time of this sample.

Returns

The sample created from the data in surface.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

For certain formats, the decode time and the presentation time of a MediaStreamSample are different. The decode time can be accessed through the DecodeTimestamp property.

Applies to