[772] | 1 | /* ----------------- */ |
---|
| 2 | /* --- nrwrap1.h --- */ |
---|
| 3 | /* ----------------- */ |
---|
| 4 | |
---|
| 5 | /* |
---|
| 6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
| 7 | * Univ Paris Sud XI, CNRS |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | #ifndef _NR_WRAP1_H_ |
---|
| 13 | #define _NR_WRAP1_H_ |
---|
| 14 | |
---|
| 15 | #ifdef __cplusplus |
---|
| 16 | #pragma message ("C++") |
---|
| 17 | extern "C" { |
---|
| 18 | #endif |
---|
| 19 | |
---|
| 20 | #ifdef VERBOSE_PRAGMA |
---|
| 21 | //#pragma message ("- *** include nrwrap1.h ***") |
---|
| 22 | #endif |
---|
| 23 | |
---|
| 24 | // ------------------------------- // |
---|
| 25 | // --- vector_map (allocation) --- // |
---|
| 26 | // ------------------------------- // |
---|
| 27 | |
---|
| 28 | // map allocation = nothing to do in 1D |
---|
| 29 | |
---|
| 30 | IMAGE_EXPORT(sint8*) si8vector_map(int nl, int nh); |
---|
| 31 | IMAGE_EXPORT(uint8*) ui8vector_map(int nl, int nh); |
---|
| 32 | IMAGE_EXPORT(sint16*) si16vector_map(int nl, int nh); |
---|
| 33 | IMAGE_EXPORT(uint16*) ui16vector_map(int nl, int nh); |
---|
| 34 | IMAGE_EXPORT(sint32*) si32vector_map(int nl, int nh); |
---|
| 35 | IMAGE_EXPORT(uint32*) ui32vector_map(int nl, int nh); |
---|
| 36 | |
---|
| 37 | IMAGE_EXPORT(float32*) f32vector_map(int nl, int nh); |
---|
| 38 | IMAGE_EXPORT(float64*) f64vector_map(int nl, int nh); |
---|
| 39 | |
---|
| 40 | IMAGE_EXPORT(rgb8*) rgb8vector_map(int nl, int nh); |
---|
| 41 | IMAGE_EXPORT(rgbx8*) rgbx8vector_map(int nl, int nh); |
---|
| 42 | |
---|
| 43 | // ------------------ // |
---|
| 44 | // --- Mapping 1D --- // |
---|
| 45 | // ------------------ // |
---|
| 46 | |
---|
| 47 | IMAGE_EXPORT(sint8*) si8vector_map_1D_pitch(sint8 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 48 | IMAGE_EXPORT(uint8*) ui8vector_map_1D_pitch(uint8 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 49 | IMAGE_EXPORT(sint16*) si16vector_map_1D_pitch(sint16 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 50 | IMAGE_EXPORT(uint16*) ui16vector_map_1D_pitch(uint16 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 51 | IMAGE_EXPORT(sint32*) si32vector_map_1D_pitch(sint32 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 52 | IMAGE_EXPORT(uint32*) ui32vector_map_1D_pitch(uint32 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 53 | |
---|
| 54 | IMAGE_EXPORT(float32*) f32vector_map_1D_pitch(float32 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 55 | IMAGE_EXPORT(float64*) f64vector_map_1D_pitch(float64 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 56 | |
---|
| 57 | IMAGE_EXPORT(rgb8*) rgb8vector_map_1D_pitch(rgb8 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 58 | IMAGE_EXPORT(rgbx8*) rgbx8vector_map_1D_pitch(rgbx8 *v, int nl, int nh, void *data_1D, int pitch); |
---|
| 59 | |
---|
| 60 | #ifdef __cplusplus |
---|
| 61 | } |
---|
| 62 | #endif |
---|
| 63 | |
---|
| 64 | #endif // _NR_WRAP1_H_ |
---|