attribut MF_MT_FRAME_SIZE
Largeur et hauteur d’une image vidéo, en pixels.
UINT64
Les 32 bits supérieurs contiennent la largeur et les 32 bits inférieurs contiennent la hauteur.
Pour définir cet attribut, utilisez la fonction MFSetAttributeSize . Pour obtenir cet attribut, utilisez la fonction MFGetAttributeSize .
La constante GUID de cet attribut est exportée à partir de mfuuid.lib.
// Helper function to set the frame size on a video media type.
inline HRESULT SetFrameSize(IMFMediaType *pType, UINT32 width, UINT32 height)
{
return MFSetAttributeSize(pType, MF_MT_FRAME_SIZE, width, height);
}
// Helper function to get the frame size from a video media type.
inline HRESULT GetFrameSize(IMFMediaType *pType, UINT32 *pWidth, UINT32 *pHeight)
{
return MFGetAttributeSize(pType, MF_MT_FRAME_SIZE, pWidth, pHeight);
}
Condition requise | Valeur |
---|---|
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] |
En-tête |
|