floatfield.h
Go to the documentation of this file.00001 /*######################################################################## 00002 00003 The contents of this file are subject to the Mozilla Public License 00004 Version 1.0(the "License"); You may NOT use this file except in 00005 compliance with the License. You may obtain a copy of the License at 00006 http:// www.mozilla.org/MPL/ 00007 Software distributed under the License is distributed on an "AS IS" 00008 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 00009 the License for the specific language governing rights and limitations 00010 under the License. 00011 00012 The Initial Developer of the Original Code is Shivang Patel. 00013 00014 Copyright(C) 2002-2003. All Rights Reserved. 00015 00016 Authors: Shivang Patel 00017 Jaap de Haan(jdh) 00018 00019 ########################################################################*/ 00020 00021 #if !defined FVS__FLOAT_FIELD_HEADER__INCLUDED__ 00022 #define FVS__FLOAT_FIELD_HEADER__INCLUDED__ 00023 00024 /* basic type definitions */ 00025 #include "fvstypes.h" 00026 00027 00033 typedef /*@mutable@*/ FvsHandle_t FvsFloatField_t; 00034 00035 00040 /*@only@*/ /*@null@*/ FvsFloatField_t FloatFieldCreate(void); 00041 00042 00048 void FloatFieldDestroy(/*@only@*/ /*@out@*/ /*@null@*/ FvsFloatField_t field); 00049 00050 00060 FvsError_t FloatFieldSetSize(FvsFloatField_t field, const FvsInt_t width, const FvsInt_t height); 00061 00062 00070 FvsError_t FloatFieldCopy(FvsFloatField_t destination, const FvsFloatField_t source); 00071 00072 00079 FvsError_t FloatFieldClear(FvsFloatField_t field); 00080 00081 00088 FvsError_t FloatFieldFlood(FvsFloatField_t field, const FvsFloat_t value); 00089 00090 00099 void FloatFieldSetValue(FvsFloatField_t field, const FvsInt_t x, const FvsInt_t y, const FvsFloat_t val); 00100 00101 00109 FvsFloat_t FloatFieldGetValue(const FvsFloatField_t field, const FvsInt_t x, const FvsInt_t y); 00110 00111 00117 /*@exposed@*/ /*@null@*/ FvsFloat_t* FloatFieldGetBuffer(FvsFloatField_t field); 00118 00119 00125 FvsInt_t FloatFieldGetWidth(const FvsFloatField_t field); 00126 00127 00133 FvsInt_t FloatFieldGetHeight(const FvsFloatField_t field); 00134 00135 00143 FvsInt_t FloatFieldGetPitch(const FvsFloatField_t field); 00144 00145 00146 00147 #endif /* FVS__IMAGE_HEADER__INCLUDED__ */ 00148