Méthode IMFVideoSampleAllocator::InitializeSampleAllocator (mfidl.h)

Spécifie le nombre d’exemples à allouer et le type de média pour les exemples.

Syntaxe

HRESULT InitializeSampleAllocator(
  [in] DWORD        cRequestedFrames,
  [in] IMFMediaType *pMediaType
);

Paramètres

[in] cRequestedFrames

Nombre d’exemples à allouer.

[in] pMediaType

Pointeur vers l’interface IMFMediaType d’un type de média qui décrit le format vidéo.

Valeur retournée

Cette méthode retourne un code HRESULT. Les valeurs possibles sont notamment celles figurant dans le tableau suivant.

Code de retour Description
S_OK
S_OK
MF_E_INVALIDMEDIATYPE
Type de média non valide.

Configuration requise

   
Client minimal pris en charge Windows Vista [applications de bureau | applications UWP]
Serveur minimal pris en charge Windows Server 2008 [applications de bureau | applications UWP]
Plateforme cible Windows
En-tête mfidl.h
Bibliothèque Mfuuid.lib

Voir aussi

IMFVideoSampleAllocator