File: altivec_typeconversion.h

package info (click to toggle)
devil 1.6.8-rc2-3%2Blenny1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 10,004 kB
  • ctags: 4,659
  • sloc: ansic: 37,357; sh: 13,641; cpp: 7,193; pascal: 792; makefile: 348; python: 47
file content (28 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 *  altivec_typeconversion.h
 *  DevIL
 *
 *  Created by Meloni Dario on 24/04/05.
 *
 */

#include "altivec_common.h"
#ifdef ALTIVEC_GCC

// data and newdata may be the same buffer

// Used to convert RGB <-> BGR in various data types
void abc2cba_byte( ILubyte *data, ILuint length, ILubyte *newdata );
void abc2cba_short( ILushort *data, ILuint length, ILushort *newdata );
void abc2cba_int( ILuint *data, ILuint length, ILuint *newdata );
#define abc2cba_float(x,y,z) abc2cba_int(((ILuint*)(x)),y,((ILuint*)(z)))
void abc2cba_double( ILdouble *data, ILuint length, ILdouble *newdata );

// Used to convert RGBA <-> BGRA in various data types
void abcd2cbad_byte( ILubyte *data, ILuint length, ILubyte *newdata );
void abcd2cbad_short( ILushort *data, ILuint length, ILushort *newdata );
void abcd2cbad_int( ILuint *data, ILuint length, ILuint *newdata );
#define abcd2cbad_float(x,y,z) abcd2cbad_int(((ILuint*)(x)),y,((ILuint*)(z)))
void abcd2cbad_double( ILdouble *data, ILuint length, ILdouble *newdata );

#endif