/* ----------------- */ /* --- nrwrap1.c --- */ /* ----------------- */ /* * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved * Univ Paris Sud XI, CNRS * Distributed under the Boost Software License, Version 1.0 * see accompanying file LICENSE.txt or copy it at * http://www.boost.org/LICENSE_1_0.txt */ /* * 2002/06/11 ajout des fonctions endline */ #include #include #include #include "mypredef.h" #include "nrtype.h" #include "nrdef.h" #include "nrmacro.h" #include "nrkernel.h" #include "nrwrap1.h" /* ------------------ */ /* --- Mapping 1D --- */ /* ------------------ */ #undef type_vector_map_1D_pitch #define type_vector_map_1D_pitch(t) \ t * short_name(t,,vector_map_1D_pitch)(t * v, int32_t nl, int32_t nh, void * data_1D, int32_t pitch) \ { \ v = (t *) data_1D; \ v -= nl; \ return v; \ } type_vector_map_1D_pitch(int8_t); type_vector_map_1D_pitch(uint8_t); type_vector_map_1D_pitch(int16_t); type_vector_map_1D_pitch(uint16_t); type_vector_map_1D_pitch(int32_t); type_vector_map_1D_pitch(uint32_t); type_vector_map_1D_pitch(int64_t); type_vector_map_1D_pitch(uint64_t); type_vector_map_1D_pitch(float); type_vector_map_1D_pitch(double); type_vector_map_1D_pitch(rgb8); type_vector_map_1D_pitch(rgbx8); // Local Variables: // tab-width: 4 // c-basic-offset: 4 // c-file-offsets:((innamespace . 0)(inline-open . 0)) // indent-tabs-mode: nil // End: // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4