mirror of https://github.com/emgucv/emgucv.git
Browse Source
Better comments.
Better comments.
git-svn-id: https://emgucv.svn.sourceforge.net/svnroot/emgucv/trunk@1456 d7f09016-e345-0410-b530-edf29a71df78UWP10

1 changed files with 87 additions and 40 deletions
@ -1,52 +1,99 @@ |
|||
//----------------------------------------------------------------------------
|
|||
// Copyright (C) 2004-2011 by EMGU. All rights reserved.
|
|||
//----------------------------------------------------------------------------
|
|||
// Copyright (C) 2004-2011 by EMGU. All rights reserved.
|
|||
//----------------------------------------------------------------------------
|
|||
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
using System.Runtime.InteropServices; |
|||
using Emgu.Util; |
|||
|
|||
namespace Emgu.CV.GPU |
|||
{ |
|||
/// <summary>
|
|||
/// Gives information about what GPU archs this OpenCV GPU module was compiled for
|
|||
/// </summary>
|
|||
public static class TargetArchs |
|||
{ |
|||
#region PInvoke
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsBuildWith")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool BuildWith(GpuDeviceInfo.GpuFeature featureSet); |
|||
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHas")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool Has(int major, int minor); |
|||
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasPtx")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
using System.Runtime.InteropServices; |
|||
using Emgu.Util; |
|||
|
|||
namespace Emgu.CV.GPU |
|||
{ |
|||
/// <summary>
|
|||
/// Gives information about what GPU archs this OpenCV GPU module was compiled for
|
|||
/// </summary>
|
|||
public static class TargetArchs |
|||
{ |
|||
#region PInvoke
|
|||
/// <summary>
|
|||
/// Check if the GPU module is build with the specific feature set.
|
|||
/// </summary>
|
|||
/// <param name="featureSet">The feature set to be checked.</param>
|
|||
/// <returns>True if the GPU module is build with the specific feature set.</returns>
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsBuildWith")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool BuildWith(GpuDeviceInfo.GpuFeature featureSet); |
|||
|
|||
/// <summary>
|
|||
/// Check if the GPU module is targeted for the specific device version
|
|||
/// </summary>
|
|||
/// <param name="major">The major version</param>
|
|||
/// <param name="minor">The minor version</param>
|
|||
/// <returns>True if the GPU module is targeted for the specific device version.</returns>
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHas")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool Has(int major, int minor); |
|||
|
|||
/// <summary>
|
|||
/// Check if the GPU module is targeted for the specific PTX version
|
|||
/// </summary>
|
|||
/// <param name="major">The major version</param>
|
|||
/// <param name="minor">The minor version</param>
|
|||
/// <returns>True if the GPU module is targeted for the specific PTX version.</returns>
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasPtx")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool HasPtx(int major, int minor); |
|||
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasBin")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
/// <summary>
|
|||
/// Check if the GPU module is targeted for the specific BIN version
|
|||
/// </summary>
|
|||
/// <param name="major">The major version</param>
|
|||
/// <param name="minor">The minor version</param>
|
|||
/// <returns>True if the GPU module is targeted for the specific BIN version.</returns>
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasBin")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool HasBin(int major, int minor); |
|||
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasEqualOrLessPtx")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
/// <summary>
|
|||
/// Check if the GPU module is targeted for equal or less PTX version
|
|||
/// </summary>
|
|||
/// <param name="major">The major version</param>
|
|||
/// <param name="minor">The minor version</param>
|
|||
/// <returns>True if the GPU module is targeted for equal or less PTX version.</returns>
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasEqualOrLessPtx")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool HasEqualOrLessPtx(int major, int minor); |
|||
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasEqualOrGreater")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
/// <summary>
|
|||
/// Check if the GPU module is targeted for equal or greater device version
|
|||
/// </summary>
|
|||
/// <param name="major">The major version</param>
|
|||
/// <param name="minor">The minor version</param>
|
|||
/// <returns>True if the GPU module is targeted for equal or greater device version.</returns>
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasEqualOrGreater")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool HasEqualOrGreater(int major, int minor); |
|||
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasEqualOrGreaterPtx")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
/// <summary>
|
|||
/// Check if the GPU module is targeted for equal or greater PTX version
|
|||
/// </summary>
|
|||
/// <param name="major">The major version</param>
|
|||
/// <param name="minor">The minor version</param>
|
|||
/// <returns>True if the GPU module is targeted for equal or greater PTX version.</returns>
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasEqualOrGreaterPtx")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool HasEqualOrGreaterPtx(int major, int minor); |
|||
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasEqualOrGreaterBin")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool HasEqualOrGreaterBin(int major, int minor); |
|||
#endregion
|
|||
} |
|||
} |
|||
/// <summary>
|
|||
/// Check if the GPU module is targeted for equal or greater BIN version
|
|||
/// </summary>
|
|||
/// <param name="major">The major version</param>
|
|||
/// <param name="minor">The minor version</param>
|
|||
/// <returns>True if the GPU module is targeted for equal or greater BIN version.</returns>
|
|||
[DllImport(CvInvoke.EXTERN_GPU_LIBRARY, CallingConvention = CvInvoke.CvCallingConvention, EntryPoint = "targetArchsHasEqualOrGreaterBin")] |
|||
[return: MarshalAs(CvInvoke.BoolMarshalType)] |
|||
public static extern bool HasEqualOrGreaterBin(int major, int minor); |
|||
#endregion
|
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue