MediaStreamSample.CreateFromDirect3D11Surface Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a MediaStreamSample from an IDirect3DSurface.
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.
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.