$search

Modes Namespace Reference

Functions

const std::string colorCodingName (dc1394color_coding_t mode)
dc1394color_coding_t getColorCoding (dc1394camera_t *camera, dc1394video_mode_t video_mode, std::string &color_coding)
dc1394framerate_t getFrameRate (dc1394camera_t *camera, dc1394video_mode_t video_mode, double &frame_rate)
dc1394video_mode_t getVideoMode (dc1394camera_t *camera, std::string &video_mode)
bool setFrameRate (dc1394camera_t *camera, dc1394video_mode_t video_mode, double &frame_rate)
bool setIsoSpeed (dc1394camera_t *camera, int &iso_speed)
const std::string videoModeName (dc1394video_mode_t mode)

Variables

static const std::string color_coding_names_ [DC1394_COLOR_CODING_NUM]
 driver parameter names, corresponding to DC1394 color codings
static const std::string video_mode_names_ [DC1394_VIDEO_MODE_NUM]

Function Documentation

const std::string Modes::colorCodingName ( dc1394color_coding_t  mode  )  [inline]

Return driver parameter name of DC1394 color_coding.

Parameters:
mode DC1394 color coding number
Returns:
corresponding parameter name ("" if not a valid mode)

Definition at line 124 of file modes.cpp.

dc1394color_coding_t Modes::getColorCoding ( dc1394camera_t *  camera,
dc1394video_mode_t  video_mode,
std::string &  color_coding 
)

Get Format7 color coding.

Precondition:
camera is in a Format7 video mode.
Parameters:
camera points to DC1394 camera struct
video_mode currently selected Format7 video mode.
[in,out] color_coding Config parameter for this option, updated if the camera does not support the requested value
Returns:
corresponding dc1394color_coding_t enum value selected
dc1394framerate_t Modes::getFrameRate ( dc1394camera_t *  camera,
dc1394video_mode_t  video_mode,
double &  frame_rate 
)

Get non-scalable frame rate.

Precondition:
camera is NOT in a Format7 video mode.
Parameters:
camera points to DC1394 camera struct.
video_mode currently selected non-Format7 video mode.
[in,out] frame_rate Config parameter for this option, updated if the camera does not support the requested value.
Returns:
corresponding dc1394framerate_t enum value selected, if successful; DC1394_FRAMERATE_NUM if not.
dc1394video_mode_t Modes::getVideoMode ( dc1394camera_t *  camera,
std::string &  video_mode 
)

Get video mode.

Parameters:
camera points to DC1394 camera struct
[in,out] video_mode Config parameter for this option, updated if the camera does not support the requested value
Returns:
corresponding dc1394video_mode_t enum value selected
bool Modes::setFrameRate ( dc1394camera_t *  camera,
dc1394video_mode_t  video_mode,
double &  frame_rate 
)

Set non-scalable frame rate.

Precondition:
camera is NOT in a Format7 video mode.
Parameters:
camera points to DC1394 camera struct.
video_mode currently selected non-Format7 video mode.
[in,out] frame_rate Config parameter for this option, updated if the camera does not support the requested value.
Returns:
true if successful; false if not.
bool Modes::setIsoSpeed ( dc1394camera_t *  camera,
int &  iso_speed 
)

Set ISO speed.

Parameters:
camera points to DC1394 camera struct
[in,out] iso_speed Config parameter for this option, updated if the camera does not support the requested value
Returns:
true if ISO speed set successfully, false if not.
Postcondition:
IEEE1394b mode enabled if camera and bus support it.
const std::string Modes::videoModeName ( dc1394video_mode_t  mode  )  [inline]

Return driver parameter name of DC1394 video_mode.

Parameters:
mode DC1394 video mode number
Returns:
corresponding parameter name ("" if not a valid mode)

Definition at line 94 of file modes.cpp.


Variable Documentation

const std::string Modes::color_coding_names_[DC1394_COLOR_CODING_NUM] [static]
Initial value:
    {
      "mono8",
      "yuv411",
      "yuv422",
      "yuv444",
      "rgb8",
      "mono16",
      "rgb16",
      "mono16s",
      "rgb16s",
      "raw8",
      "raw16",
    }

driver parameter names, corresponding to DC1394 color codings

Definition at line 104 of file modes.cpp.

const std::string Modes::video_mode_names_[DC1394_VIDEO_MODE_NUM] [static]

Definition at line 53 of file modes.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


camera1394
Author(s): Jack O'Quin, Patrick Beeson, Nate Koenig, Andrew Howard, Damien Douxchamps, Dan Dennedy, Ken Tossell
autogenerated on Sat Mar 2 12:11:29 2013