Into

Modules

Documentation

classPiiFireWireOperation

#include <PiiFireWireOperation.h>

An operation for reading frames from IEEE1394 cameras.

Inherits PiiDefaultOperation

Description

NOTE. This operation is availabe only if a compatible hardware driver is available and supported by your compiler. Currently, this means only MSVC.

Inputs

triggeran optional trigger input. A new image is emitted whenever any object is received in this input.

Outputs

imagethe image output. Emits either four-channel color or grayscale (the default) images in 8-bit (unsigned char) channel format.

Properties

int

The index of the next frame to be emitted.

int

Set an image format.

QVariantList

Get supported video formats.

int

Set a frame rate.

QVariantList

Get supported frame rates.

The type of the frames.

int

Set the partial scan height.

int

Set an index of the current camera.

int

Set the partial scan left.

int

The maximum number of frames the source will emit.

int

Set a video mode.

Get a mode of the current camera.

QVariantList

Get supported video modes.

int

Get number of cameras.

int

Set the partial scan top.

Get a vendor of the current camera.

int

Set the partial scan width.

Public types

enum
{ GrayScale, Color }

Possible frame types.

enum
{ Gray8, Gray16, RGB, YUV, Format7, Other }

Constructors and destructor

Create a fireWireOperation source that reads the current camera.

Public member functions

int
( )
int
virtual void
(
  • bool reset
)

Checks the operation for execution.

int
int
( )
int
int
( )
int
( )
int
int
( )
( )
void
(
  • int index
)
void
(
  • int format
)
void
(
  • int frameRate
)
void
void
(
  • int height
)
void
(
  • int left
)
void
(
  • int cnt
)
void
(
  • int mode
)
void
(
  • int top
)
void
(
  • int width
)
QVariantList
QVariantList
QVariantList
int
( )
( )
int
( )

Protected member functions

virtual void

Executes one round of processing.

Property details

  • int currentFrameIndex

    [read]

    The index of the next frame to be emitted.

  • int format

    [read, write]

    Set an image format.

  • QVariantList formatList

    [read]

    Get supported video formats.

  • int frameRate

    [read, write]

    Set a frame rate.

  • QVariantList frameRateList

    [read]

    Get supported frame rates.

  • FrameType frameType

    [read, write]

    The type of the frames.

  • int height

    [read, write]

    Set the partial scan height.

  • int index

    [read, write]

    Set an index of the current camera.

  • int left

    [read, write]

    Set the partial scan left.

  • int maxFrames

    [read, write]

    The maximum number of frames the source will emit.

    This is the upper limit for the number of frames the source will emit. The default value is -1, which means that source will emit frames non-stop.

  • int mode

    [read, write]

    Set a video mode.

  • QString model

    [read]

    Get a mode of the current camera.

  • QVariantList modeList

    [read]

    Get supported video modes.

  • int nodes

    [read]

    Get number of cameras.

  • int top

    [read, write]

    Set the partial scan top.

  • QString vendor

    [read]

    Get a vendor of the current camera.

  • int width

    [read, write]

    Set the partial scan width.

Enumeration details

  • enum FrameType

    Possible frame types.

    • GrayScale - the output images will be of an 8-bit gray scale type (unsigned char)

    • Color - the output images will be of a 24-bit RGB color type (PiiColor<unsigned char>).

  • enum VideoFormatType

Function details

  • PiiFireWireOperation

    ()

    Create a fireWireOperation source that reads the current camera.

  • ~PiiFireWireOperation

    ()
  • int camera

    ()
  • int cameraCount

    ()
  • virtual void check

    (
    • bool reset
    )
    [virtual]

    Checks the operation for execution.

    This function creates a suitable flow controller by calling createFlowController(). It then sets the flow controller to the active processor and sets the processor as the input controller for all inputs.

    If you change socket groupings in your overridden implementation, please call PiiDefaultOperation::check() after that. Otherwise, your new groupings will not be in effect.

    Reimplemented from PiiDefaultOperation.

  • int currentFrameIndex

    ()
  • int format

    ()
  • int frameRate

    ()
  • FrameType frameType

    ()
  • int height

    ()
  • int left

    ()
  • int maxFrames

    ()
  • int mode

    ()
  • QString model

    ()
  • void setCamera

    (
    • int index
    )
  • void setFormat

    (
    • int format
    )
  • void setFrameRate

    (
    • int frameRate
    )
  • void setFrameType

    ( )
  • void setHeight

    (
    • int height
    )
  • void setLeft

    (
    • int left
    )
  • void setMaxFrames

    (
    • int cnt
    )
  • void setMode

    (
    • int mode
    )
  • void setTop

    (
    • int top
    )
  • void setWidth

    (
    • int width
    )
  • QVariantList supportedFormats

    ()
  • QVariantList supportedFrameRates

    ()
  • QVariantList supportedModes

    ()
  • int top

    ()
  • QString vendor

    ()
  • int width

    ()
  • virtual void process

    ()
    [protected, virtual]

    Executes one round of processing.

    This function is invoked by the processor if the necessary preconditions for a new processing round are met. This function does all the necessary calculations to create output objects and sends them to output sockets.

    Calls to process(), syncEvent(), and setProperty() are synchronized and cannot occur simultaneously. PiiDefaultOperation ensures this by locking processLock() for reading before calling process().

    Note: With time-consuming operations, one should occasionally check that the operation hasn't been interrupted, i.e. that state() returns Running.

    Exceptions
    PiiExecutionException

    whenever an unrecoverable error occurs during a processing round, the operation is interrupted, or finishes execution due to end of input data.

    Reimplemented from PiiDefaultOperation.

  • void stopCapture

    ()
    [slot]
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.