Lines Matching refs:zoomed

135    SWspan zoomed;  in zoom_span()  local
159 INIT_SPAN(zoomed, GL_BITMAP); in zoom_span()
160 zoomed.x = x0; in zoom_span()
161 zoomed.end = zoomedWidth; in zoom_span()
162 zoomed.array = swrast->ZoomedArrays; in zoom_span()
163 zoomed.array->ChanType = span->array->ChanType; in zoom_span()
164 if (zoomed.array->ChanType == GL_UNSIGNED_BYTE) in zoom_span()
165 zoomed.array->rgba = (GLchan (*)[4]) zoomed.array->rgba8; in zoom_span()
166 else if (zoomed.array->ChanType == GL_UNSIGNED_SHORT) in zoom_span()
167 zoomed.array->rgba = (GLchan (*)[4]) zoomed.array->rgba16; in zoom_span()
169 zoomed.array->rgba = (GLchan (*)[4]) zoomed.array->attribs[FRAG_ATTRIB_COL0]; in zoom_span()
171 COPY_4V(zoomed.attrStart[FRAG_ATTRIB_WPOS], span->attrStart[FRAG_ATTRIB_WPOS]); in zoom_span()
172 COPY_4V(zoomed.attrStepX[FRAG_ATTRIB_WPOS], span->attrStepX[FRAG_ATTRIB_WPOS]); in zoom_span()
173 COPY_4V(zoomed.attrStepY[FRAG_ATTRIB_WPOS], span->attrStepY[FRAG_ATTRIB_WPOS]); in zoom_span()
175 zoomed.attrStart[FRAG_ATTRIB_FOGC][0] = span->attrStart[FRAG_ATTRIB_FOGC][0]; in zoom_span()
176 zoomed.attrStepX[FRAG_ATTRIB_FOGC][0] = span->attrStepX[FRAG_ATTRIB_FOGC][0]; in zoom_span()
177 zoomed.attrStepY[FRAG_ATTRIB_FOGC][0] = span->attrStepY[FRAG_ATTRIB_FOGC][0]; in zoom_span()
181 zoomed.z = span->z; in zoom_span()
182 zoomed.zStep = span->zStep; in zoom_span()
184 zoomed.interpMask = span->interpMask & ~SPAN_RGBA; in zoom_span()
185 zoomed.arrayMask |= SPAN_RGBA; in zoom_span()
186 zoomed.arrayAttribs |= FRAG_BIT_COL0; /* we'll produce these values */ in zoom_span()
191 zoomed.red = span->red; in zoom_span()
192 zoomed.green = span->green; in zoom_span()
193 zoomed.blue = span->blue; in zoom_span()
194 zoomed.alpha = span->alpha; in zoom_span()
195 zoomed.redStep = span->redStep; in zoom_span()
196 zoomed.greenStep = span->greenStep; in zoom_span()
197 zoomed.blueStep = span->blueStep; in zoom_span()
198 zoomed.alphaStep = span->alphaStep; in zoom_span()
200 zoomed.interpMask = span->interpMask & ~SPAN_Z; in zoom_span()
201 zoomed.arrayMask |= SPAN_Z; in zoom_span()
211 if (zoomed.array->ChanType == GL_UNSIGNED_BYTE) { in zoom_span()
218 COPY_4UBV(zoomed.array->rgba8[i], rgba[j]); in zoom_span()
221 else if (zoomed.array->ChanType == GL_UNSIGNED_SHORT) { in zoom_span()
228 COPY_4V(zoomed.array->rgba16[i], rgba[j]); in zoom_span()
238 COPY_4V(zoomed.array->attribs[FRAG_ATTRIB_COL0][i], rgba[j]); in zoom_span()
243 if (zoomed.array->ChanType == GL_UNSIGNED_BYTE) { in zoom_span()
250 zoomed.array->rgba8[i][0] = rgb[j][0]; in zoom_span()
251 zoomed.array->rgba8[i][1] = rgb[j][1]; in zoom_span()
252 zoomed.array->rgba8[i][2] = rgb[j][2]; in zoom_span()
253 zoomed.array->rgba8[i][3] = 0xff; in zoom_span()
256 else if (zoomed.array->ChanType == GL_UNSIGNED_SHORT) { in zoom_span()
263 zoomed.array->rgba16[i][0] = rgb[j][0]; in zoom_span()
264 zoomed.array->rgba16[i][1] = rgb[j][1]; in zoom_span()
265 zoomed.array->rgba16[i][2] = rgb[j][2]; in zoom_span()
266 zoomed.array->rgba16[i][3] = 0xffff; in zoom_span()
276 zoomed.array->attribs[FRAG_ATTRIB_COL0][i][0] = rgb[j][0]; in zoom_span()
277 zoomed.array->attribs[FRAG_ATTRIB_COL0][i][1] = rgb[j][1]; in zoom_span()
278 zoomed.array->attribs[FRAG_ATTRIB_COL0][i][2] = rgb[j][2]; in zoom_span()
279 zoomed.array->attribs[FRAG_ATTRIB_COL0][i][3] = 1.0F; in zoom_span()
290 zoomed.array->z[i] = zValues[j]; in zoom_span()
302 const GLint end = zoomed.end; /* save */ in zoom_span()
305 (zoomed.array->ChanType == GL_UNSIGNED_BYTE) ? 4 * sizeof(GLubyte) : in zoom_span()
306 ((zoomed.array->ChanType == GL_UNSIGNED_SHORT) ? 4 * sizeof(GLushort) in zoom_span()
309 rgbaSave = malloc(zoomed.end * pixelSize); in zoom_span()
315 memcpy(rgbaSave, zoomed.array->rgba, zoomed.end * pixelSize); in zoom_span()
317 for (zoomed.y = y0; zoomed.y < y1; zoomed.y++) { in zoom_span()
318 _swrast_write_rgba_span(ctx, &zoomed); in zoom_span()
319 zoomed.end = end; /* restore */ in zoom_span()
322 memcpy(zoomed.array->rgba, rgbaSave, zoomed.end * pixelSize); in zoom_span()