atributo MF_MT_FRAME_SIZE

Ancho y alto de un fotograma de vídeo, en píxeles.

Tipo de datos

UINT64

Observaciones

Los 32 bits superiores contienen el ancho y los 32 bits inferiores contienen el alto.

Para establecer este atributo, use la función MFSetAttributeSize . Para obtener este atributo, use la función MFGetAttributeSize .

La constante GUID de este atributo se exporta desde mfuuid.lib.

Ejemplos

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

Requisitos

Requisito Value
Cliente mínimo compatible
Windows Vista [| de aplicaciones de escritorio Aplicaciones para UWP]
Servidor mínimo compatible
Windows Server 2008 [| de aplicaciones de escritorio Aplicaciones para UWP]
Encabezado
Mfapi.h

Consulte también

Lista alfabética de atributos de Media Foundation

IMFMediaType

Atributos de tipo multimedia