Input object for acquiring images using a IIDC 1394-based digital camera (standard digital firewire camera). Damien Douxchamps’ dc1394-library is used to access the camera. Currently libdc1394 version 2 is not supported.
The software should work with IEEE1394a as well as IEEE1394b cameras as long as they are IIDC/DCAM compatible.

| DC1394Input | Input object for acquiring images using a IIDC 1394-based digital camera (standard digital firewire camera). |
| Constants | |
| Picture formats | |
| Modes for format 0 | This modes are only valid in connection with format FORMAT_VGA_NONCOMPRESSED. |
| Modes for format 1 | This modes are only valid in connection with format FORMAT_SVGA_NONCOMPRESSED_1. |
| Modes for format 2 | This modes are only valid in connection with format FORMAT_SVGA_NONCOMPRESSED_2. |
| Modes for format 6 | This modes are only valid in connection with format FORMAT_STILL_IMAGE. |
| Modes for format 7 | This modes are only valid in connection with format FORMAT_SCALABLE_IMAGE_SIZE. |
| Colourspaces for format 7 | Specifying a colourspace is only possible in connection with format FORMAT_SCALABLE_IMAGE_SIZE. |
| Frame rates | |
| Speed of firewire bus | |
| Camera features | Constants for accessing the different features of the camera. |
| Properties | |
| width | Width of images. |
| height | Height of images. |
| Functions | |
| DC1394Input.new | Constructor. |
| inspect | Return string with information about this object. |
| close | Close the device. |
| read | Read an image. |
| status? | Indicates whether the device is still open. |
| feature_name | Get the name of a feature |
| feature_read | Read the value of a feature. |
| feature_write | Change the value of a feature. |
| feature_exist? | Check whether a certain feature is supported by the camera. |
| feature_readable? | Query whether the camera feature can be read. |
| feature_optional? | Query whether a camera feature can be switched on and off. |
| feature_on? | Check whether an optional camera feature is switched on or off. |
| feature_on | Switch an optional camera feature on or off. |
| feature_has_auto? | Check whether the camera can adjust the feature automatically. |
| feature_has_manual? | Check whether the feature can be controlled by software. |
| feature_auto? | Check whether a camera feature is currently controlled by the camera. |
| feature_auto | Set a feature to automatic or manual mode. |
| feature_min | Get lower boundary of feature value. |
| feature_max | Get upper boundary of feature value. |
This modes are only valid in connection with format FORMAT_VGA_NONCOMPRESSED.
This modes are only valid in connection with format FORMAT_SVGA_NONCOMPRESSED_1.
This modes are only valid in connection with format FORMAT_SVGA_NONCOMPRESSED_2.
This modes are only valid in connection with format FORMAT_STILL_IMAGE.
| MODE_EXIF | EXIF mode |
This modes are only valid in connection with format FORMAT_SCALABLE_IMAGE_SIZE.
| MODE_FORMAT7_0 | mode 0 |
| MODE_FORMAT7_1 | mode 1 |
| MODE_FORMAT7_2 | mode 2 |
| MODE_FORMAT7_3 | mode 3 |
| MODE_FORMAT7_4 | mode 4 |
| MODE_FORMAT7_5 | mode 5 |
| MODE_FORMAT7_6 | mode 6 |
| MODE_FORMAT7_7 | mode 7 |
Specifying a colourspace is only possible in connection with format FORMAT_SCALABLE_IMAGE_SIZE.
Constants for accessing the different features of the camera.
def DC1394Input.new( device = "", node = 0, channel = 0, preferred_format = -1, preferred_mode = -1, preferred_format7_colour = -1, preferred_frame_rate = -1, speed = SPEED_400 )
Constructor.
| device | Filename of input device. |
| node | Select node on firewire bus. |
| channel | Select channel of device. |
| preferred_format | Select picture format. The possible formats are listed above. |
| preferred_mode | Each format offers a number of modes. Possible modes are listed above. |
| preferred_format7_colour | If the format is FORMAT_SCALABLE_IMAGE_SIZE, you can choose a preferred colourspace here. Colourspaces supported by HornetsEye are: COLOR_FORMAT7_RGB8, COLOR_FORMAT7_YUV422, and COLOR_FORMAT7_MONO8. |
| preferred_frame_rate | If the format is any other format than FORMAT_SCALABLE_IMAGE_SIZE, you can select the frame rate here. The possible values are listed above. |
| speed | Specify the speed here. I think that speeds above 400 MBit/second are not supported by HornetsEye at the moment. |
Constructor.
def DC1394Input.new( device = "", node = 0, channel = 0, preferred_format = -1, preferred_mode = -1, preferred_format7_colour = -1, preferred_frame_rate = -1, speed = SPEED_400 )
Return string with information about this object.
def inspect
Close the device.
def close
Read an image.
def read
Indicates whether the device is still open.
def status?
Get the name of a feature
def feature_name( feature )
Read the value of a feature.
def feature_read( feature )
Change the value of a feature.
def feature_write( feature, value )
Check whether a certain feature is supported by the camera.
def feature_exist?( feature )
Query whether the camera feature can be read.
def feature_readable?( feature )
Query whether a camera feature can be switched on and off.
def feature_optional?( feature )
Check whether an optional camera feature is switched on or off.
def feature_on?( feature )
Check whether the camera can adjust the feature automatically.
def feature_has_auto?( feature )
Check whether the feature can be controlled by software.
def feature_has_manual?( feature )
Check whether a camera feature is currently controlled by the camera.
def feature_auto?( feature )
Get lower boundary of feature value.
def feature_min( feature )
Get upper boundary of feature value.
def feature_max( feature )