/usr/include/cpl_io.h is in libcpl-dev 5.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | /* $Id: cpl_io.h,v 1.16 2010/11/11 09:23:18 llundin Exp $
*
* This file is part of the ESO Common Pipeline Library
* Copyright (C) 2001-2008 European Southern Observatory
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* $Author: llundin $
* $Date: 2010/11/11 09:23:18 $
* $Revision: 1.16 $
* $Name: cpl-5_3_0-BRANCH $
*/
#ifndef CPL_IO_H
#define CPL_IO_H
/*-----------------------------------------------------------------------------
Includes
-----------------------------------------------------------------------------*/
#include <cpl_macros.h>
CPL_BEGIN_DECLS
/*----------------------------------------------------------------------------*/
/**
* @defgroup cpl_io I/O
*
* This module provides definitions related to I/O. The actual I/O functions
* are defined in the respective CPL modules.
*
* @par Synopsis:
* @code
* #include "cpl_io.h"
* @endcode
*/
/*----------------------------------------------------------------------------*/
/**@{*/
/*-----------------------------------------------------------------------------
Defines
-----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/**
*
* @brief These are the file I/O modes.
*/
/*----------------------------------------------------------------------------*/
enum _cpl_io_type_ {
/*
* More modes may be added in the future. To support future combination of
* different modes (using bit-wise or) no mode has the value 1, since this
* makes the (mis)use of logical or detectable.
*/
/** @hideinitializer */
CPL_IO_CREATE = ((unsigned)1 << 1),
/**< Overwrite the file, if it already exists. */
/** @hideinitializer */
CPL_IO_EXTEND = ((unsigned)1 << 2),
/**< Append a new extension to the file. */
/** @hideinitializer */
CPL_IO_APPEND = ((unsigned)1 << 3),
/**< Append to the last data unit of the file. */
/** @hideinitializer */
CPL_IO_MAX = CPL_IO_APPEND,
/**< Reserved for internal CPL usage. */
/** @hideinitializer */
CPL_IO_DEFAULT = ((unsigned)CPL_IO_CREATE)
/**< Deprecated, kept only for backwards compatibility */
};
/**
* @brief
* The file I/O modes.
*/
typedef enum _cpl_io_type_ cpl_io_type;
/*----------------------------------------------------------------------------*/
/**
*
* @brief These are the pixel types that can be used for saving.
*/
/*----------------------------------------------------------------------------*/
enum _cpl_type_bpp_ {
/** @hideinitializer */
CPL_BPP_8_UNSIGNED = 8,
/**< 8-bit unsigned integer */
/** @hideinitializer */
CPL_BPP_16_SIGNED = 16,
/**< 16-bit signed integer */
/** @hideinitializer */
CPL_BPP_16_UNSIGNED = 20,
/**< 16-bit unsigned integer */
/** @hideinitializer */
CPL_BPP_32_SIGNED = 32,
/**< 32-bit signed integer */
/** @hideinitializer */
CPL_BPP_IEEE_FLOAT = -32,
/**< 32-bit floating point */
/** @hideinitializer */
CPL_BPP_IEEE_DOUBLE = -64
/**< 64-bit floating point */
};
/**
* @brief
* The pixel types that can be used for saving.
*/
typedef enum _cpl_type_bpp_ cpl_type_bpp;
/**@}*/
CPL_END_DECLS
#endif /* CPL_IO_H */
|