Android Open Source - android-opencv-template Device Info






From Project

Back to project page android-opencv-template.

License

The source code is released under:

MIT License

If you think the Android project android-opencv-template listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.opencv.gpu;
/*ww  w .  ja  v  a2 s. co  m*/
import java.lang.String;

// C++: class DeviceInfo
public class DeviceInfo {

    protected final long nativeObj;
    protected DeviceInfo(long addr) { nativeObj = addr; }


    //
    // C++:   DeviceInfo::DeviceInfo()
    //

    public   DeviceInfo()
    {

        nativeObj = DeviceInfo_0();

        return;
    }


    //
    // C++:   DeviceInfo::DeviceInfo(int device_id)
    //

    public   DeviceInfo(int device_id)
    {

        nativeObj = DeviceInfo_1(device_id);

        return;
    }


    //
    // C++:  int DeviceInfo::deviceID()
    //

    public  int deviceID()
    {

        int retVal = deviceID_0(nativeObj);

        return retVal;
    }


    //
    // C++:  size_t DeviceInfo::freeMemory()
    //

    public  long freeMemory()
    {

        long retVal = freeMemory_0(nativeObj);

        return retVal;
    }


    //
    // C++:  bool DeviceInfo::isCompatible()
    //

    public  boolean isCompatible()
    {

        boolean retVal = isCompatible_0(nativeObj);

        return retVal;
    }


    //
    // C++:  int DeviceInfo::majorVersion()
    //

    public  int majorVersion()
    {

        int retVal = majorVersion_0(nativeObj);

        return retVal;
    }


    //
    // C++:  int DeviceInfo::minorVersion()
    //

    public  int minorVersion()
    {

        int retVal = minorVersion_0(nativeObj);

        return retVal;
    }


    //
    // C++:  int DeviceInfo::multiProcessorCount()
    //

    public  int multiProcessorCount()
    {

        int retVal = multiProcessorCount_0(nativeObj);

        return retVal;
    }


    //
    // C++:  string DeviceInfo::name()
    //

    public  String name()
    {

        String retVal = name_0(nativeObj);

        return retVal;
    }


    //
    // C++:  void DeviceInfo::queryMemory(size_t& totalMemory, size_t& freeMemory)
    //

    public  void queryMemory(long totalMemory, long freeMemory)
    {
        double[] totalMemory_out = new double[1];
        double[] freeMemory_out = new double[1];
        queryMemory_0(nativeObj, totalMemory_out, freeMemory_out);
        totalMemory = (long)totalMemory_out[0];
        freeMemory = (long)freeMemory_out[0];
    }


    //
    // C++:  size_t DeviceInfo::sharedMemPerBlock()
    //

    public  long sharedMemPerBlock()
    {

        long retVal = sharedMemPerBlock_0(nativeObj);

        return retVal;
    }


    //
    // C++:  bool DeviceInfo::supports(int feature_set)
    //

    public  boolean supports(int feature_set)
    {

        boolean retVal = supports_0(nativeObj, feature_set);

        return retVal;
    }


    //
    // C++:  size_t DeviceInfo::totalMemory()
    //

    public  long totalMemory()
    {

        long retVal = totalMemory_0(nativeObj);

        return retVal;
    }


    @Override
    protected void finalize() throws Throwable {
        delete(nativeObj);
    }



    // C++:   DeviceInfo::DeviceInfo()
    private static native long DeviceInfo_0();

    // C++:   DeviceInfo::DeviceInfo(int device_id)
    private static native long DeviceInfo_1(int device_id);

    // C++:  int DeviceInfo::deviceID()
    private static native int deviceID_0(long nativeObj);

    // C++:  size_t DeviceInfo::freeMemory()
    private static native long freeMemory_0(long nativeObj);

    // C++:  bool DeviceInfo::isCompatible()
    private static native boolean isCompatible_0(long nativeObj);

    // C++:  int DeviceInfo::majorVersion()
    private static native int majorVersion_0(long nativeObj);

    // C++:  int DeviceInfo::minorVersion()
    private static native int minorVersion_0(long nativeObj);

    // C++:  int DeviceInfo::multiProcessorCount()
    private static native int multiProcessorCount_0(long nativeObj);

    // C++:  string DeviceInfo::name()
    private static native String name_0(long nativeObj);

    // C++:  void DeviceInfo::queryMemory(size_t& totalMemory, size_t& freeMemory)
    private static native void queryMemory_0(long nativeObj, double[] totalMemory_out, double[] freeMemory_out);

    // C++:  size_t DeviceInfo::sharedMemPerBlock()
    private static native long sharedMemPerBlock_0(long nativeObj);

