Lines 1-6
Link Here
|
1 |
--- CAIR.cpp.orig 2008-10-19 19:15:39.000000000 +0800 |
1 |
--- CAIR.cpp.orig 2008-11-22 23:41:22.000000000 +0800 |
2 |
+++ CAIR.cpp 2008-10-19 19:17:24.000000000 +0800 |
2 |
+++ CAIR.cpp 2008-11-22 23:43:28.000000000 +0800 |
3 |
@@ -252,7 +252,7 @@ |
3 |
@@ -260,7 +260,7 @@ |
4 |
//Our thread function for the Grayscale |
4 |
//Our thread function for the Grayscale |
5 |
void * Gray_Quadrant( void * id ) |
5 |
void * Gray_Quadrant( void * id ) |
6 |
{ |
6 |
{ |
Lines 9-16
Link Here
|
9 |
|
9 |
|
10 |
while( true ) |
10 |
while( true ) |
11 |
{ |
11 |
{ |
12 |
@@ -417,7 +417,7 @@ |
12 |
@@ -425,7 +425,7 @@ |
13 |
//This is multi-threaded to 4 threads, spliting the image into 4 strips |
13 |
//The thread function, splitting the image into strips |
14 |
void * Edge_Quadrant( void * id ) |
14 |
void * Edge_Quadrant( void * id ) |
15 |
{ |
15 |
{ |
16 |
- int num = (int)id; |
16 |
- int num = (int)id; |
Lines 18-24
Link Here
|
18 |
|
18 |
|
19 |
while( true ) |
19 |
while( true ) |
20 |
{ |
20 |
{ |
21 |
@@ -612,7 +612,7 @@ |
21 |
@@ -619,7 +619,7 @@ |
22 |
//=========================================================================================================// |
22 |
//=========================================================================================================// |
23 |
void * Energy_Left( void * id ) |
23 |
void * Energy_Left( void * id ) |
24 |
{ |
24 |
{ |
Lines 27-33
Link Here
|
27 |
int energy = 0;// current calculated enery |
27 |
int energy = 0;// current calculated enery |
28 |
int min_x = 0, max_x = 0; |
28 |
int min_x = 0, max_x = 0; |
29 |
|
29 |
|
30 |
@@ -727,7 +727,7 @@ |
30 |
@@ -734,7 +734,7 @@ |
31 |
//=========================================================================================================// |
31 |
//=========================================================================================================// |
32 |
void * Energy_Right( void * id ) |
32 |
void * Energy_Right( void * id ) |
33 |
{ |
33 |
{ |
Lines 36-42
Link Here
|
36 |
int energy = 0;// current calculated enery |
36 |
int energy = 0;// current calculated enery |
37 |
int min_x = 0, max_x = 0; |
37 |
int min_x = 0, max_x = 0; |
38 |
|
38 |
|
39 |
@@ -938,7 +938,7 @@ |
39 |
@@ -945,7 +945,7 @@ |
40 |
//This works like Remove_Quadrant, stripes across the image. |
40 |
//This works like Remove_Quadrant, stripes across the image. |
41 |
void * Add_Quadrant( void * id ) |
41 |
void * Add_Quadrant( void * id ) |
42 |
{ |
42 |
{ |
Lines 45-51
Link Here
|
45 |
Thread_Params add_area; |
45 |
Thread_Params add_area; |
46 |
|
46 |
|
47 |
while( true ) |
47 |
while( true ) |
48 |
@@ -1245,7 +1245,7 @@ |
48 |
@@ -1260,7 +1260,7 @@ |
49 |
//the areas are not quadrants, rather, more like strips, but I keep the name convention |
49 |
//the areas are not quadrants, rather, more like strips, but I keep the name convention |
50 |
void * Remove_Quadrant( void * id ) |
50 |
void * Remove_Quadrant( void * id ) |
51 |
{ |
51 |
{ |