Home | History | Annotate | Download | only in main

Lines Matching refs:datatype

46 bytes_per_pixel(GLenum datatype, GLuint comps)
50 if (datatype == GL_UNSIGNED_INT_8_24_REV_MESA ||
51 datatype == GL_UNSIGNED_INT_24_8_MESA)
54 b = _mesa_sizeof_packed_type(datatype);
57 if (_mesa_type_is_packed(datatype))
145 * \param datatype GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, GL_FLOAT, etc.
149 do_row(GLenum datatype, GLuint comps, GLint srcWidth,
163 if (datatype == GL_UNSIGNED_BYTE && comps == 4) {
176 else if (datatype == GL_UNSIGNED_BYTE && comps == 3) {
188 else if (datatype == GL_UNSIGNED_BYTE && comps == 2) {
199 else if (datatype == GL_UNSIGNED_BYTE && comps == 1) {
210 else if (datatype == GL_BYTE && comps == 4) {
223 else if (datatype == GL_BYTE && comps == 3) {
235 else if (datatype == GL_BYTE && comps == 2) {
246 else if (datatype == GL_BYTE && comps == 1) {
257 else if (datatype == GL_UNSIGNED_SHORT && comps == 4) {
270 else if (datatype == GL_UNSIGNED_SHORT && comps == 3) {
282 else if (datatype == GL_UNSIGNED_SHORT && comps == 2) {
293 else if (datatype == GL_UNSIGNED_SHORT && comps == 1) {
304 else if (datatype == GL_SHORT && comps == 4) {
317 else if (datatype == GL_SHORT && comps == 3) {
329 else if (datatype == GL_SHORT && comps == 2) {
340 else if (datatype == GL_SHORT && comps == 1) {
351 else if (datatype == GL_FLOAT && comps == 4) {
368 else if (datatype == GL_FLOAT && comps == 3) {
383 else if (datatype == GL_FLOAT && comps == 2) {
396 else if (datatype == GL_FLOAT && comps == 1) {
407 else if (datatype == GL_HALF_FLOAT_ARB && comps == 4) {
424 else if (datatype == GL_HALF_FLOAT_ARB && comps == 3) {
441 else if (datatype == GL_HALF_FLOAT_ARB && comps == 2) {
458 else if (datatype == GL_HALF_FLOAT_ARB && comps == 1) {
474 else if (datatype == GL_UNSIGNED_INT && comps == 1) {
485 else if (datatype == GL_UNSIGNED_SHORT_5_6_5 && comps == 3) {
510 else if (datatype == GL_UNSIGNED_SHORT_4_4_4_4 && comps == 4) {
540 else if (datatype == GL_UNSIGNED_SHORT_1_5_5_5_REV && comps == 4) {
570 else if (datatype == GL_UNSIGNED_SHORT_5_5_5_1 && comps == 4) {
601 else if (datatype == GL_UNSIGNED_BYTE_3_3_2 && comps == 3) {
627 else if (datatype == MESA_UNSIGNED_BYTE_4_4 && comps == 2) {
648 else if (datatype == GL_UNSIGNED_INT_2_10_10_10_REV && comps == 4) {
679 else if (datatype == GL_UNSIGNED_INT_5_9_9_9_REV && comps == 3) {
698 else if (datatype == GL_UNSIGNED_INT_10F_11F_11F_REV && comps == 3) {
717 else if (datatype == GL_FLOAT_32_UNSIGNED_INT_24_8_REV && comps == 1) {
728 else if (datatype == GL_UNSIGNED_INT_24_8_MESA && comps == 2) {
743 else if (datatype == GL_UNSIGNED_INT_8_24_REV_MESA && comps == 2) {
770 * \param datatype GL pixel type \c GL_UNSIGNED_BYTE, \c GL_UNSIGNED_SHORT,
782 do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth,
794 if ((datatype == GL_UNSIGNED_BYTE) && (comps == 4)) {
805 else if ((datatype == GL_UNSIGNED_BYTE) && (comps == 3)) {
815 else if ((datatype == GL_UNSIGNED_BYTE) && (comps == 2)) {
824 else if ((datatype == GL_UNSIGNED_BYTE) && (comps == 1)) {
832 else if ((datatype == GL_BYTE) && (comps == 4)) {
843 else if ((datatype == GL_BYTE) && (comps == 3)) {
853 else if ((datatype == GL_BYTE) && (comps == 2)) {
862 else if ((datatype == GL_BYTE) && (comps == 1)) {
870 else if ((datatype == GL_UNSIGNED_SHORT) && (comps == 4)) {
881 else if ((datatype == GL_UNSIGNED_SHORT) && (comps == 3)) {
891 else if ((datatype == GL_UNSIGNED_SHORT) && (comps == 2)) {
900 else if ((datatype == GL_UNSIGNED_SHORT) && (comps == 1)) {
908 else if ((datatype == GL_SHORT) && (comps == 4)) {
919 else if ((datatype == GL_SHORT) && (comps == 3)) {
929 else if ((datatype == GL_SHORT) && (comps == 2)) {
938 else if ((datatype == GL_SHORT) && (comps == 1)) {
946 else if ((datatype == GL_FLOAT) && (comps == 4)) {
957 else if ((datatype == GL_FLOAT) && (comps == 3)) {
967 else if ((datatype == GL_FLOAT) && (comps == 2)) {
976 else if ((datatype == GL_FLOAT) && (comps == 1)) {
984 else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 4)) {
995 else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 3)) {
1005 else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 2)) {
1014 else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 1)) {
1022 else if ((datatype == GL_UNSIGNED_INT) && (comps == 1)) {
1038 else if ((datatype == GL_UNSIGNED_SHORT_5_6_5) && (comps == 3)) {
1076 else if ((datatype == GL_UNSIGNED_SHORT_4_4_4_4) && (comps == 4)) {
1125 else if ((datatype == GL_UNSIGNED_SHORT_1_5_5_5_REV) && (comps == 4)) {
1174 else if ((datatype == GL_UNSIGNED_SHORT_5_5_5_1) && (comps == 4)) {
1223 else if ((datatype == GL_UNSIGNED_BYTE_3_3_2) && (comps == 3)) {
1261 else if (datatype == MESA_UNSIGNED_BYTE_4_4 && comps == 2) {
1289 else if ((datatype == GL_UNSIGNED_INT_2_10_10_10_REV) && (comps == 4)) {
1339 else if (datatype == GL_UNSIGNED_INT_5_9_9_9_REV && comps == 3) {
1366 else if (datatype == GL_UNSIGNED_INT_10F_11F_11F_REV && comps == 3) {
1393 else if (datatype == GL_FLOAT_32_UNSIGNED_INT_24_8_REV && comps == 1) {
1415 make_1d_mipmap(GLenum datatype, GLuint comps, GLint border,
1419 const GLint bpt = bytes_per_pixel(datatype, comps);
1428 do_row(datatype, comps, srcWidth - 2 * border, src, src,
1445 make_2d_mipmap(GLenum datatype, GLuint comps, GLint border,
1451 const GLint bpt = bytes_per_pixel(datatype, comps);
1475 do_row(datatype, comps, srcWidthNB, srcA, srcB,
1499 do_row(datatype, comps, srcWidthNB,
1504 do_row(datatype, comps, srcWidthNB,
1522 do_row(datatype, comps, 1,
1526 do_row(datatype, comps, 1,
1537 make_3d_mipmap(GLenum datatype, GLuint comps, GLint border,
1543 const GLint bpt = bytes_per_pixel(datatype, comps);
1602 do_row_3D(datatype, comps, srcWidthNB,
1620 make_2d_mipmap(datatype, comps, 1,
1624 make_2d_mipmap(datatype, comps, 1,
1667 do_row(datatype, comps, 1, srcA, srcB, 1, dst);
1675 do_row(datatype, comps, 1, srcA, srcB, 1, dst);
1681 do_row(datatype, comps, 1, srcA, srcB, 1, dst);
1687 do_row(datatype, comps, 1, srcA, srcB, 1, dst);
1704 GLenum datatype, GLuint comps,
1717 make_1d_mipmap(datatype, comps, border,
1728 make_2d_mipmap(datatype, comps, border,
1733 make_3d_mipmap(datatype, comps, border,
1743 make_1d_mipmap(datatype, comps, border,
1750 make_2d_mipmap(datatype, comps, border,
1889 GLenum datatype;
1892 _mesa_format_to_type_and_comps(srcImage->TexFormat, &datatype, &comps);
1979 _mesa_generate_mipmap_level(target, datatype, comps, border,
2034 * Then, get number of components, choose temporary image datatype,