| 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 | |
|---|
| 16 | // ------------------------------- // |
|---|
| 17 | // --- vector_map (allocation) --- // |
|---|
| 18 | // ------------------------------- // |
|---|
| 19 | |
|---|
| 20 | // map allocation = nothing to do in 1D |
|---|
| 21 | |
|---|
| 22 | IMAGE_EXPORT(sint8*) si8vector_map(int nl, int nh); |
|---|
| 23 | IMAGE_EXPORT(uint8*) ui8vector_map(int nl, int nh); |
|---|
| 24 | IMAGE_EXPORT(sint16*) si16vector_map(int nl, int nh); |
|---|
| 25 | IMAGE_EXPORT(uint16*) ui16vector_map(int nl, int nh); |
|---|
| 26 | IMAGE_EXPORT(sint32*) si32vector_map(int nl, int nh); |
|---|
| 27 | IMAGE_EXPORT(uint32*) ui32vector_map(int nl, int nh); |
|---|
| 28 | |
|---|
| 29 | IMAGE_EXPORT(float32*) f32vector_map(int nl, int nh); |
|---|
| 30 | IMAGE_EXPORT(float64*) f64vector_map(int nl, int nh); |
|---|
| 31 | |
|---|
| 32 | IMAGE_EXPORT(rgb8*) rgb8vector_map(int nl, int nh); |
|---|
| 33 | IMAGE_EXPORT(rgbx8*) rgbx8vector_map(int nl, int nh); |
|---|
| 34 | |
|---|
| 35 | // ------------------ // |
|---|
| 36 | // --- Mapping 1D --- // |
|---|
| 37 | // ------------------ // |
|---|
| 38 | |
|---|
| 39 | IMAGE_EXPORT(sint8*) si8vector_map_1D_pitch(sint8 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 40 | IMAGE_EXPORT(uint8*) ui8vector_map_1D_pitch(uint8 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 41 | IMAGE_EXPORT(sint16*) si16vector_map_1D_pitch(sint16 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 42 | IMAGE_EXPORT(uint16*) ui16vector_map_1D_pitch(uint16 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 43 | IMAGE_EXPORT(sint32*) si32vector_map_1D_pitch(sint32 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 44 | IMAGE_EXPORT(uint32*) ui32vector_map_1D_pitch(uint32 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 45 | |
|---|
| 46 | IMAGE_EXPORT(float32*) f32vector_map_1D_pitch(float32 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 47 | IMAGE_EXPORT(float64*) f64vector_map_1D_pitch(float64 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 48 | |
|---|
| 49 | IMAGE_EXPORT(rgb8*) rgb8vector_map_1D_pitch(rgb8 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 50 | IMAGE_EXPORT(rgbx8*) rgbx8vector_map_1D_pitch(rgbx8 *v, int nl, int nh, void *data_1D, int pitch); |
|---|
| 51 | |
|---|
| 52 | #endif // _NR_WRAP1_H_ |
|---|
| 53 | |
|---|
| 54 | // Local Variables: |
|---|
| 55 | // tab-width: 4 |
|---|
| 56 | // c-basic-offset: 4 |
|---|
| 57 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
|---|
| 58 | // indent-tabs-mode: nil |
|---|
| 59 | // End: |
|---|
| 60 | |
|---|
| 61 | // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
|---|
| 62 | |
|---|