Lines Matching defs:datatype

53 bytes_per_pixel(GLenum datatype, GLuint comps)
57 if (datatype == GL_UNSIGNED_INT_8_24_REV_MESA ||
58 datatype == GL_UNSIGNED_INT_24_8_MESA)
61 b = _mesa_sizeof_packed_type(datatype);
64 if (_mesa_type_is_packed(datatype))
152 * \param datatype GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, GL_FLOAT, etc.
156 do_row(GLenum datatype, GLuint comps, GLint srcWidth,
170 if (datatype == GL_UNSIGNED_BYTE && comps == 4) {
183 else if (datatype == GL_UNSIGNED_BYTE && comps == 3) {
195 else if (datatype == GL_UNSIGNED_BYTE && comps == 2) {
206 else if (datatype == GL_UNSIGNED_BYTE && comps == 1) {
217 else if (datatype == GL_BYTE && comps == 4) {
230 else if (datatype == GL_BYTE && comps == 3) {
242 else if (datatype == GL_BYTE && comps == 2) {
253 else if (datatype == GL_BYTE && comps == 1) {
264 else if (datatype == GL_UNSIGNED_SHORT && comps == 4) {
277 else if (datatype == GL_UNSIGNED_SHORT && comps == 3) {
289 else if (datatype == GL_UNSIGNED_SHORT && comps == 2) {
300 else if (datatype == GL_UNSIGNED_SHORT && comps == 1) {
311 else if (datatype == GL_SHORT && comps == 4) {
324 else if (datatype == GL_SHORT && comps == 3) {
336 else if (datatype == GL_SHORT && comps == 2) {
347 else if (datatype == GL_SHORT && comps == 1) {
358 else if (datatype == GL_FLOAT && comps == 4) {
375 else if (datatype == GL_FLOAT && comps == 3) {
390 else if (datatype == GL_FLOAT && comps == 2) {
403 else if (datatype == GL_FLOAT && comps == 1) {
414 else if (datatype == GL_HALF_FLOAT_ARB && comps == 4) {
431 else if (datatype == GL_HALF_FLOAT_ARB && comps == 3) {
448 else if (datatype == GL_HALF_FLOAT_ARB && comps == 2) {
465 else if (datatype == GL_HALF_FLOAT_ARB && comps == 1) {
481 else if (datatype == GL_UNSIGNED_INT && comps == 1) {
492 else if (datatype == GL_UNSIGNED_SHORT_5_6_5 && comps == 3) {
517 else if (datatype == GL_UNSIGNED_SHORT_4_4_4_4 && comps == 4) {
547 else if (datatype == GL_UNSIGNED_SHORT_1_5_5_5_REV && comps == 4) {
577 else if (datatype == GL_UNSIGNED_SHORT_5_5_5_1 && comps == 4) {
608 else if (datatype == GL_UNSIGNED_BYTE_3_3_2 && comps == 3) {
634 else if (datatype == MESA_UNSIGNED_BYTE_4_4 && comps == 2) {
655 else if (datatype == GL_UNSIGNED_INT_2_10_10_10_REV && comps == 4) {
686 else if (datatype == GL_UNSIGNED_INT_5_9_9_9_REV && comps == 3) {
705 else if (datatype == GL_UNSIGNED_INT_10F_11F_11F_REV && comps == 3) {
724 else if (datatype == GL_FLOAT_32_UNSIGNED_INT_24_8_REV && comps == 1) {
735 else if (datatype == GL_UNSIGNED_INT_24_8_MESA && comps == 2) {
750 else if (datatype == GL_UNSIGNED_INT_8_24_REV_MESA && comps == 2) {
777 * \param datatype GL pixel type \c GL_UNSIGNED_BYTE, \c GL_UNSIGNED_SHORT,
789 do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth,
801 if ((datatype == GL_UNSIGNED_BYTE) && (comps == 4)) {
812 else if ((datatype == GL_UNSIGNED_BYTE) && (comps == 3)) {
822 else if ((datatype == GL_UNSIGNED_BYTE) && (comps == 2)) {
831 else if ((datatype == GL_UNSIGNED_BYTE) && (comps == 1)) {
839 else if ((datatype == GL_BYTE) && (comps == 4)) {
850 else if ((datatype == GL_BYTE) && (comps == 3)) {
860 else if ((datatype == GL_BYTE) && (comps == 2)) {
869 else if ((datatype == GL_BYTE) && (comps == 1)) {
877 else if ((datatype == GL_UNSIGNED_SHORT) && (comps == 4)) {
888 else if ((datatype == GL_UNSIGNED_SHORT) && (comps == 3)) {
898 else if ((datatype == GL_UNSIGNED_SHORT) && (comps == 2)) {
907 else if ((datatype == GL_UNSIGNED_SHORT) && (comps == 1)) {
915 else if ((datatype == GL_SHORT) && (comps == 4)) {
926 else if ((datatype == GL_SHORT) && (comps == 3)) {
936 else if ((datatype == GL_SHORT) && (comps == 2)) {
945 else if ((datatype == GL_SHORT) && (comps == 1)) {
953 else if ((datatype == GL_FLOAT) && (comps == 4)) {
964 else if ((datatype == GL_FLOAT) && (comps == 3)) {
974 else if ((datatype == GL_FLOAT) && (comps == 2)) {
983 else if ((datatype == GL_FLOAT) && (comps == 1)) {
991 else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 4)) {
1002 else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 3)) {
1012 else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 2)) {
1021 else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 1)) {
1029 else if ((datatype == GL_UNSIGNED_INT) && (comps == 1)) {
1045 else if ((datatype == GL_UNSIGNED_SHORT_5_6_5) && (comps == 3)) {
1083 else if ((datatype == GL_UNSIGNED_SHORT_4_4_4_4) && (comps == 4)) {
1132 else if ((datatype == GL_UNSIGNED_SHORT_1_5_5_5_REV) && (comps == 4)) {
1181 else if ((datatype == GL_UNSIGNED_SHORT_5_5_5_1) && (comps == 4)) {
1230 else if ((datatype == GL_UNSIGNED_BYTE_3_3_2) && (comps == 3)) {
1268 else if (datatype == MESA_UNSIGNED_BYTE_4_4 && comps == 2) {
1296 else if ((datatype == GL_UNSIGNED_INT_2_10_10_10_REV) && (comps == 4)) {
1346 else if (datatype == GL_UNSIGNED_INT_5_9_9_9_REV && comps == 3) {
1373 else if (datatype == GL_UNSIGNED_INT_10F_11F_11F_REV && comps == 3) {
1400 else if (datatype == GL_FLOAT_32_UNSIGNED_INT_24_8_REV && comps == 1) {
1422 make_1d_mipmap(GLenum datatype, GLuint comps, GLint border,
1426 const GLint bpt = bytes_per_pixel(datatype, comps);
1435 do_row(datatype, comps, srcWidth - 2 * border, src, src,
1452 make_2d_mipmap(GLenum datatype, GLuint comps, GLint border,
1458 const GLint bpt = bytes_per_pixel(datatype, comps);
1482 do_row(datatype, comps, srcWidthNB, srcA, srcB,
1506 do_row(datatype, comps, srcWidthNB,
1511 do_row(datatype, comps, srcWidthNB,
1529 do_row(datatype, comps, 1,
1533 do_row(datatype, comps, 1,
1544 make_3d_mipmap(GLenum datatype, GLuint comps, GLint border,
1550 const GLint bpt = bytes_per_pixel(datatype, comps);
1609 do_row_3D(datatype, comps, srcWidthNB,
1627 make_2d_mipmap(datatype, comps, 1,
1631 make_2d_mipmap(datatype, comps, 1,
1674 do_row(datatype, comps, 1, srcA, srcB, 1, dst);
1682 do_row(datatype, comps, 1, srcA, srcB, 1, dst);
1688 do_row(datatype, comps, 1, srcA, srcB, 1, dst);
1694 do_row(datatype, comps, 1, srcA, srcB, 1, dst);
1711 GLenum datatype, GLuint comps,
1724 make_1d_mipmap(datatype, comps, border,
1735 make_2d_mipmap(datatype, comps, border,
1740 make_3d_mipmap(datatype, comps, border,
1750 make_1d_mipmap(datatype, comps, border,
1757 make_2d_mipmap(datatype, comps, border,
1896 GLenum datatype;
1899 _mesa_format_to_type_and_comps(srcImage->TexFormat, &datatype, &comps);
1986 _mesa_generate_mipmap_level(target, datatype, comps, border,
2041 * Then, get number of components, choose temporary image datatype,