Class CameraServerJNI


  • public class CameraServerJNI
    extends Object
    • Constructor Detail

      • CameraServerJNI

        public CameraServerJNI()
    • Method Detail

      • forceLoad

        public static void forceLoad()
      • getPropertyKind

        public static int getPropertyKind​(int property)
      • getPropertyName

        public static String getPropertyName​(int property)
      • getProperty

        public static int getProperty​(int property)
      • setProperty

        public static void setProperty​(int property,
                                       int value)
      • getPropertyMin

        public static int getPropertyMin​(int property)
      • getPropertyMax

        public static int getPropertyMax​(int property)
      • getPropertyStep

        public static int getPropertyStep​(int property)
      • getPropertyDefault

        public static int getPropertyDefault​(int property)
      • getStringProperty

        public static String getStringProperty​(int property)
      • setStringProperty

        public static void setStringProperty​(int property,
                                             String value)
      • getEnumPropertyChoices

        public static String[] getEnumPropertyChoices​(int property)
      • createUsbCameraDev

        public static int createUsbCameraDev​(String name,
                                             int dev)
      • createUsbCameraPath

        public static int createUsbCameraPath​(String name,
                                              String path)
      • createHttpCamera

        public static int createHttpCamera​(String name,
                                           String url,
                                           int kind)
      • createHttpCameraMulti

        public static int createHttpCameraMulti​(String name,
                                                String[] urls,
                                                int kind)
      • createCvSource

        public static int createCvSource​(String name,
                                         int pixelFormat,
                                         int width,
                                         int height,
                                         int fps)
      • getSourceKind

        public static int getSourceKind​(int source)
      • getSourceName

        public static String getSourceName​(int source)
      • getSourceDescription

        public static String getSourceDescription​(int source)
      • getSourceLastFrameTime

        public static long getSourceLastFrameTime​(int source)
      • setSourceConnectionStrategy

        public static void setSourceConnectionStrategy​(int source,
                                                       int strategy)
      • isSourceConnected

        public static boolean isSourceConnected​(int source)
      • isSourceEnabled

        public static boolean isSourceEnabled​(int source)
      • getSourceProperty

        public static int getSourceProperty​(int source,
                                            String name)
      • enumerateSourceProperties

        public static int[] enumerateSourceProperties​(int source)
      • getSourceVideoMode

        public static VideoMode getSourceVideoMode​(int source)
      • setSourceVideoMode

        public static boolean setSourceVideoMode​(int source,
                                                 int pixelFormat,
                                                 int width,
                                                 int height,
                                                 int fps)
      • setSourcePixelFormat

        public static boolean setSourcePixelFormat​(int source,
                                                   int pixelFormat)
      • setSourceResolution

        public static boolean setSourceResolution​(int source,
                                                  int width,
                                                  int height)
      • setSourceFPS

        public static boolean setSourceFPS​(int source,
                                           int fps)
      • setSourceConfigJson

        public static boolean setSourceConfigJson​(int source,
                                                  String config)
      • getSourceConfigJson

        public static String getSourceConfigJson​(int source)
      • enumerateSourceVideoModes

        public static VideoMode[] enumerateSourceVideoModes​(int source)
      • enumerateSourceSinks

        public static int[] enumerateSourceSinks​(int source)
      • copySource

        public static int copySource​(int source)
      • releaseSource

        public static void releaseSource​(int source)
      • setCameraBrightness

        public static void setCameraBrightness​(int source,
                                               int brightness)
      • getCameraBrightness

        public static int getCameraBrightness​(int source)
      • setCameraWhiteBalanceAuto

        public static void setCameraWhiteBalanceAuto​(int source)
      • setCameraWhiteBalanceHoldCurrent

        public static void setCameraWhiteBalanceHoldCurrent​(int source)
      • setCameraWhiteBalanceManual

        public static void setCameraWhiteBalanceManual​(int source,
                                                       int value)
      • setCameraExposureAuto

        public static void setCameraExposureAuto​(int source)
      • setCameraExposureHoldCurrent

        public static void setCameraExposureHoldCurrent​(int source)
      • setCameraExposureManual

        public static void setCameraExposureManual​(int source,
                                                   int value)
      • getUsbCameraPath

        public static String getUsbCameraPath​(int source)
      • getUsbCameraInfo

        public static UsbCameraInfo getUsbCameraInfo​(int source)
      • getHttpCameraKind

        public static int getHttpCameraKind​(int source)
      • setHttpCameraUrls

        public static void setHttpCameraUrls​(int source,
                                             String[] urls)
      • getHttpCameraUrls

        public static String[] getHttpCameraUrls​(int source)
      • putSourceFrame

        public static void putSourceFrame​(int source,
                                          long imageNativeObj)
      • notifySourceError

        public static void notifySourceError​(int source,
                                             String msg)
      • setSourceConnected

        public static void setSourceConnected​(int source,
                                              boolean connected)
      • setSourceDescription

        public static void setSourceDescription​(int source,
                                                String description)
      • createSourceProperty

        public static int createSourceProperty​(int source,
                                               String name,
                                               int kind,
                                               int minimum,
                                               int maximum,
                                               int step,
                                               int defaultValue,
                                               int value)
      • setSourceEnumPropertyChoices

        public static void setSourceEnumPropertyChoices​(int source,
                                                        int property,
                                                        String[] choices)
      • createMjpegServer

        public static int createMjpegServer​(String name,
                                            String listenAddress,
                                            int port)
      • createCvSink

        public static int createCvSink​(String name)
      • getSinkKind

        public static int getSinkKind​(int sink)
      • getSinkName

        public static String getSinkName​(int sink)
      • getSinkDescription

        public static String getSinkDescription​(int sink)
      • getSinkProperty

        public static int getSinkProperty​(int sink,
                                          String name)
      • enumerateSinkProperties

        public static int[] enumerateSinkProperties​(int sink)
      • setSinkConfigJson

        public static boolean setSinkConfigJson​(int sink,
                                                String config)
      • getSinkConfigJson

        public static String getSinkConfigJson​(int sink)
      • setSinkSource

        public static void setSinkSource​(int sink,
                                         int source)
      • getSinkSourceProperty

        public static int getSinkSourceProperty​(int sink,
                                                String name)
      • getSinkSource

        public static int getSinkSource​(int sink)
      • copySink

        public static int copySink​(int sink)
      • releaseSink

        public static void releaseSink​(int sink)
      • getMjpegServerListenAddress

        public static String getMjpegServerListenAddress​(int sink)
      • getMjpegServerPort

        public static int getMjpegServerPort​(int sink)
      • setSinkDescription

        public static void setSinkDescription​(int sink,
                                              String description)
      • grabSinkFrame

        public static long grabSinkFrame​(int sink,
                                         long imageNativeObj)
      • grabSinkFrameTimeout

        public static long grabSinkFrameTimeout​(int sink,
                                                long imageNativeObj,
                                                double timeout)
      • getSinkError

        public static String getSinkError​(int sink)
      • setSinkEnabled

        public static void setSinkEnabled​(int sink,
                                          boolean enabled)
      • addListener

        public static int addListener​(Consumer<VideoEvent> listener,
                                      int eventMask,
                                      boolean immediateNotify)
      • removeListener

        public static void removeListener​(int handle)
      • setTelemetryPeriod

        public static void setTelemetryPeriod​(double seconds)
      • getTelemetryElapsedTime

        public static double getTelemetryElapsedTime()
      • getTelemetryValue

        public static long getTelemetryValue​(int handle,
                                             int kind)
      • getTelemetryAverageValue

        public static double getTelemetryAverageValue​(int handle,
                                                      int kind)
      • enumerateUsbCameras

        public static UsbCameraInfo[] enumerateUsbCameras()
      • enumerateSources

        public static int[] enumerateSources()
      • enumerateSinks

        public static int[] enumerateSinks()
      • getHostname

        public static String getHostname()
      • getNetworkInterfaces

        public static String[] getNetworkInterfaces()