共用方式為


eAVEncVideoColorTransferFunction 列舉 (codecapi.h)

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

指定從 R'G'B' 轉換為 RGB 的轉換函式。 此列舉會與 AVEncVideoInputColorTransferFunctionAVEncVideoOutputColorTransferFunction 屬性搭配使用。

Syntax

typedef enum eAVEncVideoColorTransferFunction {
  eAVEncVideoColorTransferFunction_SameAsSource = 0,
  eAVEncVideoColorTransferFunction_10 = 1,
  eAVEncVideoColorTransferFunction_18 = 2,
  eAVEncVideoColorTransferFunction_20 = 3,
  eAVEncVideoColorTransferFunction_22 = 4,
  eAVEncVideoColorTransferFunction_22_709 = 5,
  eAVEncVideoColorTransferFunction_22_240M = 6,
  eAVEncVideoColorTransferFunction_22_8bit_sRGB = 7,
  eAVEncVideoColorTransferFunction_28 = 8
} ;

常數

 
eAVEncVideoColorTransferFunction_SameAsSource
值: 0
使用與輸入視訊相同的函式。 此旗標僅適用於 AVEncVideoOutputColorTransferFunction 屬性。
eAVEncVideoColorTransferFunction_10
值: 1
線性 RGB (gamma = 1.0) 。
eAVEncVideoColorTransferFunction_18
值: 2
True 1.8 gamma。 L' = L^1/1.8。
eAVEncVideoColorTransferFunction_20
值: 3
True 2.0 gamma。 L' = L^1/2.0.。
eAVEncVideoColorTransferFunction_22
值: 4
True 2.2 gamma。 L' = L^1/2.2..
eAVEncVideoColorTransferFunction_22_709
值: 5
在較低範圍內具有線性線段的 Gamma 2.2 曲線。 L' = 4.5L,適用於 L < 0.018;L' = 1.099L^0.45.- 0.099,L >= 0.018。 此傳輸函式用於 BT-709、SMPTE 296M、SMPTE 170M、BT-470 和 SPMTE 274M。
eAVEncVideoColorTransferFunction_22_240M
值: 6
在較低範圍內具有線性線段的 Gamma 2.2 曲線。 L' = 4.0L,適用於 L < 0.0228;L' = 1.1115^L0.45.- 0.01115,若為 L >= 0.0228。 此傳輸函式用於 SPMTE 240M。
eAVEncVideoColorTransferFunction_22_8bit_sRGB
值: 7
在較低範圍內具有線性線段的 Gamma 2.4 曲線。 L' = L/12.92,適用於 L < 0.03928;L' = ( (L + 0.055) / 1.055) ^2.4.,適用於 L >= 0.03928。
eAVEncVideoColorTransferFunction_28
值: 8
True 2.8 gamma。 L' = L^1/2.8..

規格需求

需求
最低支援的用戶端 Windows 2000 專業版 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows 2000 Server [傳統型應用程式 |UWP 應用程式]
標頭 codecapi.h

另請參閱

編解碼器 API 列舉

ICodecAPI 介面