Share via


Fonction MFCreateVideoSampleAllocatorEx (mfapi.h)

Crée un objet qui alloue des exemples vidéo compatibles avec Microsoft DirectX Graphics Infrastructure (DXGI).

Syntaxe

HRESULT MFCreateVideoSampleAllocatorEx(
  [in]  REFIID riid,
  [out] void   **ppSampleAllocator
);

Paramètres

[in] riid

Identificateur de l’interface à récupérer. Spécifiez l’une des valeurs suivantes.

Valeur Signification
IID_IUnknown
Récupérez un pointeur IUnknown .
IID_IMFVideoSampleAllocator
Récupérez un pointeur IMFVideoSampleAllocator .
IID_IMFVideoSampleAllocatorEx
Récupérez un pointeur IMFVideoSampleAllocatorEx .
IID_IMFVideoSampleAllocatorCallback
Récupérez un pointeur IMFVideoSampleAllocatorCallback .

[out] ppSampleAllocator

Reçoit un pointeur vers l’interface demandée. L’appelant doit libérer l’interface.

Valeur retournée

Si cette fonction réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Remarques

Cette fonction crée un allocateur pour les surfaces vidéo DXGI. Les mémoires tampons créées par cet allocateur exposent l’interface IMFDXGIBuffer . Pour créer un allocateur pour les surfaces vidéo Microsoft Direct3D 9, appelez MFCreateVideoSampleAllocator.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 8 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2012 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête mfapi.h
Bibliothèque Mfplat.lib
DLL Mfplat.dll

Voir aussi

Fonctions Media Foundation