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를 반환합니다. 가능한 값에는 다음 표에 있는 값이 포함되지만, 이에 국한되는 것은 아닙니다.

반환 코드 Description
S_OK
메서드가 성공했습니다.

요구 사항

   
지원되는 최소 클라이언트 Windows Vista [데스크톱 앱만 해당]
지원되는 최소 서버 Windows Server 2008 [데스크톱 앱만 해당]
대상 플랫폼 Windows
헤더 dxva2api.h

추가 정보

DirectX 비디오 가속 2.0

IDirectXVideoDecoderService