IVMRAspectRatioControl 介面 (strmif.h)

[與此頁面相關的功能 DirectShow 是舊版功能。 它已被 MediaPlayerIMFMediaEngineMedia Foundation 中的音訊/視訊擷取取代。 這些功能已針對 Windows 10 和 Windows 11 進行優化。 Microsoft 強烈建議新程式代碼盡可能使用 MediaPlayerIMFMediaEngine音訊/視訊擷取 ,而不是 DirectShow。 Microsoft 建議使用舊版 API 的現有程式代碼盡可能重寫為使用新的 API。

介面 IVMRAspectRatioControl 可控制 視訊混合轉譯器篩選 7 (VMR-7) 是否保留來源視訊的外觀比例。 當 VMR-7 在視窗或無視窗模式中運作時,可以使用此介面。 在無視窗模式中, IVMRWindowlessControl 介面會提供相同的功能。

繼承

IVMRAspectRatioControl 介面繼承自 IUnknown 介面。 IVMRAspectRatioControl 也有下列類型的成員:

方法

IVMRAspectRatioControl 介面具有這些方法。

 
IVMRAspectRatioControl::GetAspectRatioMode

GetAspectRatioMode 方法會查詢 VMR 是否會保留來源視訊的外觀比例。 (IVMRAspectRatioControl.GetAspectRatioMode)
IVMRAspectRatioControl::SetAspectRatioMode

SetAspectRatioMode 方法會指定 VMR 是否會保留來源視訊的外觀比例。 (IVMRAspectRatioControl.SetAspectRatioMode)

規格需求

需求
最低支援的用戶端 具有 SP1 的 Windows XP [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限傳統型應用程式]
目標平台 Windows
標頭 strmif.h (包含 Dshow.h)

另請參閱

使用影片混合轉譯器