58 for( x=0; x < copy->
width; ++x ) {
60 unsigned char * pixel2r =
source + ( ( copy->
height - 1 ) * copy->
width * 3 ) + x * 3;
61 unsigned char * pixel2g =
source + ( ( copy->
height - 1 ) * copy->
width * 3 ) + x * 3 + 1;
62 unsigned char * pixel2b =
source + ( ( copy->
height - 1 ) * copy->
width * 3 ) + x * 3 + 2;
64 unsigned char r, g, b;
70 for( y=( copy->
height - 2); y > -1; --y ) {
71 unsigned char * pixel1r =
source + ( y * copy->
width * 3 ) + ( x * 3 );
72 unsigned char * pixel1g =
source + ( y * copy->
width * 3 ) + ( x * 3 ) + 1;
73 unsigned char * pixel1b =
source + ( y * copy->
width * 3 ) + ( x * 3 ) + 2;
74 unsigned char * pixel2r =
source + ( (y+1) * copy->
width * 3 ) + ( x * 3 );
75 unsigned char * pixel2g =
source + ( (y+1) * copy->
width * 3 ) + ( x * 3 ) + 1;
76 unsigned char * pixel2b =
source + ( (y+1) * copy->
width * 3 ) + ( x * 3 ) + 2;
80 *pixel2r = (
unsigned char) *pixel1r;
81 *pixel2g = (
unsigned char) *pixel1g;
82 *pixel2b = (
unsigned char) *pixel1b;
86 unsigned char * pixel1r =
source + x * 3;
87 unsigned char * pixel1g =
source + x * 3 + 1;
88 unsigned char * pixel1b =
source + x * 3 + 2;
ImageDescriptor * image_descriptor_roll_y_down(Environment *_environment, ImageDescriptor *_source_image)
struct _ImageDescriptor * next
struct _ImageDescriptor ImageDescriptor
struct _RGBi RGBi
Structure to store color components (red, green and blue).
struct _Environment Environment
Structure of compilation environment.