H264ProfileIds 類別

定義

提供取得 H.264 設定檔識別碼的屬性。

public ref class H264ProfileIds abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class H264ProfileIds final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class H264ProfileIds
Public Class H264ProfileIds
繼承
Object Platform::Object IInspectable H264ProfileIds
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

範例

以下是使用CreateH264建立VideoEncodingProperties類別實例,並將ProfileId設定為 H.264 高設定檔的程式碼。

VideoEncodingProperties videoProps = 
    Windows.Media.MediaProperties.VideoEncodingProperties.CreateH264();

videoProps.ProfileId = H264ProfileIds.High;

備註

您可以將 VideoEncodingProperties.ProfileId 的值設定為此類別提供的其中一個設定檔識別碼。

屬性

Baseline

取得 H.264 基準設定檔。

ConstrainedBaseline

取得 H.264 限制基準設定檔。

Extended

取得 H.264 擴充設定檔。

High

取得 H.264 高設定檔。

High10

取得 H.264 高 10 設定檔。

High422

取得 H.264 高 4:2:2 設定檔。

High444

取得 H.264 高 4:4:4 設定檔。

Main

取得 H.264 主要設定檔。

MultiviewHigh

取得 H.264 多重檢視設定檔。

StereoHigh

取得 H.264 立體高設定檔。

適用於