1
/***************************************************************************
2
ADM_resizebis.hxx - description
4
begin : Sun Mar 24 2002
5
copyright : (C) 2002 by mean
6
email : fixounet@free.fr
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#ifndef __RESIZE_B_SUPPORT
19
#define __RESIZE_B_SUPPORT
22
double (*f) (double x);
26
INT *GetResamplingPattern(uint32_t original_width,
27
uint32_t target_width, ResampleFunc * func);
29
INT *GetResamplingPatternFIR4(uint32_t original_width,
30
uint32_t target_width, ResampleFunc * func);
32
static inline uint8_t PixelClip(int16_t in)
41
static inline unsigned char ScaledPixelClip(INT i)
43
return PixelClip(((i +32768) >> 16)); // + 32768
46
static inline unsigned char ScaledPixelClip8(int16_t i)
48
return PixelClip(((i +256) >> 8)); // + 32768