const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLubyte *dst = (GLubyte *) dstImage
+ dstYoffset * dstRowStride + dstXoffset;
GLint row;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row, col;
for (row = 0; row < height; row++) {
for (col = 0; col < width; col++) {
else {
/* must rescale */
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row, col;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, srcRow, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
for (col = 0; col < width; col++) {
GLint srcCol = col / wScale;
GLubyte luminance = src[srcCol * 2 + 0];
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
MEMCPY(dst, src, width * sizeof(GLushort));
else {
/* must rescale image */
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint col, col3;
else {
/* must rescale image */
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint col, col4;
else {
/* must rescale image */
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
MEMCPY(dst, src, width * sizeof(GLushort));
else {
/* must rescale image */
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint col, col4;
else {
/* must rescale image */
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
MEMCPY(dst, src, width * sizeof(GLushort));
else {
/* must rescale image */
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint col, col4;
else {
/* must rescale image */
GLushort *dst = (GLushort *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLuint *dst = (GLuint *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
MEMCPY(dst, src, width * sizeof(GLuint));
else {
/* must rescale image */
GLuint *dst = (GLuint *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;
const GLubyte *src = _mesa_image_address(packing, srcImage,
srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0);
const GLint srcStride = _mesa_image_row_stride(packing,
- srcWidth, srcFormat, srcType);
+ width, srcFormat, srcType);
GLuint *dst = (GLuint *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint col, col4;
else {
/* must rescale image */
GLuint *dst = (GLuint *) ((GLubyte *) dstImage
- + dstYoffset * dstRowStride + dstXoffset);
+ + dstYoffset * dstRowStride) + dstXoffset;
GLint row;
for (row = 0; row < height; row++) {
GLint srcRow = row / hScale;