/*1* By downloading, copying, installing or using the software you agree to this license.2* If you do not agree to this license, do not download, install,3* copy or use the software.4*5*6* License Agreement7* For Open Source Computer Vision Library8* (3-clause BSD License)9*10* Copyright (C) 2015, NVIDIA Corporation, all rights reserved.11* Third party copyrights are property of their respective owners.12*13* Redistribution and use in source and binary forms, with or without modification,14* are permitted provided that the following conditions are met:15*16* * Redistributions of source code must retain the above copyright notice,17* this list of conditions and the following disclaimer.18*19* * Redistributions in binary form must reproduce the above copyright notice,20* this list of conditions and the following disclaimer in the documentation21* and/or other materials provided with the distribution.22*23* * Neither the names of the copyright holders nor the names of the contributors24* may be used to endorse or promote products derived from this software25* without specific prior written permission.26*27* This software is provided by the copyright holders and contributors "as is" and28* any express or implied warranties, including, but not limited to, the implied29* warranties of merchantability and fitness for a particular purpose are disclaimed.30* In no event shall copyright holders or contributors be liable for any direct,31* indirect, incidental, special, exemplary, or consequential damages32* (including, but not limited to, procurement of substitute goods or services;33* loss of use, data, or profits; or business interruption) however caused34* and on any theory of liability, whether in contract, strict liability,35* or tort (including negligence or otherwise) arising in any way out of36* the use of this software, even if advised of the possibility of such damage.37*/3839#ifndef CAROTENE_SRC_REMAP_HPP40#define CAROTENE_SRC_REMAP_HPP4142#include "common.hpp"4344#include <cmath>4546#ifdef CAROTENE_NEON4748namespace CAROTENE_NS { namespace internal {4950enum51{52BLOCK_SIZE = 3253};545556void remapNearestNeighborReplicate(const Size2D size,57const u8 * srcBase,58const s32 * map,59u8 * dstBase, ptrdiff_t dstStride);6061void remapNearestNeighborConst(const Size2D size,62const u8 * srcBase,63const s32 * map,64u8 * dstBase, ptrdiff_t dstStride,65u8 borderValue);6667void remapLinearReplicate(const Size2D size,68const u8 * srcBase,69const s32 * map,70const f32 * coeffs,71u8 * dstBase, ptrdiff_t dstStride);7273void remapLinearConst(const Size2D size,74const u8 * srcBase,75const s32 * map,76const f32 * coeffs,77u8 * dstBase, ptrdiff_t dstStride,78u8 borderValue);7980} }8182#endif // CAROTENE_NEON8384#endif // CAROTENE_SRC_REMAP_HPP858687