compressionCaps 枚举 (strmif.h)

[与此页面关联的功能 DirectShow 是旧版功能。 它已被 MediaPlayerIMFMediaEngineMedia Foundation 中的音频/视频捕获所取代。 这些功能已针对Windows 10和Windows 11进行了优化。 Microsoft 强烈建议新代码尽可能在 Media Foundation 中使用 MediaPlayerIMFMediaEngine音频/视频捕获 ,而不是 DirectShow。 如果可能,Microsoft 建议重写使用旧 API 的现有代码以使用新 API。]

指示视频压缩功能。

语法

typedef enum CompressionCaps {
  CompressionCaps_CanQuality = 0x1,
  CompressionCaps_CanCrunch = 0x2,
  CompressionCaps_CanKeyFrame = 0x4,
  CompressionCaps_CanBFrame = 0x8,
  CompressionCaps_CanWindow = 0x10
} ;

常量

 
CompressionCaps_CanQuality
值: 0x1
视频压缩器支持 IAMVideoCompression::p ut_QualityIAMVideoCompression::get_Quality 方法。
CompressionCaps_CanCrunch
值: 0x2
视频压缩器可将视频压缩为指定的数据速率。 如果压缩器具有此功能,则输出引脚媒体类型将包含 VIDEOINFOHEADER 结构的 dwBitRate 成员中的数据速率。 设置数据速率的唯一方法是设置 dwBitRate
CompressionCaps_CanKeyFrame
值: 0x4
视频压缩器支持 IAMVideoCompression::p ut_KeyFrameRateIAMVideoCompression::get_KeyFrameRate 方法。
CompressionCaps_CanBFrame
值: 0x8
视频压缩器支持 IAMVideoCompression::p ut_PFramesPerKeyFrameIAMVideoCompression::get_PFramesPerKeyFrame 方法。
CompressionCaps_CanWindow
值: 0x10
视频压缩器支持 IAMVideoCompression::p ut_WindowSizeIAMVideoCompression::get_WindowSize 方法。

要求

要求
Header strmif.h (包括 Dshow.h)

另请参阅

DirectShow 枚举类型

IAMVideoCompression 接口