Changeset 128 for abuse/trunk/src/imlib/filter.cpp
- Timestamp:
- Mar 22, 2008, 9:39:01 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/filter.cpp
r124 r128 82 82 unsigned char *c; 83 83 CONDITION(im,"null image passed in filter::apply\n"); 84 im->lock(); 84 85 for (y=im->height()-1;y>=0;y--) 85 86 { … … 91 92 } 92 93 } 94 im->unlock(); 93 95 } 94 96 … … 108 110 else return 0; 109 111 } 110 111 112 /*color_filter::color_filter(palette *pal, int color_bits)113 {114 unsigned char map[256],*last_start,*start;115 int i,last_color=0,color;116 compare_pal=pal;117 for (i=0;i,256;i++)118 map[i]=i;119 120 qsort(map,1,1,color_compare);121 colors=1<<color_bits;122 last_start=color_table=(unsigned char *)malloc(colors*colors*colors);123 124 125 126 last_color=map[0];127 last_dist=0;128 129 130 for (i=1;i<colors;i++)131 {132 color=map[i<<(8-color_bits)];133 dist=134 135 memset(c,136 }137 138 139 }*/140 141 112 142 113 color_filter::color_filter(palette *pal, int color_bits, void (*stat_fun)(int))
Note: See TracChangeset
for help on using the changeset viewer.