Go to the source code of this file.
◆ SWAP
◆ swap_bytes()
Definition at line 28 of file swap_bytes_impl.h.
29{
30 unsigned char *
p =
buf;
31 unsigned char *pend = (
unsigned char*)
buf+samplesize*samplecount;
32 unsigned char tmp;
33
34 if(samplesize < 2)
35 return;
36 switch(samplesize)
37 {
38 case 2:
39#ifdef HAVE_BYTESWAP_H
40 {
44 }
45#else
47 {
49 }
50#endif
51 break;
52 case 3:
54 {
56 }
57 break;
58 case 4:
59#ifdef HAVE_BYTESWAP_H
60 {
64 }
65#else
67 {
70 }
71#endif
72 break;
73 case 8:
74#ifdef HAVE_BYTESWAP_H
75 {
79 }
80#else
82 {
87 }
88#endif
89 break;
90
91 default:
92 for(;
p<pend;
p+=samplesize)
93 {
95 for(
j=0;
j<samplesize/2; ++
j)
96 {
98 }
99 }
100 }
101}
unsigned short int uint16_t
static UInt64_t bswap_64(x) UInt64_t x
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
Referenced by swap_endian().