attribut MF_MT_FRAME_SIZE
Largeur et hauteur d’une image vidéo, en pixels.
Type de données
UINT64
Notes
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.
Exemples
// 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);
}
Spécifications
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 |
|
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour