May 08, 2014 · This article said "Create an empty media sample by calling the MFCreateVideoSampleFromSurface function". But MFCreateVideoSampleFromSurface is only defined in WINAPI_PARTITION_DESKTOP. I can't use this API in my app. If I replace this by MFCreateSample API, does this mean I can't query the IMFTrackedSample interface form this media sample?
Jul 13, 2021 · MFCreateVideoSampleFromSurface C6387 Warning. The annotation of the first parameter of MFCreateVideoSampleFromSurface is _In_ rather than _In_opt_ and is causing a warning. The docs say it can be NULL, can this be fixed?
15.04.2017 · I tried to pass IMFSample instances created with MFCreateVideoSampleFromSurface or MFCreateDXGISurfaceBuffer to IMFTransform::ProcessInput and made multiple experiments (trying different texture creation flags), but the best result was that all input samples were accepted, but no output samples produced.
11.12.2014 · I get an EntryPointNotFoundException when I call SharpDX.MediaFoundation.MediaFactory.CreateVideoSampleFromSurface(surfaceRef, out sample); {"Unable to find an entry point named 'MFCreateVideoSampleFromSurface' in DLL 'Mfplat.dll'.":""} ...
13.10.2021 · MFCreateVideoSampleFromSurface Mfcreatevideosamplefromsurface; EVRPUBLIC Mfcreatevideosamplefromsurface( [in] IUnknown *pUnkSurface, [out] IMFSample **ppSample ) {...} Parameters [in] pUnkSurface. A pointer to the IUnknown interface of the Direct3D surface. This parameter can be NULL. [out] ppSample
The c++ (cpp) mfcreatevideosamplefromsurface example is extracted from the most popular open source projects, you can refer to the following example for ...
I called MFCreateVideoSampleFromSurface(texture, &pSample) where texture is the ID3D11Texture2D, filled in the SampleTime and SampleDuration and then passed the created sample to the SinkWriter. SinkWriter returned E_INVALIDARG.
I tried to pass IMFSample instances created with MFCreateVideoSampleFromSurface or MFCreateDXGISurfaceBuffer to IMFTransform::ProcessInput and made multiple ...
Jul 22, 2021 · Tracks the reference counts on a video media sample. Video samples created by the MFCreateVideoSampleFromSurface function expose this interface. Inheritance. The IMFTrackedSample interface inherits from the IUnknown interface. IMFTrackedSample also has these types of members: Methods. The IMFTrackedSample interface has these methods.
Oct 13, 2021 · MFCreateVideoSampleFromSurface Mfcreatevideosamplefromsurface; EVRPUBLIC Mfcreatevideosamplefromsurface( [in] IUnknown *pUnkSurface, [out] IMFSample **ppSample ) {...} Parameters [in] pUnkSurface. A pointer to the IUnknown interface of the Direct3D surface. This parameter can be NULL. [out] ppSample
13.07.2021 · MFCreateVideoSampleFromSurface C6387 Warning. The annotation of the first parameter of MFCreateVideoSampleFromSurface is _In_ rather than _In_opt_ and is causing a warning. The docs say it can be NULL, can this be fixed?