430N/A/*
2362N/A * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
430N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
430N/A *
430N/A * This code is free software; you can redistribute it and/or modify it
430N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
430N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
430N/A *
430N/A * This code is distributed in the hope that it will be useful, but WITHOUT
430N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
430N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
430N/A * version 2 for more details (a copy is included in the LICENSE file that
430N/A * accompanied this code).
430N/A *
430N/A * You should have received a copy of the GNU General Public License version
430N/A * 2 along with this work; if not, write to the Free Software Foundation,
430N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
430N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
430N/A */
430N/A
430N/A#ifndef D3DBufImgOps_h_Included
430N/A#define D3DBufImgOps_h_Included
430N/A
430N/A#include "D3DContext.h"
430N/A
430N/A/**************************** ConvolveOp support ****************************/
430N/A
430N/A/**
430N/A * Flags that can be bitwise-or'ed together to control how the shader
430N/A * source code is generated.
430N/A */
430N/A#define CONVOLVE_EDGE_ZERO_FILL (1 << 0)
430N/A#define CONVOLVE_5X5 (1 << 1)
430N/A#define MAX_CONVOLVE (1 << 2)
430N/A
430N/AHRESULT D3DBufImgOps_EnableConvolveOp(D3DContext *oglc, jlong pSrcOps,
430N/A jboolean edgeZeroFill,
430N/A jint kernelWidth, jint KernelHeight,
430N/A unsigned char *kernelVals);
430N/AHRESULT D3DBufImgOps_DisableConvolveOp(D3DContext *oglc);
430N/A
430N/A/**************************** RescaleOp support *****************************/
430N/A
430N/A/**
430N/A * Flags that can be bitwise-or'ed together to control how the shader
430N/A * source code is generated.
430N/A */
430N/A#define RESCALE_NON_PREMULT (1 << 0)
430N/A#define MAX_RESCALE (1 << 1)
430N/A
430N/AHRESULT D3DBufImgOps_EnableRescaleOp(D3DContext *oglc,
430N/A jboolean nonPremult,
430N/A unsigned char *scaleFactors,
430N/A unsigned char *offsets);
430N/AHRESULT D3DBufImgOps_DisableRescaleOp(D3DContext *oglc);
430N/A
430N/A/**************************** LookupOp support ******************************/
430N/A
430N/A/**
430N/A * Flags that can be bitwise-or'ed together to control how the shader
430N/A * source code is generated.
430N/A */
430N/A#define LOOKUP_USE_SRC_ALPHA (1 << 0)
430N/A#define LOOKUP_NON_PREMULT (1 << 1)
430N/A#define MAX_LOOKUP (1 << 2)
430N/A
430N/AHRESULT D3DBufImgOps_EnableLookupOp(D3DContext *oglc,
430N/A jboolean nonPremult, jboolean shortData,
430N/A jint numBands, jint bandLength, jint offset,
430N/A void *tableValues);
430N/AHRESULT D3DBufImgOps_DisableLookupOp(D3DContext *oglc);
430N/A
430N/A#endif /* D3DBufImgOps_h_Included */