    // C++:  bool DeviceInfo::supports(int feature_set)
    private static native boolean supports_0(long nativeObj, int feature_set);

    // C++:  size_t DeviceInfo::totalMemory()
    private static native long totalMemory_0(long nativeObj);

    // native support for java finalize()
    private static native void delete(long nativeObj);

}




Java Source Code List

com.floatlearning.android_opencv_template.MainActivity.java
org.opencv.android.AsyncServiceHelper.java
org.opencv.android.BaseLoaderCallback.java
org.opencv.android.CameraBridgeViewBase.java
org.opencv.android.FpsMeter.java
org.opencv.android.InstallCallbackInterface.java
org.opencv.android.JavaCameraView.java
org.opencv.android.LoaderCallbackInterface.java
org.opencv.android.NativeCameraView.java
org.opencv.android.OpenCVLoader.java
org.opencv.android.StaticHelper.java
org.opencv.android.Utils.java
org.opencv.calib3d.Calib3d.java
org.opencv.calib3d.StereoBM.java
org.opencv.calib3d.StereoSGBM.java
org.opencv.contrib.Contrib.java
org.opencv.contrib.FaceRecognizer.java
org.opencv.contrib.StereoVar.java
org.opencv.core.Algorithm.java
org.opencv.core.Core.java
org.opencv.core.CvException.java
org.opencv.core.CvType.java
org.opencv.core.MatOfByte.java
org.opencv.core.MatOfDMatch.java
org.opencv.core.MatOfDouble.java
org.opencv.core.MatOfFloat4.java
org.opencv.core.MatOfFloat6.java
org.opencv.core.MatOfFloat.java
org.opencv.core.MatOfInt4.java
org.opencv.core.MatOfInt.java
org.opencv.core.MatOfKeyPoint.java
org.opencv.core.MatOfPoint2f.java
org.opencv.core.MatOfPoint3.java
org.opencv.core.MatOfPoint3f.java
org.opencv.core.MatOfPoint.java
org.opencv.core.MatOfRect.java
org.opencv.core.Mat.java
org.opencv.core.Point3.java
org.opencv.core.Point.java
org.opencv.core.Range.java
org.opencv.core.Rect.java
org.opencv.core.RotatedRect.java
org.opencv.core.Scalar.java
org.opencv.core.Size.java
org.opencv.core.TermCriteria.java
org.opencv.features2d.DMatch.java
org.opencv.features2d.DescriptorExtractor.java
org.opencv.features2d.DescriptorMatcher.java
org.opencv.features2d.FeatureDetector.java
org.opencv.features2d.Features2d.java
org.opencv.features2d.GenericDescriptorMatcher.java
org.opencv.features2d.KeyPoint.java
org.opencv.gpu.DeviceInfo.java
org.opencv.gpu.Gpu.java
org.opencv.gpu.TargetArchs.java
org.opencv.highgui.Highgui.java
org.opencv.highgui.VideoCapture.java
org.opencv.imgproc.CLAHE.java
org.opencv.imgproc.Imgproc.java
org.opencv.imgproc.Moments.java
org.opencv.imgproc.Subdiv2D.java
org.opencv.ml.CvANN_MLP_TrainParams.java
org.opencv.ml.CvANN_MLP.java
org.opencv.ml.CvBoostParams.java
org.opencv.ml.CvBoost.java
org.opencv.ml.CvDTreeParams.java
org.opencv.ml.CvDTree.java
org.opencv.ml.CvERTrees.java
org.opencv.ml.CvGBTreesParams.java
org.opencv.ml.CvGBTrees.java
org.opencv.ml.CvKNearest.java
org.opencv.ml.CvNormalBayesClassifier.java
org.opencv.ml.CvParamGrid.java
org.opencv.ml.CvRTParams.java
org.opencv.ml.CvRTrees.java
org.opencv.ml.CvSVMParams.java
org.opencv.ml.CvSVM.java
org.opencv.ml.CvStatModel.java
org.opencv.ml.EM.java
org.opencv.ml.Ml.java
org.opencv.objdetect.CascadeClassifier.java
org.opencv.objdetect.HOGDescriptor.java
org.opencv.objdetect.Objdetect.java
org.opencv.photo.Photo.java
org.opencv.utils.Converters.java
org.opencv.video.BackgroundSubtractorMOG2.java
org.opencv.video.BackgroundSubtractorMOG.java
org.opencv.video.BackgroundSubtractor.java
org.opencv.video.KalmanFilter.java
org.opencv.video.Video.java