Lines Matching refs:gl_format

739 DownSamplePixelDataI(unsigned int gl_format, int width, int height, int ds,  in DownSamplePixelDataI()  argument
748 switch(gl_format) in DownSamplePixelDataI()
752 step = ds * (gl_format == GL_LUMINANCE? 1: 2); in DownSamplePixelDataI()
764 step = ds * (gl_format == GL_RGB? 3: 4); in DownSamplePixelDataI()
778 step = ds * (gl_format == GL_BGR? 3: 4); in DownSamplePixelDataI()
803 DownSamplePixelDataI2F(unsigned int gl_format, int width, int height, int ds, in DownSamplePixelDataI2F() argument
813 switch(gl_format) in DownSamplePixelDataI2F()
817 step = ds * (gl_format == GL_LUMINANCE? 1: 2); in DownSamplePixelDataI2F()
829 step = ds * (gl_format == GL_RGB? 3: 4); in DownSamplePixelDataI2F()
843 step = ds * (gl_format == GL_BGR? 3: 4); in DownSamplePixelDataI2F()
859 int GLTexInput::DownSamplePixelDataF(unsigned int gl_format, int width, int height, int ds, const f… in DownSamplePixelDataF() argument
867 switch(gl_format) in DownSamplePixelDataF()
871 step = ds * (gl_format == GL_LUMINANCE? 1: 2); in DownSamplePixelDataF()
883 step = ds * (gl_format == GL_RGB? 3: 4); in DownSamplePixelDataF()
895 step = ds * (gl_format == GL_BGR? 3: 4); in DownSamplePixelDataF()
914 unsigned int gl_format, unsigned int gl_type ) in SetImageData() argument
916 int simple_format = IsSimpleGlFormat(gl_format, gl_type);//no cpu code to handle other formats in SetImageData()
976 }else if(_down_sampled > 0 || gl_format != GL_LUMINANCE || gl_type != GL_FLOAT) in SetImageData()
980 DownSamplePixelDataI2F(gl_format, width, height, 1<<_down_sampled, in SetImageData()
983 DownSamplePixelDataI2F(gl_format, width, height, 1<<_down_sampled, in SetImageData()
986 …DownSamplePixelDataF(gl_format, width, height, 1<<_down_sampled, (float*)data, _converted_data, sk… in SetImageData()
1014 …if(simple_format && ( _down_sampled> 0 || (gl_format != GL_LUMINANCE && GlobalUtil::_PreProcessOnC… in SetImageData()
1020 …DownSamplePixelDataI(gl_format, width, height, 1<<_down_sampled, ((const unsigned char*) data), ne… in SetImageData()
1028 …DownSamplePixelDataI(gl_format, width, height, 1<<_down_sampled, ((const unsigned short*) data), n… in SetImageData()
1037 DownSamplePixelDataF(gl_format, width, height, 1<<_down_sampled, (float*)data, newdata); in SetImageData()
1052 if(gl_format == GL_LUMINANCE || gl_format == GL_LUMINANCE_ALPHA) in SetImageData()
1056 _imgWidth, _imgHeight, 0, gl_format, gl_type, data); in SetImageData()
1062 … glTexImage2D(_texTarget, 0, _iTexFormat, _imgWidth, _imgHeight, 0, gl_format, gl_type, data); in SetImageData()