00001 /************************************************************************************************** 00002 Software License Agreement (BSD License) 00003 00004 Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt 00005 All rights reserved. 00006 00007 Redistribution and use in source and binary forms, with or without modification, are permitted 00008 provided that the following conditions are met: 00009 00010 *Redistributions of source code must retain the above copyright notice, this list of 00011 conditions and the following disclaimer. 00012 *Redistributions in binary form must reproduce the above copyright notice, this list of 00013 conditions and the following disclaimer in the documentation and/or other materials provided 00014 with the distribution. 00015 *Neither the name of the University of Aveiro nor the names of its contributors may be used to 00016 endorse or promote products derived from this software without specific prior written permission. 00017 00018 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 00019 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 00020 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 00021 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00022 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00023 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 00024 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00025 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 ***************************************************************************************************/ 00031 #ifndef PGR_REGISTERS_H 00032 #define PGR_REGISTERS_H 00033 00039 //============================================================================= 00040 // Copyright © 2007 Point Grey Research, Inc. All Rights Reserved. 00041 // 00042 // This software is the confidential and proprietary information of Point 00043 // Grey Research, Inc. ("Confidential Information"). You shall not 00044 // disclose such Confidential Information and shall use it only in 00045 // accordance with the terms of the license agreement you entered into 00046 // with Point Grey Research Inc. 00047 // 00048 // PGR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE 00049 // SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 00050 // IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 00051 // PURPOSE, OR NON-INFRINGEMENT. PGR SHALL NOT BE LIABLE FOR ANY DAMAGES 00052 // SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING 00053 // THIS SOFTWARE OR ITS DERIVATIVES. 00054 // 00055 //============================================================================= 00056 00057 //============================================================================= 00058 // 00059 // pgr_registers.h 00060 // 00061 //============================================================================= 00062 00063 //============================================================================= 00064 // System Includes 00065 //============================================================================= 00066 #include <dc1394/control.h> 00067 #include <dc1394/conversions.h> 00068 00069 //============================================================================= 00070 // PGR Includes 00071 //============================================================================= 00072 00073 // PGR specific register that contains the Bayer Tile mapping information 00074 #define BAYER_TILE_MAPPING_REGISTER (0x1040) 00075 #define SENSOR_BOARD_INFO_REGISTER (0x1f28) 00076 #define IMAGE_DATA_FORMAT_REGISTER (0x1048) 00077 00078 //============================================================================= 00079 // Name: getSensorInfo 00080 // 00081 // Input: 00082 // camera - The camera to be queried 00083 // 00084 // Output: 00085 // pbColor - Is the camera color? 00086 // pnRows - Number of rows in image resolution 00087 // pnCols - Number of columns in image resolution 00088 // 00089 // Description: 00090 // This function queries the PGR registers that identify the sensor info. 00091 // This is a PGR specific register query. 00092 // 00093 //============================================================================= 00094 dc1394error_t 00095 getSensorInfo( dc1394camera_t* camera, 00096 bool* pbColor, 00097 unsigned int* pnRows, 00098 unsigned int* pnCols ); 00099 00100 //============================================================================= 00101 // Name: setEndian 00102 // 00103 // Input: 00104 // camera - The camera to be queried 00105 // 00106 // Output: 00107 // bBigEndian - "true" means transmit 16-bit data in big endian 00108 // (DCAM-compliant) mode 00109 // - "false" means transmit 16-bit data in little endian mode 00110 // which allows the buffers to be directly cast into unsigned 00111 // short on Intel-based PC platforms 00112 // 00113 // Description: 00114 // 00115 //============================================================================= 00116 dc1394error_t 00117 setEndian( dc1394camera_t* camera, 00118 bool bBigEndian ); 00119 00120 //============================================================================= 00121 // Name: getBayerTile 00122 // 00123 // Input: 00124 // camera - The camera to be queried 00125 // 00126 // Output: 00127 // bayerTile - Returns with the Bayer tile pattern 00128 // 00129 // Description: 00130 // This function queries the PGR registers that identify the bayer tile 00131 // pattern for a bayer camera. 00132 // 00133 //============================================================================= 00134 dc1394error_t 00135 getBayerTile( dc1394camera_t* camera, 00136 dc1394color_filter_t* bayerPattern ); 00137 00138 #endif 00139 00142 /*Previous 3 lines appended automatically on Wed Jun 9 00:11:56 WEST 2010 */