< prev index next >

src/java.desktop/share/native/common/awt/medialib/mlib_ImageCreate.c

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2013, 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) 1997, 2018, 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
*** 225,235 **** return image; } /***************************************************************/ ! JNIEXPORT mlib_image* JNICALL mlib_ImageCreateStruct(mlib_type type, mlib_s32 channels, mlib_s32 width, mlib_s32 height, mlib_s32 stride, const void *data) --- 225,236 ---- return image; } /***************************************************************/ ! JNIEXPORT ! mlib_image* mlib_ImageCreateStruct(mlib_type type, mlib_s32 channels, mlib_s32 width, mlib_s32 height, mlib_s32 stride, const void *data)
*** 251,261 **** return image; } /***************************************************************/ ! JNIEXPORT mlib_image* JNICALL mlib_ImageCreate(mlib_type type, mlib_s32 channels, mlib_s32 width, mlib_s32 height) { mlib_image *image; --- 252,263 ---- return image; } /***************************************************************/ ! JNIEXPORT ! mlib_image* mlib_ImageCreate(mlib_type type, mlib_s32 channels, mlib_s32 width, mlib_s32 height) { mlib_image *image;
*** 350,360 **** return image; } /***************************************************************/ ! JNIEXPORT void JNICALL mlib_ImageDelete(mlib_image *img) { if (img == NULL) return; if ((img -> flags & MLIB_IMAGE_USERALLOCATED) == 0) { mlib_free(img -> data); } --- 352,363 ---- return image; } /***************************************************************/ ! JNIEXPORT ! void mlib_ImageDelete(mlib_image *img) { if (img == NULL) return; if ((img -> flags & MLIB_IMAGE_USERALLOCATED) == 0) { mlib_free(img -> data); }
< prev index next >