Carsten Haitzler
f93e8368ae
free image? dirty the pixmaps that belong to it and set image pointer to null
...
SVN revision: 3517
2000-09-17 22:32:24 +00:00
Carsten Haitzler
336cecc801
fix pixmap caching...... :)
...
SVN revision: 3505
2000-09-17 17:22:55 +00:00
Tom Gilbert
0776d7ff0d
not quite there yet
...
SVN revision: 3504
2000-09-17 13:23:15 +00:00
Carsten Haitzler
65dc01f834
fix that! that aint static! (__imlib_dynamic_filters_init that is)
...
SVN revision: 3502
2000-09-17 05:07:14 +00:00
Tom Gilbert
b9f5dca00f
quick warning hunt
...
SVN revision: 3500
2000-09-17 03:07:45 +00:00
Tom Gilbert
6c80c342a7
nm I fixed it anyway
...
SVN revision: 3499
2000-09-17 02:26:24 +00:00
Tom Gilbert
eebefe5ede
Commiting what I have so far. More to do tomorrow, but it's 3am.
...
Polygons are now filled with antialiasing, if context_antialias is set.
So are ellipses.
I fixed some clipping bugs.
There is a bug with the AA span though, it's just a little one, but I'm too
tired to find it now. You will see it if you look closely at the top of the
filled ellipse in test/imlib2, using xmag or something.
I'll fix that tomorrow, speed things up a bit, and hopefully implement AA
drawing for ellipse outlines. Oh, I'll unroll some more loops too.
raster: your last commit broke the two test apps. a segv in _RGBA_init()
somewhere, I know it's not my new code, as I tried a fresh checkout and it
did the same thing. I don't have time to check it out tonight though.
SVN revision: 3498
2000-09-17 01:57:01 +00:00
Carsten Haitzler
77a68dc413
unrolled span rendering a little more (switch stamement is now just once
...
per span 0 thats good enough.... :) )
SVN revision: 3491
2000-09-16 18:16:11 +00:00
Tom Gilbert
6cedec71a8
more inlining
...
SVN revision: 3488
2000-09-16 00:38:10 +00:00
Tom Gilbert
5552e7e064
Use spans and the span list clipper to do filled ellipses too. Much better.
...
SVN revision: 3485
2000-09-16 00:09:18 +00:00
Carsten Haitzler
227a499f1d
no prointf!
...
SVN revision: 3484
2000-09-15 23:52:21 +00:00
Carsten Haitzler
69c726a9cf
handle lower depths :)
...
SVN revision: 3482
2000-09-15 23:47:27 +00:00
Tom Gilbert
9cef1b4308
Lots of changes. Macro-ised the point_on_segment code.
...
Implemented a span-list clipper.
Inlined the drawing code for span().
Cleaned up and speeded up a couple of drawing funcs.
Polygons filled much faster now. More to do though.
SVN revision: 3480
2000-09-15 23:22:53 +00:00
Carsten Haitzler
220207d492
666 colorcube rendering works....... :)
...
SVN revision: 3478
2000-09-15 18:21:08 +00:00
Carsten Haitzler
0acbe99fd1
fix visual picker :)
...
SVN revision: 3469
2000-09-15 14:34:31 +00:00
Michael Jennings
1051a20dd2
Son of a raster! I think I just found the memory leak. I shall now hide
...
in shame. Perhaps giblet should take over Eterm development.
SVN revision: 3466
2000-09-14 19:08:08 +00:00
Carsten Haitzler
35b6638256
add call to get text inset for string
...
SVN revision: 3453
2000-09-13 17:00:37 +00:00
Carsten Haitzler
d7b8c1575b
add docs..... and prefix is /usr for rpms damnit! :)
...
SVN revision: 3450
2000-09-13 16:20:33 +00:00
Carsten Haitzler
2d96eee956
add api call to get text string advances........
...
SVN revision: 3447
2000-09-13 15:52:53 +00:00
Carsten Haitzler
66095b9573
missing some load data checks for some routines... fix fix fix
...
SVN revision: 3440
2000-09-13 14:04:47 +00:00
Carsten Haitzler
542cc394f8
ewwwwwwwwwwwwps! scaling blending buggy! fix fix fix fix :) GOTCHA!
...
SVN revision: 3434
2000-09-13 04:18:39 +00:00
Carsten Haitzler
00aeaf4586
up version number.. tentative for a 1.0 release...
...
revamp rpm packages completely. split loaders into their own packages
(more logical units). main imlib2 requires the jpeg, png and db laoders
at a minimum
SVN revision: 3417
2000-09-12 21:11:22 +00:00
Carsten Haitzler
0883f1b746
and enable the fast path again
...
SVN revision: 3403
2000-09-12 05:46:17 +00:00
Carsten Haitzler
356c4db490
added generic slow-path rendering code
...
SVN revision: 3402
2000-09-12 05:34:32 +00:00
Carsten Haitzler
ee6dba3708
wooo! found bug in filename:key splitting.... fix fix fix... :)
...
SVN revision: 3371
2000-09-09 19:42:09 +00:00
Tom Gilbert
a7557ddc46
final fix for _list_fonts()
...
SVN revision: 3357
2000-09-08 17:23:07 +00:00
Tom Gilbert
5de8b0f072
Much faster clipped ellipse filling.
...
SVN revision: 3356
2000-09-08 15:05:38 +00:00
Tom Gilbert
cd464e9838
Much faster polygon clipping, made span() more sensible.
...
Added the function:
unsigned char imlib_polygon_contains_point(ImlibPolygon poly, int x,
int y);
Tells you if a point lies in a polygon. Handy for apps that might want to
test for "selection" of a polygon shape or something...
SVN revision: 3355
2000-09-08 14:47:36 +00:00
Tom Gilbert
20aa346460
tidy up
...
SVN revision: 3313
2000-09-04 17:02:58 +00:00
Tom Gilbert
82824227fc
slight speedup
...
SVN revision: 3312
2000-09-04 15:56:59 +00:00
Tom Gilbert
cdf8e6ed76
killed a rounding error in line clipping
...
SVN revision: 3308
2000-09-03 22:43:59 +00:00
Tom Gilbert
6a4d800e92
imlib_image_fill_ellipse()
...
SVN revision: 3306
2000-09-03 19:31:03 +00:00
Tom Gilbert
e3d927d32c
Better API, simpler polygon struct. imlib_polygon_new() now, no type member.
...
Then _draw_polygon(polygon, unsigned int closed), and _fill_polygon(poly).
SVN revision: 3305
2000-09-03 19:14:02 +00:00
Tom Gilbert
222e1b5f32
Polygon filling. Right now only works for convex polygons. Works with a
...
clipping rect, but highly suboptimally (I'm not doing proper polygon
clipping here yet, just clipping slowly on each point drawn - really nasty).
There are probably some rounding errors in here. I need to work more on
this, but I have *so* little time for the next few weeks.
Please don't kill me for this code. It's not finished, but I'm about to move
house, and I have to get something working before I pack my PC away.
SVN revision: 3303
2000-09-03 18:04:00 +00:00
Carsten Haitzler
f640137020
get rid of comment
...
SVN revision: 3297
2000-09-02 07:28:16 +00:00
Carsten Haitzler
6fe8ee962f
foudn bug in mmx asm blending.. 1 line hihg blends get skipped.. fix! :)
...
(ugly fix tho)
SVN revision: 3296
2000-09-02 07:27:50 +00:00
Tom Gilbert
0794fb0f14
imlib_image_draw_ellipse()
...
Check test/imlib2 for example. Clipped too.
TODO: Not antialiased. yet. point drawing needs to be inlined, or something.
SVN revision: 3287
2000-08-31 22:49:06 +00:00
Carsten Haitzler
1250f13969
possible crash fixed
...
SVN revision: 3286
2000-08-31 19:02:37 +00:00
Tom Gilbert
c46b591e82
Added function to calculate bounds of a polygon.
...
SVN revision: 3280
2000-08-30 21:57:36 +00:00
Tom Gilbert
b5ababf0b7
Polygons. Not filled ones yet =P Empty ones are easier ;-)
...
Hard to come up with a nice API for this, but here's what I have:
ImlibPolygon imlib_polygon_new(int type);
void imlib_polygon_free(ImlibPolygon poly);
void imlib_polygon_add_point(ImlibPolygon poly, int x, int y);
void imlib_image_draw_polygon(ImlibPolygon poly);
Clipping works with these, as demonstrated by test/imlib2
The type paramter may be: POLY_OPEN, POLY_CLOSED or POLY_FILLED (last one
not implemented yet).
I was wondering if draw_polygon should genererate updates, like draw_line.
Thoughts?
SVN revision: 3279
2000-08-30 19:52:57 +00:00
Tom Gilbert
cebd7a0c23
Scratch that. Start again.
...
Removed all the _clipped functions.
Added imlib_context_set_cliprect(int x, int y, int w, int h) and a
corresponding _get_cliprect.
Set width to 0 to disable clipping (default).
Just use the normal _draw_ functions and it'll do the Right thing.
SVN revision: 3278
2000-08-30 18:26:49 +00:00
Tom Gilbert
313c889709
The line clipping function is quite useful, so I made it public.
...
Sometimes it's handy to work out where your line was/would be drawn.
int
imlib_clip_line(int x0, int y0, int x1, int y1, int xmin, int xmax, int ymin,
int ymax, int *clip_x0, int *clip_y0, int *clip_x1,
int *clip_y1);
SVN revision: 3277
2000-08-30 16:57:16 +00:00
Tom Gilbert
e423fc372d
Added rectangle clipping, in the form:
...
void
imlib_image_draw_rectangle_clipped(int x, int y, int width, int height,
int clip_xmin, int clip_xmax, int clip_ymin,
int clip_ymax);
Works well. If you make install then cd test, make, ./imlib2, you'll see the
demo/test of the clipping code.
Next up: draw_polygon and draw_polygon_clipped.
Then (eeek) fill_polygon, fill_polygon_clipped, and some clipping for image
blending (fun).
SVN revision: 3276
2000-08-30 16:39:44 +00:00
Carsten Haitzler
ee1b52edaa
noticed there was a set filter but no get.. addded
...
SVN revision: 3275
2000-08-30 01:34:19 +00:00
Carsten Haitzler
38c520c050
api call was silly - changed it :)
...
SVN revision: 3274
2000-08-29 22:29:13 +00:00
Tom Gilbert
4f72d15e1e
Added line drawing with clipping.
...
Same as _draw_line but with extra parameters for the clipping region.
Tested and seems to work well. Will check further tomorrow when I convert
geist to use this instead of doing it internally.
Imlib_Updates
imlib_image_draw_line_clipped(int x1, int y1, int x2, int y2,
int clip_xmin, int clip_xmax, int clip_ymin,
int clip_ymax, char make_updates);
SVN revision: 3273
2000-08-29 21:09:49 +00:00
Michael Jennings
f16c92658f
Miscellaneous fixes I ran across while doing the colormod stuff. One of
...
which fixes a seg fault bug.
SVN revision: 3243
2000-08-23 05:02:03 +00:00
Carsten Haitzler
b99cd06c87
try that
...
SVN revision: 3240
2000-08-23 01:18:52 +00:00
Tom Gilbert
37e6364bd0
Urm. oops. hehe :)
...
Reversed that change, as it caused segfaults in free().
I can't grok this code, so I'll leave it to raster.
Basically, if my code calls imlib_free_image_and_decache(), it doesn't free
the image, and it leaks.
The fix I applied made sure _Imlib_ConsumeImage was called, but this caused
a segfault.
*baffle
SVN revision: 3239
2000-08-23 00:20:24 +00:00
Tom Gilbert
5303cd3cf1
Okay. imlib_free_image_and_decache() was leaking images. I hope I made the
...
right fix here. Basically, the imlib_free_image_and_decache() call in api.c
sets the flag F_INVALID then calls the internal __ImlibFreeImage(), this
checks if the flag F_UNCACHEABLE is set, and only frees it if so.
So the image never got free()d. I have changed the
imlib_free_image_and_decache() to set the F_UNCACHEABLE flag *as well* as
F_INVALID. I hope that's the correct fix. raster?
SVN revision: 3238
2000-08-23 00:11:39 +00:00
Carsten Haitzler
ec7148bb2b
fix static gc for multipel servers
...
SVN revision: 3195
2000-08-20 21:54:21 +00:00
Carsten Haitzler
1896e7b45e
add 1 more font routine for getting geometry - useful. you'll need to
...
update imlib2 too to get evas to compile & work - it uses this routine
SVN revision: 3087
2000-08-10 22:11:40 +00:00
Tom Gilbert
6afed42c4a
Don't show duplicates in imlib_list_fonts().
...
SVN revision: 3079
2000-08-09 19:41:29 +00:00
Tom Gilbert
b257c14d76
Fixed imlib_list_fonts()
...
It was calling stat on filenames without paths, so that was failing.
SVN revision: 3064
2000-08-07 21:39:35 +00:00
Carsten Haitzler
c465599b95
fix mem leak in lisitng fonts
...
SVN revision: 3043
2000-08-06 19:44:05 +00:00
Tom Gilbert
7389e00d31
fix core on imlib_list_fonts()
...
SVN revision: 3042
2000-08-06 19:41:13 +00:00
Michael Jennings
8d141765c0
Wed Jul 12 22:20:53 PDT 2000
...
(KainX)
It's generally a good idea to increment the reference count when you
implement reference counting. This should fix the mysterious problems
people have been having with Imlib2 stealing pixmaps out from under
Eterm.
SVN revision: 2916
2000-07-13 05:04:36 +00:00
Tom Gilbert
ce84557641
Willem's rotation patch.
...
SVN revision: 2889
2000-06-25 18:13:36 +00:00
Carsten Haitzler
cee044cabc
apparently clone doesnt lone EVERYTHING.. now it clones all of it except
...
attached data tags...
SVN revision: 2865
2000-06-23 19:34:11 +00:00
Chris Ross
1315abe956
Be quiet.
...
SVN revision: 2757
2000-06-06 11:00:46 +00:00
Chris Ross
f4eaa25fa7
Start of a filter test app, and applied Willem's patch for imlib2. thanks
...
Willem.
SVN revision: 2731
2000-05-30 22:10:01 +00:00
Chris Ross
28b3445f1a
Ok, some more clean ups to the filter stuff, should have some new filters to
...
play with soon - want to get the stuff correct before I commit some more
stuff. dox is the start of dox2 the document viewer based on imlib2. Designed
so that the style of the docs is seperate from the contents. Will evolve
rapdily over the next week.
SVN revision: 2716
2000-05-28 15:17:38 +00:00
Chris Ross
e67e249949
Clean up of code, all macros for filter_param -> real varaible are put in
...
script.h. Changed filters to reflect this change, and actually plan on writing
some more macors and filters soon.
SVN revision: 2689
2000-05-22 11:41:40 +00:00
Chris Ross
bd5836823e
* rewrite of the script parser, basically you can now parser a filter as a
...
variable to another filter as willem requested the other day.
eg.
filter( var=anotherfilter( var=13,var=30 ), var=blum );
youcan have as manylevels of filters as you want.
* parser should be quicker, no need to add "NULL" to the end of a
imlib_apply_filter() command.
* some more funky filters should be added soon, at 4.45am i decided to leave
that job till t/m.
SVN revision: 2686
2000-05-22 03:23:03 +00:00
Chris Ross
0a32e88438
Gah, turn off debug mode, and comment out necessary blurb...
...
SVN revision: 2678
2000-05-21 00:21:58 +00:00
Chris Ross
c200ced976
* modifed the script engine, instead of three passes i've nobbled it down to
...
one, this means the bump_mapped pr0n will now render a coupla degree's faster
(gilbertt this is for you, and those pictures of pabs' mom)
* Update Imlib2.h and api.c to reflect changes
ps. on the road to the next gen script interpreter
SVN revision: 2677
2000-05-21 00:04:39 +00:00
Chris Ross
2e5728f366
* Changed some of the methods to stop furutre name conflicts
...
* Added Willems patch for bump mapping -very vey cool, check out
test/imllib2
* Died due to excess excitement over bump mapping
SVN revision: 2674
2000-05-20 22:33:14 +00:00
Carsten Haitzler
caa073ee7b
bowis's filter stuff... :)
...
SVN revision: 2673
2000-05-20 17:37:00 +00:00
Carsten Haitzler
589473593b
oops - forgot to commit that :)
...
SVN revision: 2656
2000-05-16 18:17:48 +00:00
Carsten Haitzler
74af24a8ed
OS2 pacthes make imlib2 build on os/2 apparently :)
...
SVN revision: 2653
2000-05-15 23:18:35 +00:00
Carsten Haitzler
9e55f36473
gawwwwwwwwwd - oops th = h not th = w; :)
...
SVN revision: 2649
2000-05-14 19:15:51 +00:00
Carsten Haitzler
00c6064e79
use willems math... :)
...
SVN revision: 2632
2000-05-12 19:15:03 +00:00
Carsten Haitzler
dd38114d7f
up to 0.0.5
...
SVN revision: 2627
2000-05-12 01:19:06 +00:00
Carsten Haitzler
e55dc05d0b
blend.c - RGBA destination works -and its optimized.. just a lookup..
...
SVN revision: 2626
2000-05-12 01:16:42 +00:00
Carsten Haitzler
cce0e519cf
the RIGHT math for RGBA->RGBA ops... :) not optmized at all tho :)
...
SVN revision: 2623
2000-05-11 07:25:18 +00:00
Carsten Haitzler
91416b3c2f
get rid of unused flsuh func, cleanup rects properly for case of 1 rect
...
SVN revision: 2617
2000-05-09 18:30:52 +00:00
Tom Gilbert
ea2371b206
This is weird. I'm sure I added the prototypes for these context_get_*
...
functions to Imlib2.h before... Yet they aren't there.... Hrm...
SVN revision: 2616
2000-05-09 17:26:30 +00:00
Carsten Haitzler
1679cca791
fixzed C code for ALPHA destination.. ok NOW its got it right... havent done
...
asm code though... MAY need to optimize C code math for alpha dest.
SVN revision: 2613
2000-05-08 23:20:11 +00:00
Peter Kjellerstedt
4c35ac5beb
Removed this generated file from CVS (again).
...
SVN revision: 2609
2000-05-08 16:41:43 +00:00
Carsten Haitzler
306060052c
build dither table for masks alwasy... even in depths > 16
...
SVN revision: 2606
2000-05-06 19:37:23 +00:00
Carsten Haitzler
01d14d7867
asm for colormod ops......... :)
...
SVN revision: 2600
2000-05-05 16:28:39 +00:00
Carsten Haitzler
15ff380285
aha! trying to free null pointers? NO NO NO - bad boy!
...
SVN revision: 2596
2000-05-04 16:32:58 +00:00
Carsten Haitzler
2fbc8d2424
allow for flipping whilst scaling and rendering... :)
...
SVN revision: 2589
2000-05-02 17:33:23 +00:00
Carsten Haitzler
2676818732
write text at any angle............... :) patches form willem again :)
...
SVN revision: 2583
2000-04-30 19:15:12 +00:00
Carsten Haitzler
2f077c4835
handle infinite loop for tile if scalign down to 1x1)
...
SVN revision: 2559
2000-04-27 07:51:25 +00:00
Michael Jennings
d869bc8e5b
Hush up on the warning.
...
SVN revision: 2555
2000-04-27 03:30:10 +00:00
Michael Jennings
4853dbe3d7
Don't cache partially-loaded images.
...
SVN revision: 2554
2000-04-27 03:28:45 +00:00
Carsten Haitzler
cc8e9b0183
better asm detection - there's an --enable-mmx now too if you want to
...
force or disable the feature by force... it will try autodetect under linux
but only on the build machine...
SVN revision: 2546
2000-04-27 02:32:28 +00:00
Tom Gilbert
ed923261d4
Thu Apr 27 03:16:59 GMT 2000
...
(gilbertt)
Okay, an ImlibProgressFunction now return int, not void. The idea of this is
so that a progressive load may be aborted midway, simply by returning 0 from
the progress callback. There are a number of reasons for wanting this.
This is a slight breakage to people currently using progressive loading -
you'll have to change your definition to int, and return 1 to get normal
behaviour again. As far as I know, only feh and imlib2_view uses progressive
loading, and I'll sort those two out. To anyone else, sorry, but it's not
released yet, what did you expect? ;-)
Notice. I haven't changed the loaders yet, so returning 0 won't do squat
until tomorrow, when I change them all. What they will do is clean up and
return what they've got so far. If anyone who wrote a loader wants to do
their own, cool, it'll save me learning the api of every damn image lib ;-)
It's just a case of swapping
progress(params, ...);
with
if(!progress(params, ...)
cleanup_some_stuff_and_return_what_there_is();
Otherwise, I'll do it myself tomorrow.
Can anyone tell I've got time off work? ;-)
SVN revision: 2544
2000-04-27 02:14:59 +00:00
Tom Gilbert
ef67431a5b
Consolidate one ChangeLog in the root dir.
...
SVN revision: 2543
2000-04-27 01:51:07 +00:00
Tom Gilbert
eff825c0ee
Thu Apr 27 02:59:57 GMT 2000
...
(gilbertt)
Changed all the loaders to use ImlibProgressFunction instead of defining it
themselves. This is so I can change them all at once tomorrow.
SVN revision: 2542
2000-04-27 01:48:17 +00:00
Carsten Haitzler
bf98465ea4
ok.. mmx asm for routines again.. and this time... they seem to not segv :)
...
SVN revision: 2538
2000-04-26 19:36:20 +00:00
Carsten Haitzler
939419bbf4
slight api changes..... problem was we have a useless paramin the pixmap gen
...
calls - it shoudl have used the context... :)
SVN revision: 2535
2000-04-25 18:17:37 +00:00
Michael Jennings
889d16f8e1
Never mind. I fixed the bugger.
...
SVN revision: 2533
2000-04-25 03:29:48 +00:00
Michael Jennings
bc4976e023
Fixed a possible divide by 0.
...
SVN revision: 2515
2000-04-22 03:45:46 +00:00
Carsten Haitzler
c58aa765c0
sorry - needed to unpatch code for old scaling to work.........
...
SVN revision: 2512
2000-04-20 22:49:12 +00:00
Carsten Haitzler
54b76ea1f7
scalign code back to old scaling... new scalign code has bugs... even the C
...
code has segv's.. somewhere... :(
SVN revision: 2511
2000-04-20 22:29:10 +00:00
Carsten Haitzler
4a09d1fe8a
disable damnit!
...
SVN revision: 2510
2000-04-20 02:39:00 +00:00
Carsten Haitzler
1f4e1b0a9e
mmx scaling back in - but forcibly disabled. new C scalign for scalign down..
...
works now.. :)
SVN revision: 2509
2000-04-20 02:37:29 +00:00
Carsten Haitzler
6f90764a22
add the bugger :)
...
SVN revision: 2503
2000-04-19 17:50:18 +00:00
Carsten Haitzler
aa89de24f8
rgba code for plain 16bpp using mmx... :) and blend rounding asm error fixed
...
thanks willem :)
SVN revision: 2502
2000-04-19 16:53:34 +00:00
Carsten Haitzler
0b5aae9a1a
unpatch scaling down code - there seems to be a segfault in it somewhere :)
...
SVN revision: 2493
2000-04-17 18:20:34 +00:00
Carsten Haitzler
5efd22e723
wow willem.. scalign down mmx code too.. :)
...
SVN revision: 2491
2000-04-17 07:59:06 +00:00
Carsten Haitzler
618cde9552
man.. more mmx asm for scaling.. thanks willem... you love this dont you? :)
...
SVN revision: 2490
2000-04-16 18:26:16 +00:00
Michael Jennings
ffe5df89f3
"Hi. My name is raster, and I smoke crack. I think I'll dereference this
...
pointer I just freed. Sound like a good idea? Yes, I thought so too."
:-P
SVN revision: 2488
2000-04-14 03:11:19 +00:00
Carsten Haitzler
e8c7419bf8
FIX FIX! evil mmx code! missing decls! thanks dragan - mej ::)
...
SVN revision: 2487
2000-04-13 23:27:07 +00:00
Carsten Haitzler
784415ca0a
get rid of printf
...
SVN revision: 2486
2000-04-13 20:31:27 +00:00
Carsten Haitzler
da1d0817cd
no - DONT put dmalloc in!
...
SVN revision: 2485
2000-04-13 20:29:01 +00:00
Carsten Haitzler
2086c062e5
foudn evil mmx code overwriting memeory! thanks mej. back to the C code for
...
you!
SVN revision: 2484
2000-04-13 20:24:58 +00:00
Carsten Haitzler
ea970ca51a
oops =- add
...
SVN revision: 2483
2000-04-13 17:10:50 +00:00
Carsten Haitzler
a8228e774a
changelog..... NOOOOOOOOO cant be! :)
...
SVN revision: 2481
2000-04-13 16:37:42 +00:00
Carsten Haitzler
300307782a
full fix of logic in blending rgb->rgb functions in C NB: the mmx asm needs to
...
be chnaged to reflect this
SVN revision: 2480
2000-04-13 16:31:51 +00:00
Carsten Haitzler
7968e8e119
blum blum blum
...
SVN revision: 2477
2000-04-13 03:02:19 +00:00
Michael Jennings
1759a0c9e4
Several miscellaneous bugfixes I did while converting Eterm to use Imlib2.
...
SVN revision: 2469
2000-04-12 23:40:10 +00:00
Carsten Haitzler
927519352b
fix corner case for clippign where integer math rounds source widht to 0 where
...
it shoudl be 1.
SVN revision: 2465
2000-04-12 18:47:15 +00:00
Michael Jennings
a621fc8a1f
Added a function to retrieve the image filename, if it has one. It returns
...
a pointer to an internal string, so if you want to alter the filename, you
MUST strdup() it.
SVN revision: 2464
2000-04-11 23:34:59 +00:00
Carsten Haitzler
06825b3645
fix some blending cases
...
SVN revision: 2458
2000-04-10 21:50:23 +00:00
Carsten Haitzler
80bd308cd3
include updated comments
...
SVN revision: 2455
2000-04-10 18:26:57 +00:00
Carsten Haitzler
3def8d48d3
optimize mmx blending more.. uswed to do 15 million pixels/sec... now does 25
...
million per sec.. compared to the C (9million per sec) thats pretty good now
SVN revision: 2454
2000-04-10 18:12:40 +00:00
Tom Gilbert
5a8634780e
Thought you could use a ChangeLog. I filtered it from muy cvs-commits-list
...
mbox, so bin it if you don't like =)
SVN revision: 2451
2000-04-09 00:05:20 +00:00
Carsten Haitzler
cde535754f
dont compile mmx data struct in if no mmx asm is used
...
SVN revision: 2449
2000-04-08 19:20:13 +00:00
Carsten Haitzler
60e39b1876
check for i686 artch and only then compile the mmx asm (i586 isnt guaranteed
...
to have mmx - NB libs built for mmx will NOt work on non mmx boxes right now
need to do a runtime chekc for that)
SVN revision: 2448
2000-04-08 19:15:48 +00:00
Carsten Haitzler
381cf576c5
add asm for blending.... this will break imlib2 right now for all platforms that
...
arent xz86 intel 9unless you rmove the asm form the makefile and blend.c
SVN revision: 2447
2000-04-08 18:45:18 +00:00
Carsten Haitzler
62782c973c
now that was bad! fix update appending :)
...
SVN revision: 2446
2000-04-08 04:13:52 +00:00
Carsten Haitzler
c502563a65
dont need that code no more
...
SVN revision: 2427
2000-04-05 03:56:26 +00:00
Carsten Haitzler
9714cd42d4
fix dither mask generation.. works again now.. use for icons to dnd
...
SVN revision: 2426
2000-04-05 01:34:05 +00:00
Carsten Haitzler
a61c7169aa
faster scaling up.......... :)
...
SVN revision: 2422
2000-04-03 22:38:00 +00:00
Carsten Haitzler
c5f7de93db
updates..... actually clip if only 1!
...
SVN revision: 2407
2000-04-02 20:42:41 +00:00
Carsten Haitzler
9d7ebb119d
need new updates call.....
...
SVN revision: 2406
2000-04-02 20:31:40 +00:00
Carsten Haitzler
9caa5471b7
no more of that thanks
...
SVN revision: 2384
2000-03-30 03:28:56 +00:00
Carsten Haitzler
a78ec3ab90
um ooops - how did that happen?
...
SVN revision: 2371
2000-03-29 02:57:28 +00:00
Carsten Haitzler
dd9240debc
optimize scalign down routine for RGBA as well as RGB...
...
SVN revision: 2369
2000-03-28 23:20:37 +00:00
Carsten Haitzler
0780bd87ac
speedup scaling down....... but i cant seem to get any speedup for up scaling
...
SVN revision: 2367
2000-03-28 22:25:45 +00:00
Carsten Haitzler
87146f0a33
damn willem! you love playing with imlib2 don;t you? :-) good show :)
...
SVN revision: 2358
2000-03-28 18:09:46 +00:00
Carsten Haitzler
24cc517876
oopsa typo
...
SVN revision: 2349
2000-03-27 19:39:36 +00:00
Carsten Haitzler
aeb8242972
nicer including of config.h
...
SVN revision: 2346
2000-03-27 19:20:28 +00:00
Carsten Haitzler
e65ff79503
BGR56r & BGR555 support.......... please test if u have a display like this :)
...
SVN revision: 2345
2000-03-27 19:17:37 +00:00
Carsten Haitzler
904b9f7c61
ummmm fix dat.....
...
SVN revision: 2331
2000-03-26 00:35:43 +00:00
Carsten Haitzler
bde5637a51
fix endianes problems..... works now on sparc solaris nicely.. :)
...
SVN revision: 2330
2000-03-26 00:10:45 +00:00
Carsten Haitzler
bdafe05ca0
rotate speedups - rend bugfix... wheeeeeee
...
SVN revision: 2316
2000-03-24 19:06:01 +00:00
Carsten Haitzler
2c226c4ae2
oops - missed modfifying colros there.. :)
...
SVN revision: 2315
2000-03-24 19:03:24 +00:00
Carsten Haitzler
2841de3a2d
optmize.. fix endianess stuff... :)
...
SVN revision: 2302
2000-03-22 22:26:58 +00:00
Carsten Haitzler
2e97f2795c
fix cmod.......
...
SVN revision: 2289
2000-03-21 09:38:39 +00:00
Carsten Haitzler
2ea81ec460
I'm back....... :)
...
SVN revision: 2282
2000-03-19 22:53:42 +00:00
Tom Gilbert
351cb98ab2
Okay. The loader list is now trimmed. Where it would previously contain:
...
argb.a bmp.a gif.a jpeg.a png.a pnm.a tiff.a
argb.la bmp.la gif.la jpeg.la png.la pnm.la tiff.la
argb.so bmp.so gif.so jpeg.so png.so pnm.so tiff.so
It now contains:
argb
bmp
gif
jpeg
png
pnm
tiff
lt_dlopen knows how to do the Right Thing with these, trying first the .la,
then the .so. Now the loaders are each tried once per image (if none of them
manage to load it).
Added the following functions to achieve this:
char **__imlib_TrimLoaderList(char **list, int *num);
int __imlib_LoaderInList(char **list, int size, char *item);
SVN revision: 2273
2000-03-18 13:56:29 +00:00
Tom Gilbert
0078baf7d1
nothing major
...
SVN revision: 2269
2000-03-18 04:43:47 +00:00
Tom Gilbert
8cb92acb78
Removed a crufty bit.
...
SVN revision: 2268
2000-03-18 04:12:23 +00:00
Carsten Haitzler
4b460be3b6
get context patch from tom......
...
SVN revision: 2179
2000-03-04 02:45:08 +00:00
Carsten Haitzler
b5dc9ceaf1
better
...
SVN revision: 2175
2000-03-03 17:15:51 +00:00
Carsten Haitzler
b36488c507
flum
...
SVN revision: 2174
2000-03-03 16:42:18 +00:00
Carsten Haitzler
02bf3b4e28
flum..........
...
SVN revision: 2162
2000-03-01 17:04:23 +00:00
Carsten Haitzler
8b4ee5e236
dont add that1
...
SVN revision: 2145
2000-02-27 19:23:36 +00:00
Carsten Haitzler
d51a33d0e1
add files...
...
SVN revision: 2144
2000-02-27 19:23:21 +00:00
Carsten Haitzler
7acf0a1c95
rotattion code added... :)
...
SVN revision: 2142
2000-02-27 18:36:26 +00:00
Carsten Haitzler
b50a225fcf
const char *
...
SVN revision: 2018
2000-02-07 22:38:00 +00:00
Carsten Haitzler
f6d7e4714b
oooops - image and pixmap cache baddies.. :(
...
SVN revision: 2017
2000-02-07 22:04:05 +00:00
Carsten Haitzler
57d64b9112
oopsie - problem with non extension format images :)
...
SVN revision: 2015
2000-02-07 17:53:24 +00:00
Carsten Haitzler
a914e5986c
get enmdianess roight for sparc (and ppc) for masks...
...
SVN revision: 1979
2000-01-26 05:25:19 +00:00
Carsten Haitzler
72e31d1c2d
oops typo
...
SVN revision: 1978
2000-01-26 05:18:31 +00:00
Carsten Haitzler
d64dce02e2
endinaness for masks broken onf sparc.. fix...
...
SVN revision: 1977
2000-01-26 05:14:33 +00:00
Carsten Haitzler
b7591b25fe
ooops - fix :)
...
SVN revision: 1969
2000-01-24 19:18:17 +00:00
Carsten Haitzler
0801c04efe
that was silly! fix fix fix - thanks alan :)
...
SVN revision: 1965
2000-01-24 17:07:05 +00:00
Carsten Haitzler
b982e35ac6
2 more checks in save calls for image data...
...
SVN revision: 1957
2000-01-21 20:36:27 +00:00
Carsten Haitzler
15c6db5db0
oops - forgort to remove param from imlib_free_color_rangex
...
SVN revision: 1933
2000-01-17 18:20:28 +00:00
Carsten Haitzler
f94a22dde6
up version... add c++ usability..
...
SVN revision: 1893
2000-01-10 12:25:11 +00:00
Carsten Haitzler
e23e65cc0a
add dither mask pixmap rendering contexts...
...
SVN revision: 1880
2000-01-10 06:49:19 +00:00
Carsten Haitzler
ba64968217
add to header.....
...
SVN revision: 1879
2000-01-10 05:42:35 +00:00
Carsten Haitzler
23328e8904
i cant beleieve i missed wrappign the pixmap free function....
...
SVN revision: 1878
2000-01-10 05:41:17 +00:00
Carsten Haitzler
a06e27d641
dont be so anal abotu ewncodings... if no apple or windows encoding is there
...
just use encoding charmap 0 :)
SVN revision: 1873
2000-01-07 18:40:48 +00:00
Carsten Haitzler
eab75dc3d0
no more dmalloc now :)
...
SVN revision: 1869
2000-01-06 11:03:41 +00:00
Carsten Haitzler
12c86a7156
off by one in string alloc! bugger! :)
...
SVN revision: 1868
2000-01-06 11:02:38 +00:00
Carsten Haitzler
df05d35899
search path for font mroe sanely
...
SVN revision: 1863
2000-01-06 06:32:43 +00:00
Carsten Haitzler
cb1be843d7
allow full paths for font names too..
...
SVN revision: 1862
2000-01-06 05:58:15 +00:00
Carsten Haitzler
79d2919f9f
add loader flush call and fix gif loader to be able to load when theres no
...
progress set :)
SVN revision: 1855
2000-01-05 10:26:39 +00:00
Carsten Haitzler
03b120d9ff
get clipping right...
...
SVN revision: 1757
1999-12-26 18:27:03 +00:00
Carsten Haitzler
7e548e1ca5
fix missing case in scaling for blending objects...
...
SVN revision: 1752
1999-12-23 23:30:16 +00:00
Carsten Haitzler
87179eaf2c
oops typo :)
...
SVN revision: 1751
1999-12-23 16:43:23 +00:00
Carsten Haitzler
2a0b19880b
for acceleration to work i nee to add a parameter to put_back_data
...
SVN revision: 1735
1999-12-22 08:03:58 +00:00
Carsten Haitzler
7da546572c
fix fix fix fix......................... :)
...
SVN revision: 1615
1999-12-14 09:18:23 +00:00
Carsten Haitzler
1740643f07
include config.h
...
SVN revision: 1582
1999-12-10 14:31:32 +00:00
Carsten Haitzler
1cd47732a5
compile damnit...
...
SVN revision: 1581
1999-12-10 14:30:09 +00:00
Carsten Haitzler
8227fc64be
more blum - bloody freetype - why does debian have to go move the headre to a
...
different location to where it always was?
SVN revision: 1580
1999-12-10 14:27:54 +00:00
Carsten Haitzler
7b324a85ee
oops :) fixed :)
...
SVN revision: 1571
1999-12-10 12:34:11 +00:00
Carsten Haitzler
d8229fb72e
just up the versions to show i did something... :)
...
SVN revision: 1534
1999-12-07 17:30:01 +00:00
Carsten Haitzler
a48b95de30
lets break the Imlib2 api and chnage it... now its context based.. :)
...
SVN revision: 1533
1999-12-07 17:28:53 +00:00
Carsten Haitzler
770708c381
oops saver does rescan loader - so unless you laoded an image no laoders
...
will be around... and it wont get rescanned on save.. :)
SVN revision: 1481
1999-12-02 21:02:00 +00:00
Carsten Haitzler
71af6323fb
ok - gradients now dont overflow the precision buffer as badly.. :)
...
SVN revision: 1334
1999-11-19 07:42:21 +00:00
Carsten Haitzler
c4c1d85c67
oh oops - image blending whilst scaling want quite right in the api.. :)
...
SVN revision: 1319
1999-11-17 00:01:58 +00:00
Carsten Haitzler
d18b57b8ce
oop s- clipping problme wiht lines.. fixed :)
...
SVN revision: 1316
1999-11-16 00:06:54 +00:00
Carsten Haitzler
b10cf5f593
oopsie in blend.c
...
SVN revision: 1294
1999-11-13 18:55:40 +00:00
Carsten Haitzler
d7dee5c099
added AUTHORS file.. fixed copyting....
...
SVN revision: 1205
1999-11-07 08:51:47 +00:00
Carsten Haitzler
0b486d8824
ooooooooops :)
...
SVN revision: 1178
1999-11-04 16:20:08 +00:00
Carsten Haitzler
e371b274e1
mising 2 important calls inthe font code... :)
...
SVN revision: 1169
1999-11-04 09:02:58 +00:00
Carsten Haitzler
e1d3ba3366
again..........
...
SVN revision: 1168
1999-11-03 16:22:20 +00:00
Carsten Haitzler
59a23911fd
add soem stuff and new blend.c from ryan :)
...
SVN revision: 1167
1999-11-03 16:21:02 +00:00
Carsten Haitzler
4b69037861
fix a little of the rend code - never testyed that bit...
...
andf the imlib2_view works nicely iwth zooming too :)
SVN revision: 1145
1999-11-02 13:32:39 +00:00
Carsten Haitzler
2c99df3cd7
oops - fix that filled rect drawing code
...
SVN revision: 1139
1999-11-02 11:12:56 +00:00
Carsten Haitzler
3a0b11b007
argb format loader & saver. my own format just so i can load and save raw ARGB
...
data blindingly fast for imlib2 :)
SVN revision: 1136
1999-11-02 10:16:50 +00:00
Carsten Haitzler
0061ac78ef
starting on pnm loader (ppm, pgm pbm, pam) - will finish later...
...
SVN revision: 1117
1999-11-01 18:45:29 +00:00
Carsten Haitzler
6a968baef7
no printf
...
SVN revision: 1116
1999-11-01 18:13:02 +00:00
Carsten Haitzler
18502ab692
add ignores......
...
SVN revision: 1112
1999-11-01 18:06:33 +00:00
Carsten Haitzler
9307c331bd
restructure the direcotry a bit.......
...
SVN revision: 1108
1999-11-01 17:49:58 +00:00
Carsten Haitzler
942f4219e8
re-structure......
...
SVN revision: 1107
1999-11-01 17:40:51 +00:00