/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#ifndef SPLASHSCREEN_GFX_H
#define SPLASHSCREEN_GFX_H
/* splashscreen_gfx is a general purpose code for converting pixmaps between various visuals
it is not very effective, but is universal and concise */
#include "splashscreen_config.h"
enum
{
// will behave identical to _LSBFIRST or _MSBFIRST,
// but more effective
};
enum
{
};
typedef struct DitherSettings
{
int numColors;
/* this structure is similar to Xlib's Visual */
typedef struct ImageFormat
{
// for indexed color, may be used when pre-decoding the colormap
// when colormap is non-NULL, the source color is an index to a colormap, and
// use a more-than-max value when you don't need transparency.
int premultiplied;
} ImageFormat;
/* this structure defines a rectangular portion of an image buffer. height and/or width may be inverted. */
typedef struct ImageRect
{
} ImageRect;
enum
{
};
#define QUAD_BLUE_SHIFT 0
#define MAKE_QUAD(r,g,b,a) \
(((a)<<QUAD_ALPHA_SHIFT)&QUAD_ALPHA_MASK)| \
(((r)<<QUAD_RED_SHIFT)&QUAD_RED_MASK)| \
(((g)<<QUAD_GREEN_SHIFT)&QUAD_GREEN_MASK)| \
(((b)<<QUAD_BLUE_SHIFT)&QUAD_BLUE_MASK) \
/* alpha testing threshold. what's >= the threshold is considered non-transparent when doing
BitmapToYXBandedRectangles */
int platformByteOrder();
#endif