IDirectXVideoDecoderService::CreateVideoDecoder メソッド (dxva2api.h)

ビデオ デコーダー デバイスを作成します。

構文

HRESULT CreateVideoDecoder(
  [in]  REFGUID                         Guid,
  [in]  const DXVA2_VideoDesc           *pVideoDesc,
  [in]  const DXVA2_ConfigPictureDecode *pConfig,
  [in]  IDirect3DSurface9               **ppDecoderRenderTargets,
  [in]  UINT                            NumRenderTargets,
  [out] IDirectXVideoDecoder            **ppDecode
);

パラメーター

[in] Guid

作成するデコーダー デバイスを指定する GUID。 使用可能なデバイス GUID を取得するには、 IDirectXVideoDecoderService::GetDecoderDeviceGuids を呼び出します。

[in] pVideoDesc

ビデオ コンテンツを記述する DXVA2_VideoDesc 構造体へのポインター。

[in] pConfig

デコーダー構成を指定する DXVA2_ConfigPictureDecode 構造体へのポインター。

[in] ppDecoderRenderTargets

デコーダー レンダー ターゲットへのポインターを含む IDirect3DSurface9 ポインターの配列へのポインター。 これらのサーフェスを作成するには、 IDirectXVideoAccelerationService::CreateSurface を呼び出します。 DxvaType パラメーターのDXVA2_VideoDecoderRenderTargetを指定します。

[in] NumRenderTargets

ppDecoderRenderTargets 配列のサイズ。 この値を 0 にすることはできません。

[out] ppDecode

デコーダーの IDirectXVideoDecoder インターフェイスへのポインターを受け取ります。 呼び出し元はインターフェイスを解放する必要があります。

戻り値

このメソッドは HRESULT を返します。 有効な値を次の表に示しますが、これ以外にもあります。

リターン コード 説明
S_OK
メソッドが成功しました。

要件

   
サポートされている最小のクライアント Windows Vista [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2008 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー dxva2api.h

関連項目

DirectX ビデオ アクセラレータ 2.0

IDirectXVideoDecoderService