modes.h
Go to the documentation of this file.
1 /* -*- mode: C++ -*- */
2 /* $Id$ */
3 
4 /*********************************************************************
5 * Software License Agreement (BSD License)
6 *
7 * Copyright (c) 2010 Jack O'Quin
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 *
14 * * Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * * Redistributions in binary form must reproduce the above
17 * copyright notice, this list of conditions and the following
18 * disclaimer in the documentation and/or other materials provided
19 * with the distribution.
20 * * Neither the name of the author nor other contributors may be
21 * used to endorse or promote products derived from this software
22 * without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
27 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
28 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
29 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
30 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
31 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
34 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 *********************************************************************/
37 
38 #ifndef _MODES_H_
39 #define _MODES_H_
40 
41 #include <dc1394/dc1394.h>
42 
55 namespace Modes
56 {
57  dc1394color_coding_t getColorCoding(dc1394camera_t *camera,
58  dc1394video_mode_t video_mode,
59  std::string &color_coding);
60  dc1394framerate_t getFrameRate(dc1394camera_t *camera,
61  dc1394video_mode_t video_mode,
62  double &frame_rate);
63  dc1394video_mode_t getVideoMode(dc1394camera_t *camera,
64  std::string &video_mode);
65 
66  bool setFrameRate(dc1394camera_t *camera,
67  dc1394video_mode_t video_mode,
68  double &frame_rate);
69  bool setIsoSpeed(dc1394camera_t *camera, int &iso_speed);
70 }
71 
72 #endif // _MODES_H_
Definition: modes.cpp:50
bool setIsoSpeed(dc1394camera_t *camera, int &iso_speed)
Definition: modes.cpp:360
dc1394color_coding_t getColorCoding(dc1394camera_t *camera, dc1394video_mode_t video_mode, std::string &color_coding)
Definition: modes.cpp:148
bool setFrameRate(dc1394camera_t *camera, dc1394video_mode_t video_mode, double &frame_rate)
Definition: modes.cpp:332
dc1394framerate_t getFrameRate(dc1394camera_t *camera, dc1394video_mode_t video_mode, double &frame_rate)
Definition: modes.cpp:216
dc1394video_mode_t getVideoMode(dc1394camera_t *camera, std::string &video_mode)
Definition: modes.cpp:265


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