Functions | Variables
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 More...
 
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
modeDC1394 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
camerapoints to DC1394 camera struct
video_modecurrently selected Format7 video mode.
[in,out]color_codingConfig parameter for this option, updated if the camera does not support the requested value
Returns
corresponding dc1394color_coding_t enum value selected

Definition at line 148 of file modes.cpp.

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
camerapoints to DC1394 camera struct.
video_modecurrently selected non-Format7 video mode.
[in,out]frame_rateConfig 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.

Definition at line 216 of file modes.cpp.

dc1394video_mode_t Modes::getVideoMode ( dc1394camera_t *  camera,
std::string &  video_mode 
)

Get video mode.

Parameters
camerapoints to DC1394 camera struct
[in,out]video_modeConfig parameter for this option, updated if the camera does not support the requested value
Returns
corresponding dc1394video_mode_t enum value selected

Definition at line 265 of file modes.cpp.

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
camerapoints to DC1394 camera struct.
video_modecurrently selected non-Format7 video mode.
[in,out]frame_rateConfig parameter for this option, updated if the camera does not support the requested value.
Returns
true if successful; false if not.

Definition at line 332 of file modes.cpp.

bool Modes::setIsoSpeed ( dc1394camera_t *  camera,
int &  iso_speed 
)

Set ISO speed.

Parameters
camerapoints to DC1394 camera struct
[in,out]iso_speedConfig 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.

Definition at line 360 of file modes.cpp.

const std::string Modes::videoModeName ( dc1394video_mode_t  mode)
inline

Return driver parameter name of DC1394 video_mode.

Parameters
modeDC1394 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.



camera1394
Author(s): Jack O'Quin, Ken Tossell, Patrick Beeson, Nate Koenig, Andrew Howard, Damien Douxchamps, Dan Dennedy
autogenerated on Mon Jun 10 2019 12:52:31