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
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-01-15 17:32:07 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-01-15 17:32:07 +0400
commit91835abde457a20731dd59334c0397bdb82259ef (patch)
tree4420ed97c40fefeb94e8981034268362753e0340 /source
parentf37d1b7b4e90c280a345b9cc7d1ab1fc02c2780e (diff)
Remove unused code and code sued for debug
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/tracking.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/tracking.c b/source/blender/blenkernel/intern/tracking.c
index 428e6ebf6ca..73170612ff7 100644
--- a/source/blender/blenkernel/intern/tracking.c
+++ b/source/blender/blenkernel/intern/tracking.c
@@ -1070,7 +1070,7 @@ static ImBuf *get_area_imbuf(ImBuf *ibuf, MovieTrackingTrack *track, MovieTracki
{
ImBuf *tmpibuf;
int x, y;
- int x1, y1 /*, x2, y2 */ /* UNUSED */, w, h;
+ int x1, y1, w, h;
float mpos[2];
copy_v2_v2(mpos, marker->pos);
@@ -1092,11 +1092,6 @@ static ImBuf *get_area_imbuf(ImBuf *ibuf, MovieTrackingTrack *track, MovieTracki
x1= x-(int)(w/2.0f);
y1= y-(int)(h/2.0f);
-#if 0 /* UNUSED */
- x2= x+(int)(w/2.0f);
- y2= y+(int)(h/2.0f);
-#endif
-
/* dimensions should be odd */
tmpibuf= IMB_allocImBuf(w+margin*2, h+margin*2, 32, IB_rect);
IMB_rectcpy(tmpibuf, ibuf, 0, 0, x1-margin, y1-margin, w+margin*2, h+margin*2);
@@ -1119,9 +1114,6 @@ static ImBuf *get_area_imbuf(ImBuf *ibuf, MovieTrackingTrack *track, MovieTracki
disable_imbuf_channels(tmpibuf, track, 1 /* grayscale */);
}
- tmpibuf->ftype= PNG;
- IMB_saveiff(tmpibuf, "/tmp/1.png", IB_rect);
-
return tmpibuf;
}