/usr/include/aqsis/ri/ndspy.h is in libaqsis-dev 1.8.2-3.
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 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | /* Aqsis
// Copyright (C) 1997 - 2001, Paul C. Gregory
//
// Contact: pgregory@aqsis.org
//
// This library 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 library 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 library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/** \file
* \brief Renderman display driver interface.
*
* This file defines prototypes, typedefs, macros etc for the "standard"
* renderman display driver interface.
*
* \author Paul C. Gregory (pgregory@aqsis.org)
*
* ===================================================================
* C-compatible header. C++ constructs must be preprocessor-protected.
* ===================================================================
*/
#ifndef NDSPY_H_INCLUDED
#define NDSPY_H_INCLUDED
#include <aqsis/aqsis.h>
#include <stdio.h>
#include <stdlib.h>
#include <aqsis/ri/ritypes.h>
typedef double PtDspyFloat64;
typedef float PtDspyFloat32;
#if defined(__mips) || defined(__mips64) || defined(__sparc)
# define PkDspyByteOrderNative PkDspyByteOrderHiLo
#else
# define PkDspyByteOrderNative PkDspyByteOrderLoHi
#endif
typedef TqUint32 PtDspyUnsigned32;
typedef TqInt32 PtDspySigned32;
typedef TqUint16 PtDspyUnsigned16;
typedef TqInt16 PtDspySigned16;
typedef TqUint8 PtDspyUnsigned8;
typedef TqInt8 PtDspySigned8;
typedef PtDspyUnsigned32 PtDspyMsgLen;
typedef PtDspyUnsigned32 PtDspyServerMessage;
// Format types
#define PkDspyNone 0
#define PkDspyFloat32 1
#define PkDspyUnsigned32 2
#define PkDspySigned32 3
#define PkDspyUnsigned16 4
#define PkDspySigned16 5
#define PkDspyUnsigned8 6
#define PkDspySigned8 7
#define PkDspyString 8
#define PkDspyMatrix 9
#define PkDspyArrayBegin 10
#define PkDspyArrayEnd 11
#define PkDspyMaskType 8191
#define PkDspyMaskOrder (PkDspyByteOrderHiLo | PkDspyByteOrderLoHi)
#define PkDspyShiftOrder 13
#define PkDspyByteOrderHiLo 8192
#define PkDspyByteOrderLoHi 16384
typedef struct
{
char *name;
unsigned type;
}
PtDspyDevFormat;
typedef struct
{
PtDspyUnsigned32 width;
PtDspyUnsigned32 height;
PtDspyFloat32 aspectRatio;
}
PtDspySizeInfo;
typedef struct
{
PtDspyUnsigned8 overwrite;
PtDspyUnsigned8 interactive;
}
PtDspyOverwriteInfo;
typedef enum
{
PkSizeQuery,
PkOverwriteQuery,
} PtDspyQueryType;
typedef enum
{
PkDspyErrorNone = 0,
PkDspyErrorNoMemory,
PkDspyErrorUnsupported,
PkDspyErrorBadParams,
PkDspyErrorNoResource,
PkDspyErrorUndefined
} PtDspyError;
#define PkDspyFlagsWantsScanLineOrder 1
#define PkDspyFlagsWantsEmptyBuckets 2
#define PkDspyFlagsWantsNullEmptyBuckets 4
typedef struct
{
int flags;
}
PtFlagStuff;
typedef void *PtDspyImageHandle;
typedef void * PtDspyChannel;
typedef void * PtDspyOutput;
typedef struct uparam
{
RtToken name;
char vtype, vcount;
RtPointer value;
int nbytes;
}
UserParameter;
typedef PtDspyError (*DspyImageOpenMethod)(PtDspyImageHandle*,const char*,const char*,int,int,int,const UserParameter*,int,PtDspyDevFormat*,PtFlagStuff*);
typedef PtDspyError (*DspyImageQueryMethod)(PtDspyImageHandle,PtDspyQueryType,size_t,void*);
typedef PtDspyError (*DspyImageDataMethod)(PtDspyImageHandle,int,int,int,int,int,const unsigned char*);
typedef PtDspyError (*DspyImageCloseMethod)(PtDspyImageHandle);
typedef PtDspyError (*DspyImageDelayCloseMethod)(PtDspyImageHandle);
// Only define these functions if we are being used in a display
#ifndef DSPY_INTERNAL
#ifdef __cplusplus
extern "C"
{
#endif
void DspyPrintFormat(FILE *fp,PtDspyDevFormat *format,int formatCount);
PtDspyDevFormat *DspyCopyDevFormat(PtDspyDevFormat *f,int fc);
AQSIS_EXPORT PtDspyError DspyImageOpen(PtDspyImageHandle * image,
const char *drivername,
const char *filename,
int width,
int height,
int paramCount,
const UserParameter *parameters,
int iFormatCount,
PtDspyDevFormat *format,
PtFlagStuff *flagstuff);
AQSIS_EXPORT PtDspyError DspyImageData(PtDspyImageHandle image,
int xmin,
int xmaxplus1,
int ymin,
int ymaxplus1,
int entrysize,
const unsigned char *data);
AQSIS_EXPORT PtDspyError DspyImageClose(PtDspyImageHandle);
AQSIS_EXPORT PtDspyError DspyImageDelayClose(PtDspyImageHandle);
AQSIS_EXPORT PtDspyError DspyImageQuery(PtDspyImageHandle image,
PtDspyQueryType type,
size_t size,
void *data);
#ifdef __cplusplus
}
#endif
#endif // DSPY_INTERNAL
#endif // NDSPY_H_INCLUDED
|