Home | History | Annotate | Download | only in main

Lines Matching refs:dstFormat

521                                    GLenum dstFormat, GLenum dstType)
527 _mesa_lookup_enum_by_nr(dstFormat));
532 GLenum dstFormat, GLenum dstType,
539 pack_uint_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n);
542 pack_int_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n);
545 pack_ushort_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n);
548 pack_short_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n);
551 pack_ubyte_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n);
554 pack_byte_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n);
557 if ((dstFormat == GL_RGB) || (dstFormat == GL_RGB_INTEGER)) {
565 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
569 if ((dstFormat == GL_RGB) || (dstFormat == GL_RGB_INTEGER)) {
577 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
581 if ((dstFormat == GL_RGB) || (dstFormat == GL_RGB_INTEGER)) {
589 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
593 if ((dstFormat == GL_RGB) || (dstFormat == GL_RGB_INTEGER)) {
601 dstFormat, dstType);
605 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
614 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
623 else if (dstFormat == GL_ABGR_EXT) {
632 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
636 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
645 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
654 else if (dstFormat == GL_ABGR_EXT) {
663 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
667 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
676 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
685 else if (dstFormat == GL_ABGR_EXT) {
694 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
698 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
707 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
716 else if (dstFormat == GL_ABGR_EXT) {
725 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
729 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
738 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
747 else if (dstFormat == GL_ABGR_EXT) {
756 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
760 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
769 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
778 else if (dstFormat == GL_ABGR_EXT) {
787 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
791 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
800 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
809 else if (dstFormat == GL_ABGR_EXT) {
818 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
822 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
831 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
840 else if (dstFormat == GL_ABGR_EXT) {
849 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
853 _pack_rgba_span_from_uints_problem(ctx, dstFormat, dstType);
907 GLenum dstFormat, GLenum dstType)
913 _mesa_lookup_enum_by_nr(dstFormat));
918 GLenum dstFormat, GLenum dstType,
925 pack_uint_from_int_rgba(ctx, dstAddr, dstFormat, rgba, n);
929 pack_uint_from_uint_rgba(ctx, dstAddr, dstFormat, (GLuint (*)[4]) rgba, n);
932 pack_ushort_from_int_rgba(ctx, dstAddr, dstFormat, rgba, n);
935 pack_short_from_int_rgba(ctx, dstAddr, dstFormat, rgba, n);
938 pack_ubyte_from_int_rgba(ctx, dstAddr, dstFormat, rgba, n);
941 pack_byte_from_int_rgba(ctx, dstAddr, dstFormat, rgba, n);
944 if ((dstFormat == GL_RGB) || (dstFormat == GL_RGB_INTEGER)) {
952 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
956 if ((dstFormat == GL_RGB) || (dstFormat == GL_RGB_INTEGER)) {
964 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
968 if ((dstFormat == GL_RGB) || (dstFormat == GL_RGB_INTEGER)) {
976 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
980 if ((dstFormat == GL_RGB) || (dstFormat == GL_RGB_INTEGER)) {
988 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
992 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
1001 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
1010 else if (dstFormat == GL_ABGR_EXT) {
1019 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
1023 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
1032 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
1041 else if (dstFormat == GL_ABGR_EXT) {
1050 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
1054 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
1063 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
1072 else if (dstFormat == GL_ABGR_EXT) {
1081 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
1085 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
1094 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
1103 else if (dstFormat == GL_ABGR_EXT) {
1112 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
1116 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
1125 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
1134 else if (dstFormat == GL_ABGR_EXT) {
1143 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
1147 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
1156 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
1165 else if (dstFormat == GL_ABGR_EXT) {
1174 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
1178 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
1187 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
1196 else if (dstFormat == GL_ABGR_EXT) {
1205 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
1209 if ((dstFormat == GL_RGBA) || (dstFormat == GL_RGBA_INTEGER_EXT)) {
1218 else if ((dstFormat == GL_BGRA) || (dstFormat == GL_BGRA_INTEGER)) {
1227 else if (dstFormat == GL_ABGR_EXT) {
1236 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
1240 _pack_rgba_span_from_ints_problem(ctx, dstFormat, dstType);
1248 * by the dstFormat, dstType and dstPacking. Used by glReadPixels.
1259 GLenum dstFormat, GLenum dstType,
1265 const GLint comps = _mesa_components_in_format(dstFormat);
1266 const GLboolean intDstFormat = _mesa_is_enum_format_integer(dstFormat);
1269 if (dstFormat == GL_LUMINANCE ||
1270 dstFormat == GL_LUMINANCE_ALPHA ||
1271 dstFormat == GL_LUMINANCE_INTEGER_EXT ||
1272 dstFormat == GL_LUMINANCE_ALPHA_INTEGER_EXT) {
1310 else if (dstFormat == GL_LUMINANCE || dstFormat == GL_LUMINANCE_ALPHA) {
1332 switch (dstFormat) {
1489 switch (dstFormat) {
1646 switch (dstFormat) {
1803 switch (dstFormat) {
1960 switch (dstFormat) {
2117 switch (dstFormat) {
2274 switch (dstFormat) {
2360 switch (dstFormat) {
2444 if (dstFormat == GL_RGB) {
2454 if (dstFormat == GL_RGB) {
2464 if (dstFormat == GL_RGB) {
2474 if (dstFormat == GL_RGB) {
2484 if (dstFormat == GL_RGBA) {
2493 else if (dstFormat == GL_BGRA) {
2502 else if (dstFormat == GL_ABGR_EXT) {
2513 if (dstFormat == GL_RGBA) {
2522 else if (dstFormat == GL_BGRA) {
2531 else if (dstFormat == GL_ABGR_EXT) {
2542 if (dstFormat == GL_RGBA) {
2551 else if (dstFormat == GL_BGRA) {
2560 else if (dstFormat == GL_ABGR_EXT) {
2571 if (dstFormat == GL_RGBA) {
2580 else if (dstFormat == GL_BGRA) {
2589 else if (dstFormat == GL_ABGR_EXT) {
2600 if (dstFormat == GL_RGBA) {
2609 else if (dstFormat == GL_BGRA) {
2618 else if (dstFormat == GL_ABGR_EXT) {
2629 if (dstFormat == GL_RGBA) {
2638 else if (dstFormat == GL_BGRA) {
2647 else if (dstFormat == GL_ABGR_EXT) {
2658 if (dstFormat == GL_RGBA) {
2667 else if (dstFormat == GL_BGRA) {
2676 else if (dstFormat == GL_ABGR_EXT) {
2687 if (dstFormat == GL_RGBA) {
2696 else if (dstFormat == GL_BGRA) {
2705 else if (dstFormat == GL_ABGR_EXT) {
4234 * dstFormat - format of destination color array
4246 GLuint n, GLenum dstFormat, GLubyte dest[],
4253 ASSERT(dstFormat == GL_ALPHA ||
4254 dstFormat == GL_LUMINANCE ||
4255 dstFormat == GL_LUMINANCE_ALPHA ||
4256 dstFormat == GL_INTENSITY ||
4257 dstFormat == GL_RED ||
4258 dstFormat == GL_RG ||
4259 dstFormat == GL_RGB ||
4260 dstFormat == GL_RGBA);
4311 if (dstFormat == GL_RGBA) {
4331 else if (dstFormat == GL_RGB) {
4350 else if (dstFormat == srcFormat) {
4371 dstComponents = _mesa_components_in_format( dstFormat );
4416 get_component_indexes(dstFormat,
4419 /* Now return the GLubyte data in the requested dstFormat */
4489 GLuint n, GLenum dstFormat, GLfloat dest[],
4495 ASSERT(dstFormat == GL_ALPHA ||
4496 dstFormat == GL_LUMINANCE ||
4497 dstFormat == GL_LUMINANCE_ALPHA ||
4498 dstFormat == GL_INTENSITY ||
4499 dstFormat == GL_RED ||
4500 dstFormat == GL_RG ||
4501 dstFormat == GL_RGB ||
4502 dstFormat == GL_RGBA);
4566 dstComponents = _mesa_components_in_format( dstFormat );
4615 get_component_indexes(dstFormat,
4618 /* Now pack results in the requested dstFormat */
4689 GLuint n, GLenum dstFormat, GLuint *dest,
4701 ASSERT(dstFormat == GL_ALPHA ||
4702 dstFormat == GL_LUMINANCE ||
4703 dstFormat == GL_LUMINANCE_ALPHA ||
4704 dstFormat == GL_INTENSITY ||
4705 dstFormat == GL_RED ||
4706 dstFormat == GL_RG ||
4707 dstFormat == GL_RGB ||
4708 dstFormat == GL_RGBA);
4763 if (dstFormat == GL_RGBA) {
4770 GLint dstComponents = _mesa_components_in_format( dstFormat );
4774 get_component_indexes(dstFormat,
4848 GLuint n, GLenum dstFormat, GLbyte dest[],
4854 ASSERT(dstFormat == GL_DUDV_ATI);
4879 dstComponents = _mesa_components_in_format( dstFormat );
4894 /* Now pack results in the requested dstFormat */