Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-08-07 13:20:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-07 13:20:30 +0400
commit8ae89f494225d59f8d28b453e0939a94a9d3ec9d (patch)
treedb8ad5b8d104202db5defc17b932b9e260be4548 /source/blender/compositor/operations/COM_InpaintOperation.h
parentcfe7bab0802eedb5897ba736e61013c31385556c (diff)
speedup to inpaint node in my tests was about ~30% for an optimized build.
also replace MIN/MAX2 with inline functions in transform.
Diffstat (limited to 'source/blender/compositor/operations/COM_InpaintOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_InpaintOperation.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_InpaintOperation.h b/source/blender/compositor/operations/COM_InpaintOperation.h
index 0ff65174161..2f066e19065 100644
--- a/source/blender/compositor/operations/COM_InpaintOperation.h
+++ b/source/blender/compositor/operations/COM_InpaintOperation.h
@@ -64,11 +64,10 @@ public:
private:
void calc_manhatten_distance();
- void clamp_xy(int & x, int & y);
- float get(int x, int y, int component);
- void set(int x, int y, int component, float v);
+ void clamp_xy(int &x, int &y);
+ float *get_pixel(int x, int y);
int mdist(int x, int y);
- bool next_pixel(int & x, int & y, int & curr, int iters);
+ bool next_pixel(int &x, int &y, int &curr, int iters);
void pix_step(int x, int y);
};