58 for( y=0; y<copy->
height; ++y ) {
60 unsigned char * pixel2r =
source + ( y * copy->
width * 3 );
61 unsigned char * pixel2g =
source + ( y * copy->
width * 3 ) + 1;
62 unsigned char * pixel2b =
source + ( y * copy->
width * 3 ) + 2;
64 unsigned char r, g, b;
70 for( x=0; x<copy->
width-2; ++x ) {
71 unsigned char * pixel1r =
source + ( y * copy->
width * 3 ) + ( (x+1) * 3 );
72 unsigned char * pixel1g =
source + ( y * copy->
width * 3 ) + ( (x+1) * 3 ) + 1;
73 unsigned char * pixel1b =
source + ( y * copy->
width * 3 ) + ( (x+1) * 3 ) + 2;
74 unsigned char * pixel2r =
source + ( y * copy->
width * 3 ) + ( (x) * 3 );
75 unsigned char * pixel2g =
source + ( y * copy->
width * 3 ) + ( (x) * 3 ) + 1;
76 unsigned char * pixel2b =
source + ( y * 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 + ( y * copy->
width * 3 ) + ( (copy->
width-1) * 3 );
87 unsigned char * pixel1g =
source + ( y * copy->
width * 3 ) + ( (copy->
width-1) * 3 ) + 1;
88 unsigned char * pixel1b =
source + ( y * copy->
width * 3 ) + ( (copy->
width-1) * 3 ) + 2;
ImageDescriptor * image_descriptor_roll_x_left(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.