- Main Page
- Data Structures
- Files

- File List
- Globals

# E:/DevIL/src-IL/include/altivec_typeconversion.h

    00001 /*
    00002  *  altivec_typeconversion.h
    00003  *  DevIL
    00004  *
    00005  *  Created by Meloni Dario on 24/04/05.
    00006  *
    00007  */
    00008
    00009 #include "altivec_common.h"
    00010 #ifdef ALTIVEC_GCC
    00011
    00012 // data and newdata may be the same buffer
    00013
    00014 // Used to convert RGB <-> BGR in various data types
    00015 void abc2cba_byte( ILubyte *data, ILuint length, ILubyte *newdata );
    00016 void abc2cba_short( ILushort *data, ILuint length, ILushort *newdata );
    00017 void abc2cba_int( ILuint *data, ILuint length, ILuint *newdata );
    00018 #define abc2cba_float(x,y,z) abc2cba_int(((ILuint*)(x)),y,((ILuint*)(z)))
    00019 void abc2cba_double( ILdouble *data, ILuint length, ILdouble *newdata );
    00020
    00021 // Used to convert RGBA <-> BGRA in various data types
    00022 void abcd2cbad_byte( ILubyte *data, ILuint length, ILubyte *newdata );
    00023 void abcd2cbad_short( ILushort *data, ILuint length, ILushort *newdata );
    00024 void abcd2cbad_int( ILuint *data, ILuint length, ILuint *newdata );
    00025 #define abcd2cbad_float(x,y,z) abcd2cbad_int(((ILuint*)(x)),y,((ILuint*)(z)))
    00026 void abcd2cbad_double( ILdouble *data, ILuint length, ILdouble *newdata );
    00027
    00028 #endif