|
| enum | FeatureMode { MODE_MANUAL = 0,
MODE_AUTO,
MODE_ONE_PUSH_AUTO,
MODE_MAX
} |
| | Camera feature modes. |
| |
| enum | FeatureType {
BRIGHTNESS = 0,
EXPOSURE,
SHARPNESS,
WHITE_BALANCE,
HUE,
SATURATION,
GAMMA,
SHUTTER,
GAIN,
IRIS,
FOCUS,
TEMPERATURE,
TRIGGER,
TRIGGER_DELAY,
WHITE_SHADING,
FRAME_RATE,
ZOOM,
PAN,
TILT,
OPTICAL_FILTER,
CAPTURE_SIZE,
CAPTURE_QUALITY,
FEATURE_TYPE_MAX
} |
| | Camera feature types. |
| |
| enum | TriggerMode {
TRIGGER_MODE_0 = 0,
TRIGGER_MODE_1,
TRIGGER_MODE_2,
TRIGGER_MODE_3,
TRIGGER_MODE_4,
TRIGGER_MODE_5,
TRIGGER_MODE_14 = 14,
TRIGGER_MODE_15 = 15,
TRIGGER_MODE_MAX
} |
| | Camera external trigger modes. |
| |
| enum | TriggerPolarity { TRIGGER_ACTIVE_LOW = 0,
TRIGGER_ACTIVE_HIGH,
TRIGGER_ACTIVE_UNDEFINED
} |
| | Camera external trigger polarity. |
| |
| enum | TriggerSource {
TRIGGER_SOURCE_0 = 0,
TRIGGER_SOURCE_1,
TRIGGER_SOURCE_2,
TRIGGER_SOURCE_3,
TRIGGER_SOURCE_SOFTWARE,
TRIGGER_SOURCE_MAX
} |
| | Camera external trigger sources. |
| |
|
| virtual CameraInfo | cameraInfo ()=0 |
| | Returns information about this particular camera object. More... |
| |
| virtual bool | disableTrigger ()=0 |
| | Disables external trigger for the camera. More... |
| |
| CameraDriver * | driver () |
| | Returns the driver which created this camera. More... |
| |
| virtual bool | enableTrigger (TriggerSource src)=0 |
| | Sets the external trigger source for the camera. More... |
| |
| virtual int | framesBehind () const =0 |
| | Returns the number of frames that would be immediately readable. More... |
| |
| virtual void | getFeatures (std::vector< CameraFeature > *features)=0 |
| | Gets the different features that the camera supports. More... |
| |
| virtual bool | open (uint64_t euid, int width, int height, ImageFormat fmt=IMAGE_UNKNOWN, FrameRate framerate=FPS_IGNORE)=0 |
| | Opens a connection to the camera and initializes the image capture parameters. More... |
| |
| virtual bool | openFormat7 (uint64_t cameraeuid, Nimble::Recti roi, float fps, int mode)=0 |
| | Opens a connection to the camera and sets up format7 image capture. More... |
| |
|
virtual void | sendSoftwareTrigger ()=0 |
| | Sends a software trigger signal to the camera. |
| |
| virtual void | setBrightness (float value) |
| | Sets the value of the BRIGHTNESS feature. More... |
| |
| virtual bool | setCaptureTimeout (int ms)=0 |
| | Sets the timeout for waiting for a new frame from the camera. More... |
| |
| virtual void | setExposure (float value) |
| | Sets the value of the EXPOSURE feature. More... |
| |
| virtual void | setFeature (FeatureType id, float value)=0 |
| | Sets the relative value of a feature based on the minimum and maximum
values. More... |
| |
| virtual void | setFeatureRaw (FeatureType id, int32_t value)=0 |
| | Sets the absolute value of a feature. More... |
| |
| virtual void | setFocus (float value) |
| | Sets the value of the FOCUS feature. More... |
| |
| virtual void | setGain (float value) |
| | Sets the value of the GAIN feature. More... |
| |
| virtual void | setGamma (float value) |
| | Sets the value of the GAMMA feature. More... |
| |
| virtual void | setPan (float value) |
| | Sets the value of the PAN feature. More... |
| |
| virtual void | setShutter (float value) |
| | Sets the value of the SHUTTER feature. More... |
| |
| virtual void | setTilt (float value) |
| | Sets the value of the TILT feature. More... |
| |
| virtual bool | setTriggerMode (TriggerMode mode)=0 |
| | Sets the external trigger mode for the camera. More... |
| |
| virtual bool | setTriggerPolarity (TriggerPolarity polarity)=0 |
| | Sets the polarity of external trigger. More... |
| |
| | VideoCamera (CameraDriver *driver) |
| | Constructs a new video camera. More... |
| |
|
virtual | ~VideoCamera () |
| | Destructor. |
| |
| virtual const void * | captureAudio (int *frameCount) |
| | Get audio data. More... |
| |
| virtual const Radiant::VideoImage * | captureImage ()=0 |
| | This method captures an image from the video source. More... |
| |
| virtual bool | close ()=0 |
| | Close the device. More... |
| |
| virtual void | doneImage () |
| | Inform the video handler that the application has used the image. More... |
| |
| virtual Nimble::Vector2i | focalPoint () const |
| |
| virtual float | fps () const =0 |
| | Returns the current frame rate (int frames per second) of the video stream. More... |
| |
| virtual void | getAudioParameters (int *channels, int *sample_rate, AudioSampleFormat *format) const |
| | Get audio parameters. More... |
| |
| virtual int | height () const =0 |
| | Returns the current height of a frame in the video stream images. More... |
| |
| virtual ImageFormat | imageFormat () const =0 |
| | Returns the current image format of the stream. More... |
| |
| virtual unsigned int | size () const =0 |
| | Returns the total size of one captured image frame in bytes. More... |
| |
| virtual bool | start ()=0 |
| | Starts the data transmission. More... |
| |
| virtual bool | stop ()=0 |
| | Stops the data transmission. More... |
| |
| virtual uint64_t | uid () |
| | Returns the unique identifier for the input device. More... |
| |
| virtual int | width () const =0 |
| | Returns the current width of a frame in the video stream images. More... |
| |
|
virtual | ~VideoInput () |
| | Destructor. |
| |
VideoCamera provides a common interface for different video cameras.
Each new camera driver should implement this interface and the CameraDriver interface.