// Copyright (c) 2010-2014 SharpDX - SharpDX Team // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. #if DESKTOP_APP namespace SharpDX.MediaFoundation.DirectX { /// ///

Applies to: desktop apps only

Enables two threads to share the same Direct3D 9 device, and provides access to the DirectX Video Acceleration (DXVA) features of the device.

///
/// ///

This interface is exposed by the Direct3D Device Manager. To create the Direct3D device manager, call .

To get this interface from the Enhanced Video Renderer (EVR), call . The service is . For the DirectShow EVR filter, call GetService on the filter's pins.

The Direct3D Device Manager supports Direct3D 9 devices only. It does not support DXGI devices.

///
/// /// ms704727 /// IDirect3DDeviceManager9 /// IDirect3DDeviceManager9 public partial class Direct3DDeviceManager { private readonly int token; /// ///

Applies to: desktop apps only

Creates an instance of the Direct3D Device Manager.

///
///

If this function succeeds, it returns . Otherwise, it returns an error code.

/// /// bb970490 /// HRESULT DXVA2CreateDirect3DDeviceManager9([Out] unsigned int* pResetToken,[Out, Fast] IDirect3DDeviceManager9** ppDeviceManager) /// DXVA2CreateDirect3DDeviceManager9 public Direct3DDeviceManager() { DXVAFactory.CreateDirect3DDeviceManager9(out token, this); } /// /// A token that identifies this instance of the Direct3D device manager. Use this token when calling . /// public int CreationToken { get { return token; } } } } #endif