Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/windows/native/sun/java2d/d3d/D3DBufImgOps.h
32288 views
/*1* Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#ifndef D3DBufImgOps_h_Included26#define D3DBufImgOps_h_Included2728#include "D3DContext.h"2930/**************************** ConvolveOp support ****************************/3132/**33* Flags that can be bitwise-or'ed together to control how the shader34* source code is generated.35*/36#define CONVOLVE_EDGE_ZERO_FILL (1 << 0)37#define CONVOLVE_5X5 (1 << 1)38#define MAX_CONVOLVE (1 << 2)3940HRESULT D3DBufImgOps_EnableConvolveOp(D3DContext *oglc, jlong pSrcOps,41jboolean edgeZeroFill,42jint kernelWidth, jint KernelHeight,43unsigned char *kernelVals);44HRESULT D3DBufImgOps_DisableConvolveOp(D3DContext *oglc);4546/**************************** RescaleOp support *****************************/4748/**49* Flags that can be bitwise-or'ed together to control how the shader50* source code is generated.51*/52#define RESCALE_NON_PREMULT (1 << 0)53#define MAX_RESCALE (1 << 1)5455HRESULT D3DBufImgOps_EnableRescaleOp(D3DContext *oglc,56jboolean nonPremult,57unsigned char *scaleFactors,58unsigned char *offsets);59HRESULT D3DBufImgOps_DisableRescaleOp(D3DContext *oglc);6061/**************************** LookupOp support ******************************/6263/**64* Flags that can be bitwise-or'ed together to control how the shader65* source code is generated.66*/67#define LOOKUP_USE_SRC_ALPHA (1 << 0)68#define LOOKUP_NON_PREMULT (1 << 1)69#define MAX_LOOKUP (1 << 2)7071HRESULT D3DBufImgOps_EnableLookupOp(D3DContext *oglc,72jboolean nonPremult, jboolean shortData,73jint numBands, jint bandLength, jint offset,74void *tableValues);75HRESULT D3DBufImgOps_DisableLookupOp(D3DContext *oglc);7677#endif /* D3DBufImgOps_h_Included */787980