src/java.desktop/windows/native/libawt/windows/img_util_md.h
branchihse-remove-mapfiles-branch
changeset 56106 40e61db323c2
parent 47216 71c04702a3d5
child 56721 01b558efd286
equal deleted inserted replaced
56105:749e0ffa206f 56106:40e61db323c2
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2001, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    30 #include "colordata.h"
    30 #include "colordata.h"
    31 }
    31 }
    32 #else
    32 #else
    33 #include "colordata.h"
    33 #include "colordata.h"
    34 #endif
    34 #endif
       
    35 #include "jni.h"
    35 
    36 
    36 #ifdef __cplusplus
    37 #ifdef __cplusplus
    37 extern "C" {
    38 extern "C" {
    38 #endif
    39 #endif
    39 
    40 
    92 extern const char *cubemapArray;
    93 extern const char *cubemapArray;
    93 #define CUBEMAP(r,g,b) \
    94 #define CUBEMAP(r,g,b) \
    94     ((dstLockInfo.inv_cmap)[(((r)>>3)<<10) | (((g)>>3)<<5) | ((b)>>3)])
    95     ((dstLockInfo.inv_cmap)[(((r)>>3)<<10) | (((g)>>3)<<5) | ((b)>>3)])
    95 
    96 
    96 extern void freeICMColorData(ColorData *pData);
    97 extern void freeICMColorData(ColorData *pData);
    97 extern void initInverseGrayLut(int* prgb, int rgbsize, ColorData* cData);
    98 JNIEXPORT void initInverseGrayLut(int* prgb, int rgbsize, ColorData* cData);
    98 extern unsigned char* initCubemap(int* cmap, int cmap_len, int cube_dim);
    99 extern unsigned char* initCubemap(int* cmap, int cmap_len, int cube_dim);
    99 extern void initDitherTables(ColorData* cData);
   100 extern void initDitherTables(ColorData* cData);
   100 
   101 
   101 #define SET_CUBEMAPARRAY \
   102 #define SET_CUBEMAPARRAY \
   102     if (lockInfo->lockedLut) { \
   103     if (lockInfo->lockedLut) { \