0N/A/*
2362N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A
0N/A#ifndef __MLIB_IMAGE_LOOKUP_FUNC_INTENAL_H
0N/A#define __MLIB_IMAGE_LOOKUP_FUNC_INTENAL_H
0N/A
0N/A#include "mlib_ImageCopy.h"
0N/A
0N/A#ifdef __cplusplus
0N/Aextern "C" {
0N/A#endif /* __cplusplus */
0N/A
0N/A#ifdef _MSC_VER
0N/A/* Microsoft VC 6.0 compiler assumes that pointer fit into long
0N/A and therefore array's index may not exceed MAX_INT/sizeof(data_type).
0N/A
0N/A TABLE_SHIFT_32 is used as index in arrays of types up to mlib_d64
0N/A (see mlib_ImageLookUp_S32_D64 for instance) and therefore must not
0N/A exceed ((2^33/sizeof(mlib_d64)) - 1) */
0N/A#define TABLE_SHIFT_S32 (mlib_u32) 536870911
0N/A#else
0N/A#define TABLE_SHIFT_S32 536870911u
0N/A#endif /* _MSC_VER */
0N/A
0N/A
0N/A/* mlib_ImageLookUp_64.c */
0N/A
0N/Avoid mlib_ImageLookUp_U8_D64(const mlib_u8 *src,
0N/A mlib_s32 slb,
0N/A mlib_d64 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 csize,
0N/A const mlib_d64 **table);
0N/A
0N/Avoid mlib_ImageLookUp_S16_D64(const mlib_s16 *src,
0N/A mlib_s32 slb,
0N/A mlib_d64 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 csize,
0N/A const mlib_d64 **table);
0N/A
0N/Avoid mlib_ImageLookUp_U16_D64(const mlib_u16 *src,
0N/A mlib_s32 slb,
0N/A mlib_d64 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 csize,
0N/A const mlib_d64 **table);
0N/A
0N/Avoid mlib_ImageLookUp_S32_D64(const mlib_s32 *src,
0N/A mlib_s32 slb,
0N/A mlib_d64 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 csize,
0N/A const mlib_d64 **table);
0N/A
0N/Avoid mlib_ImageLookUpSI_U8_D64(const mlib_u8 *src,
0N/A mlib_s32 slb,
0N/A mlib_d64 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 csize,
0N/A const mlib_d64 **table);
0N/A
0N/Avoid mlib_ImageLookUpSI_S16_D64(const mlib_s16 *src,
0N/A mlib_s32 slb,
0N/A mlib_d64 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 csize,
0N/A const mlib_d64 **table);
0N/A
0N/Avoid mlib_ImageLookUpSI_U16_D64(const mlib_u16 *src,
0N/A mlib_s32 slb,
0N/A mlib_d64 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 csize,
0N/A const mlib_d64 **table);
0N/A
0N/Avoid mlib_ImageLookUpSI_S32_D64(const mlib_s32 *src,
0N/A mlib_s32 slb,
0N/A mlib_d64 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 csize,
0N/A const mlib_d64 **table);
0N/A
0N/A/* mlib_ImageLookUp_Bit.c */
0N/A
0N/Amlib_status mlib_ImageLookUp_Bit_U8_1(const mlib_u8 *src,
0N/A mlib_s32 slb,
0N/A mlib_u8 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 nchan,
0N/A mlib_s32 bitoff,
0N/A const mlib_u8 **table);
0N/A
0N/Amlib_status mlib_ImageLookUp_Bit_U8_2(const mlib_u8 *src,
0N/A mlib_s32 slb,
0N/A mlib_u8 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 nchan,
0N/A mlib_s32 bitoff,
0N/A const mlib_u8 **table);
0N/A
0N/Amlib_status mlib_ImageLookUp_Bit_U8_3(const mlib_u8 *src,
0N/A mlib_s32 slb,
0N/A mlib_u8 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 nchan,
0N/A mlib_s32 bitoff,
0N/A const mlib_u8 **table);
0N/A
0N/Amlib_status mlib_ImageLookUp_Bit_U8_4(const mlib_u8 *src,
0N/A mlib_s32 slb,
0N/A mlib_u8 *dst,
0N/A mlib_s32 dlb,
0N/A mlib_s32 xsize,
0N/A mlib_s32 ysize,
0N/A mlib_s32 nchan,
0N/A mlib_s32 bitoff,
0N/A const mlib_u8 **table);
0N/A
0N/A#ifdef __cplusplus
0N/A}
0N/A#endif /* __cplusplus */
0N/A#endif /* __MLIB_IMAGE_LOOKUP_FUNC_INTENAL_H */