< prev index next >

src/java.desktop/share/native/libmlib_image/mlib_c_ImageConvVersion.c

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 49,61 **** mlib_s32 mlib_ImageConvVersion(mlib_s32 m, mlib_s32 n, mlib_s32 scale, mlib_type type) { - #ifdef __sparc - return 0; - #else mlib_d64 dscale = 1.0 / (1 << scale); /* 16 < scale <= 31 */ if (type == MLIB_BYTE) { if ((m * n * dscale * 32768.0) > MAX_U8) return 0; --- 49,58 ----
*** 67,75 **** return 0; return 2; } else return 0; - #endif /* __sparc */ } /***************************************************************/ --- 64,71 ----
< prev index next >