pgr_registers.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
31 #ifndef PGR_REGISTERS_H
32 #define PGR_REGISTERS_H
33 
39 //=============================================================================
40 // Copyright © 2007 Point Grey Research, Inc. All Rights Reserved.
41 //
42 // This software is the confidential and proprietary information of Point
43 // Grey Research, Inc. ("Confidential Information"). You shall not
44 // disclose such Confidential Information and shall use it only in
45 // accordance with the terms of the license agreement you entered into
46 // with Point Grey Research Inc.
47 //
48 // PGR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
49 // SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
50 // IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
51 // PURPOSE, OR NON-INFRINGEMENT. PGR SHALL NOT BE LIABLE FOR ANY DAMAGES
52 // SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
53 // THIS SOFTWARE OR ITS DERIVATIVES.
54 //
55 //=============================================================================
56 
57 //=============================================================================
58 //
59 // pgr_registers.h
60 //
61 //=============================================================================
62 
63 //=============================================================================
64 // System Includes
65 //=============================================================================
66 #include <dc1394/control.h>
67 #include <dc1394/conversions.h>
68 
69 //=============================================================================
70 // PGR Includes
71 //=============================================================================
72 
73 // PGR specific register that contains the Bayer Tile mapping information
74 #define BAYER_TILE_MAPPING_REGISTER (0x1040)
75 #define SENSOR_BOARD_INFO_REGISTER (0x1f28)
76 #define IMAGE_DATA_FORMAT_REGISTER (0x1048)
77 
78 //=============================================================================
79 // Name: getSensorInfo
80 //
81 // Input:
82 // camera - The camera to be queried
83 //
84 // Output:
85 // pbColor - Is the camera color?
86 // pnRows - Number of rows in image resolution
87 // pnCols - Number of columns in image resolution
88 //
89 // Description:
90 // This function queries the PGR registers that identify the sensor info.
91 // This is a PGR specific register query.
92 //
93 //=============================================================================
94 dc1394error_t
95 getSensorInfo( dc1394camera_t* camera,
96  bool* pbColor,
97  unsigned int* pnRows,
98  unsigned int* pnCols );
99 
100 //=============================================================================
101 // Name: setEndian
102 //
103 // Input:
104 // camera - The camera to be queried
105 //
106 // Output:
107 // bBigEndian - "true" means transmit 16-bit data in big endian
108 // (DCAM-compliant) mode
109 // - "false" means transmit 16-bit data in little endian mode
110 // which allows the buffers to be directly cast into unsigned
111 // short on Intel-based PC platforms
112 //
113 // Description:
114 //
115 //=============================================================================
116 dc1394error_t
117 setEndian( dc1394camera_t* camera,
118  bool bBigEndian );
119 
120 //=============================================================================
121 // Name: getBayerTile
122 //
123 // Input:
124 // camera - The camera to be queried
125 //
126 // Output:
127 // bayerTile - Returns with the Bayer tile pattern
128 //
129 // Description:
130 // This function queries the PGR registers that identify the bayer tile
131 // pattern for a bayer camera.
132 //
133 //=============================================================================
134 dc1394error_t
135 getBayerTile( dc1394camera_t* camera,
136  dc1394color_filter_t* bayerPattern );
137 
138 #endif
139 
142 /*Previous 3 lines appended automatically on Wed Jun 9 00:11:56 WEST 2010 */
dc1394error_t getSensorInfo(dc1394camera_t *camera, bool *pbColor, unsigned int *pnRows, unsigned int *pnCols)
dc1394error_t getBayerTile(dc1394camera_t *camera, dc1394color_filter_t *bayerPattern)
dc1394error_t setEndian(dc1394camera_t *camera, bool bBigEndian)


xb3
Author(s): Miguel Oliveira, Tiago Talhada
autogenerated on Mon Mar 2 2015 01:33:02