共用方式為


IVMRDeinterlaceControl::GetDeinterlaceMode 方法 (strmif.h)

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

GetDeinterlaceMode 方法會擷取指定視訊數據流的反交錯模式。

語法

HRESULT GetDeinterlaceMode(
  [in]  DWORD  dwStreamID,
  [out] LPGUID lpDeinterlaceMode
);

參數

[in] dwStreamID

要檢查的視訊數據流索引。

[out] lpDeinterlaceMode

接收 GUID 之變數的指標。 GUID 會識別目前使用的反交集模式。 如果未設定任何反交錯模式,則會GUID_NULL值。

傳回值

傳回 HRESULT 值。 可能的值如下:

傳回碼 Description
E_INVALIDARG
無效的數據流編號。
E_POINTER
NULL 指標自變數。
S_FALSE
未設定取消交錯模式。
S_OK
成功。
VFW_E_VMR_NOT_IN_MIXER_MODE
VMR 不在混音器模式中。

備註

VMR 可能無法使用要求的模式,在此情況下,它會回復到另一個 deinterlace 模式,如 IVMRDeinterlaceControl::SetDeinterlacePrefs 方法所指定。

規格需求

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

另請參閱

錯誤和成功碼

IVMRDeinterlaceControl 介面

IVMRDeinterlaceControl::SetDeinterlaceMode

使用影片混合轉譯器