Lines Matching full:srcformat
2774 GLenum srcFormat, GLenum srcType, const GLvoid *src,
2777 ASSERT(srcFormat == GL_COLOR_INDEX || srcFormat == GL_STENCIL_INDEX);
3106 _mesa_problem(NULL, "bad srcFormat %s in get_component_mapping",
3116 * image data. srcFormat and srcType are the format and type parameters
3125 * srcFormat - format of incoming data
3132 GLenum srcFormat, GLenum srcType, const GLvoid *src,
3141 ASSERT(srcFormat == GL_RED ||
3142 srcFormat == GL_GREEN ||
3143 srcFormat == GL_BLUE ||
3144 srcFormat == GL_ALPHA ||
3145 srcFormat == GL_LUMINANCE ||
3146 srcFormat == GL_LUMINANCE_ALPHA ||
3147 srcFormat == GL_INTENSITY ||
3148 srcFormat == GL_RG ||
3149 srcFormat == GL_RGB ||
3150 srcFormat == GL_BGR ||
3151 srcFormat == GL_RGBA ||
3152 srcFormat == GL_BGRA ||
3153 srcFormat == GL_ABGR_EXT ||
3154 srcFormat == GL_DU8DV8_ATI ||
3155 srcFormat == GL_DUDV_ATI ||
3156 srcFormat == GL_RED_INTEGER_EXT ||
3157 srcFormat == GL_GREEN_INTEGER_EXT ||
3158 srcFormat == GL_BLUE_INTEGER_EXT ||
3159 srcFormat == GL_ALPHA_INTEGER_EXT ||
3160 srcFormat == GL_RG_INTEGER ||
3161 srcFormat == GL_RGB_INTEGER_EXT ||
3162 srcFormat == GL_RGBA_INTEGER_EXT ||
3163 srcFormat == GL_BGR_INTEGER_EXT ||
3164 srcFormat == GL_BGRA_INTEGER_EXT ||
3165 srcFormat == GL_LUMINANCE_INTEGER_EXT ||
3166 srcFormat == GL_LUMINANCE_ALPHA_INTEGER_EXT);
3191 get_component_mapping(srcFormat,
3195 stride = _mesa_components_in_format(srcFormat);
3197 intFormat = _mesa_is_enum_format_integer(srcFormat);
3743 GLenum srcFormat, GLenum srcType, const GLvoid *src,
3750 ASSERT(srcFormat == GL_RED ||
3751 srcFormat == GL_GREEN ||
3752 srcFormat == GL_BLUE ||
3753 srcFormat == GL_ALPHA ||
3754 srcFormat == GL_LUMINANCE ||
3755 srcFormat == GL_LUMINANCE_ALPHA ||
3756 srcFormat == GL_INTENSITY ||
3757 srcFormat == GL_RG ||
3758 srcFormat == GL_RGB ||
3759 srcFormat == GL_BGR ||
3760 srcFormat == GL_RGBA ||
3761 srcFormat == GL_BGRA ||
3762 srcFormat == GL_ABGR_EXT ||
3763 srcFormat == GL_DU8DV8_ATI ||
3764 srcFormat == GL_DUDV_ATI ||
3765 srcFormat == GL_RED_INTEGER_EXT ||
3766 srcFormat == GL_RG_INTEGER ||
3767 srcFormat == GL_GREEN_INTEGER_EXT ||
3768 srcFormat == GL_BLUE_INTEGER_EXT ||
3769 srcFormat == GL_ALPHA_INTEGER_EXT ||
3770 srcFormat == GL_RGB_INTEGER_EXT ||
3771 srcFormat == GL_RGBA_INTEGER_EXT ||
3772 srcFormat == GL_BGR_INTEGER_EXT ||
3773 srcFormat == GL_BGRA_INTEGER_EXT ||
3774 srcFormat == GL_LUMINANCE_INTEGER_EXT ||
3775 srcFormat == GL_LUMINANCE_ALPHA_INTEGER_EXT);
3800 get_component_mapping(srcFormat,
3804 stride = _mesa_components_in_format(srcFormat);
4236 * srcFormat - source image format
4247 GLenum srcFormat, GLenum srcType,
4252 GLboolean intFormat = _mesa_is_enum_format_integer(srcFormat);
4262 ASSERT(srcFormat == GL_RED ||
4263 srcFormat == GL_GREEN ||
4264 srcFormat == GL_BLUE ||
4265 srcFormat == GL_ALPHA ||
4266 srcFormat == GL_LUMINANCE ||
4267 srcFormat == GL_LUMINANCE_ALPHA ||
4268 srcFormat == GL_INTENSITY ||
4269 srcFormat == GL_RG ||
4270 srcFormat == GL_RGB ||
4271 srcFormat == GL_BGR ||
4272 srcFormat == GL_RGBA ||
4273 srcFormat == GL_BGRA ||
4274 srcFormat == GL_ABGR_EXT ||
4275 srcFormat == GL_COLOR_INDEX);
4312 if (srcFormat == GL_RGBA) {
4316 else if (srcFormat == GL_RGB) {
4332 if (srcFormat == GL_RGB) {
4336 else if (srcFormat == GL_RGBA) {
4350 else if (dstFormat == srcFormat) {
4351 GLint comps = _mesa_components_in_format(srcFormat);
4378 if (srcFormat == GL_COLOR_INDEX) {
4387 extract_uint_indexes(n, indexes, srcFormat, srcType, source,
4405 extract_float_rgba(n, rgba, srcFormat, srcType, source,
4490 GLenum srcFormat, GLenum srcType,
4504 ASSERT(srcFormat == GL_RED ||
4505 srcFormat == GL_GREEN ||
4506 srcFormat == GL_BLUE ||
4507 srcFormat == GL_ALPHA ||
4508 srcFormat == GL_LUMINANCE ||
4509 srcFormat == GL_LUMINANCE_ALPHA ||
4510 srcFormat == GL_INTENSITY ||
4511 srcFormat == GL_RG ||
4512 srcFormat == GL_RGB ||
4513 srcFormat == GL_BGR ||
4514 srcFormat == GL_RGBA ||
4515 srcFormat == GL_BGRA ||
4516 srcFormat == GL_ABGR_EXT ||
4517 srcFormat == GL_RED_INTEGER_EXT ||
4518 srcFormat == GL_GREEN_INTEGER_EXT ||
4519 srcFormat == GL_BLUE_INTEGER_EXT ||
4520 srcFormat == GL_ALPHA_INTEGER_EXT ||
4521 srcFormat == GL_RG_INTEGER ||
4522 srcFormat == GL_RGB_INTEGER_EXT ||
4523 srcFormat == GL_RGBA_INTEGER_EXT ||
4524 srcFormat == GL_BGR_INTEGER_EXT ||
4525 srcFormat == GL_BGRA_INTEGER_EXT ||
4526 srcFormat == GL_LUMINANCE_INTEGER_EXT ||
4527 srcFormat == GL_LUMINANCE_ALPHA_INTEGER_EXT ||
4528 srcFormat == GL_COLOR_INDEX);
4559 GLboolean intFormat = _mesa_is_enum_format_integer(srcFormat);
4580 if (srcFormat == GL_COLOR_INDEX) {
4589 extract_uint_indexes(n, indexes, srcFormat, srcType, source,
4607 extract_float_rgba(n, rgba, srcFormat, srcType, source,
4690 GLenum srcFormat, GLenum srcType,
4710 ASSERT(srcFormat == GL_RED ||
4711 srcFormat == GL_GREEN ||
4712 srcFormat == GL_BLUE ||
4713 srcFormat == GL_ALPHA ||
4714 srcFormat == GL_LUMINANCE ||
4715 srcFormat == GL_LUMINANCE_ALPHA ||
4716 srcFormat == GL_INTENSITY ||
4717 srcFormat == GL_RG ||
4718 srcFormat == GL_RGB ||
4719 srcFormat == GL_BGR ||
4720 srcFormat == GL_RGBA ||
4721 srcFormat == GL_BGRA ||
4722 srcFormat == GL_ABGR_EXT ||
4723 srcFormat == GL_RED_INTEGER_EXT ||
4724 srcFormat == GL_GREEN_INTEGER_EXT ||
4725 srcFormat == GL_BLUE_INTEGER_EXT ||
4726 srcFormat == GL_ALPHA_INTEGER_EXT ||
4727 srcFormat == GL_RG_INTEGER ||
4728 srcFormat == GL_RGB_INTEGER_EXT ||
4729 srcFormat == GL_RGBA_INTEGER_EXT ||
4730 srcFormat == GL_BGR_INTEGER_EXT ||
4731 srcFormat == GL_BGRA_INTEGER_EXT ||
4732 srcFormat == GL_LUMINANCE_INTEGER_EXT ||
4733 srcFormat == GL_LUMINANCE_ALPHA_INTEGER_EXT);
4760 extract_uint_rgba(n, rgba, srcFormat, srcType, source,
4849 GLenum srcFormat, GLenum srcType,
4855 ASSERT(srcFormat == GL_DUDV_ATI ||
4856 srcFormat == GL_DU8DV8_ATI);
4886 extract_float_rgba(n, rgba, srcFormat, srcType, source,