attributo MF_MT_FRAME_SIZE

Larghezza e altezza di un fotogramma video, in pixel.

Tipo di dati

UINT64

Commenti

I 32 bit superiori contengono la larghezza e i 32 bit inferiori contengono l'altezza.

Per impostare questo attributo, usare la funzione MFSetAttributeSize . Per ottenere questo attributo, usare la funzione MFGetAttributeSize .

La costante GUID per questo attributo viene esportata da mfuuid.lib.

Esempio

// 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);
}

Requisiti

Requisito Valore
Client minimo supportato
Windows Vista [app desktop | App UWP]
Server minimo supportato
Windows Server 2008 [app desktop | App UWP]
Intestazione
Mfapi.h

Vedi anche

Elenco alfabetico degli attributi di Media Foundation

IMFMediaType

Attributi del tipo di supporto