Partager via


MFCreateVideoSampleAllocatorEx, fonction (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 Meaning
IID_IUnknown
Récupérez un pointeur IUnknown .
IID_IMFVideoSampleAllocator
Récupérer un pointeur IMFVideoSampleAllocator .
IID_IMFVideoSampleAllocatorEx
Récupérer un pointeur IMFVideoSampleAllocatorEx .
IID_IMFVideoSampleAllocatorCallback
Récupérer 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 HRESULT code d’erreur.

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 allocator pour les surfaces vidéo Microsoft Direct3D 9, appelez MFCreateVideoSampleAllocator.

Spécifications

Requirement Valeur
Client minimum requis Windows 8 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2012 [applications de bureau | Applications UWP]
plateforme cible Fenêtres
Header mfapi.h
Library Mfplat.lib
DLL Mfplat.dll

Voir aussi

Fonctions Media Foundation