/// <summary> /// <p> Gets the capabilities of a specified video processor device. </p> /// </summary> /// <param name="videoProcDeviceGuid"><dd> <p> A <see cref="System.Guid"/> that identifies the video processor device. To get the list of video processor GUIDs, call <strong><see cref="SharpDX.MediaFoundation.DirectX.VideoProcessorService.GetVideoProcessorDeviceGuids"/></strong>.</p> </dd></param> /// <param name="videoDescRef"><dd> <p> A reference to a <strong><see cref="SharpDX.MediaFoundation.DirectX.VideoDesc"/></strong> structure that describes the video content. </p> </dd></param> /// <param name="renderTargetFormat"><dd> <p> The format of the render target surface, specified as a <strong><see cref="SharpDX.Direct3D9.Format"/></strong> value. For more information, see the Direct3D documentation. You can also use a FOURCC code to specify a format that is not defined in the <strong><see cref="SharpDX.Direct3D9.Format"/></strong> enumeration. See Video FOURCCs. </p> </dd></param> /// <param name="capsRef"><dd> <p> A reference to a <strong><see cref="SharpDX.MediaFoundation.DirectX.VideoProcessorCaps"/></strong> structure that receives the video processor capabilities. </p> </dd></param> /// <returns><p>The method returns an <strong><see cref="SharpDX.Result"/></strong>. Possible values include, but are not limited to, those in the following table.</p><table> <tr><th>Return code</th><th>Description</th></tr> <tr><td> <dl> <dt><strong><see cref="SharpDX.Result.Ok"/></strong></dt> </dl> </td><td> <p>The method succeeded.</p> </td></tr> </table><p>?</p></returns> /// <include file='..\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirectXVideoProcessorService::GetVideoProcessorCaps']/*"/> /// <msdn-id>ms702988</msdn-id> /// <unmanaged>HRESULT IDirectXVideoProcessorService::GetVideoProcessorCaps([In] const GUID& VideoProcDeviceGuid,[In] const DXVA2_VideoDesc* pVideoDesc,[In] D3DFORMAT RenderTargetFormat,[Out] DXVA2_VideoProcessorCaps* pCaps)</unmanaged> /// <unmanaged-short>IDirectXVideoProcessorService::GetVideoProcessorCaps</unmanaged-short> public void GetVideoProcessorCaps(System.Guid videoProcDeviceGuid, ref SharpDX.MediaFoundation.DirectX.VideoDesc videoDescRef, SharpDX.Direct3D9.Format renderTargetFormat, out SharpDX.MediaFoundation.DirectX.VideoProcessorCaps capsRef) { unsafe { capsRef = new SharpDX.MediaFoundation.DirectX.VideoProcessorCaps(); SharpDX.Result __result__; fixed (void* videoDescRef_ = &videoDescRef) fixed (void* capsRef_ = &capsRef) __result__= SharpDX.MediaFoundation.LocalInterop.Calliint(_nativePointer, &videoProcDeviceGuid, videoDescRef_, unchecked((int)renderTargetFormat), capsRef_,((void**)(*(void**)_nativePointer))[8]); __result__.CheckError(); } }
/// <summary> /// <p> </p><p>Retrieves the capabilities of the video processor device.</p> /// </summary> /// <param name="capsRef"><dd> <p>Pointer to a <strong><see cref="SharpDX.MediaFoundation.DirectX.VideoProcessorCaps"/></strong> structure that receives the video processor capabilities.</p> </dd></param> /// <returns><p>The method returns an <strong><see cref="SharpDX.Result"/></strong>. Possible values include, but are not limited to, those in the following table.</p><table> <tr><th>Return code</th><th>Description</th></tr> <tr><td> <dl> <dt><strong><see cref="SharpDX.Result.Ok"/></strong></dt> </dl> </td><td> <p>The method succeeded.</p> </td></tr> </table><p>?</p></returns> /// <include file='..\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirectXVideoProcessor::GetVideoProcessorCaps']/*"/> /// <msdn-id>ms704831</msdn-id> /// <unmanaged>HRESULT IDirectXVideoProcessor::GetVideoProcessorCaps([Out] DXVA2_VideoProcessorCaps* pCaps)</unmanaged> /// <unmanaged-short>IDirectXVideoProcessor::GetVideoProcessorCaps</unmanaged-short> internal void GetVideoProcessorCaps(out SharpDX.MediaFoundation.DirectX.VideoProcessorCaps capsRef) { unsafe { capsRef = new SharpDX.MediaFoundation.DirectX.VideoProcessorCaps(); SharpDX.Result __result__; fixed (void* capsRef_ = &capsRef) __result__= SharpDX.MediaFoundation.LocalInterop.Calliint(_nativePointer, capsRef_,((void**)(*(void**)_nativePointer))[5]); __result__.CheckError(); } }