Using Enlightenment 17's Epeg API (Part Deux) 29
jjrff writes "The Enlightenment
project has turned up some really cool bits lately. here is a nifty article about using their Epeg bits to easily deal with thumbnailing. Note that they also have a great deal of sample code for things like canvasing and even dealing with network delivery."
Re:This would be great (Score:1)
Re:This would be great (Score:1)
Re:This would be great (Score:2)
Umm, what? (Score:2)
Incidentally, as long as there is an Enlightenment topic, why not use it?
Re:Umm, what? (Score:2)
Re:Umm, what? (Score:3, Informative)
Re:Umm, what? (Score:1)
chuckle
(No, not a question. We have no NEED for questions
Hello, moron alert (Score:2, Insightful)
Hmm. So there's this limit called PATH_MAX, and instead of using it we'll just type the number in? Not to mention that nothing stops something passing strings bigger than that to your application
Re:Hello, moron alert (Score:3, Informative)
His reliance on static variables in functions is also yucky. Say hello to code that's never going to be thread safe. The path stuff the parent poster noted is the most breathtaking error though ...
Re:Hello, moron alert (Score:2)
Isn't the use of static variables a good thing if the alternative is to use global variables. If he was using C++ he would probably encapsulate these and have a method using a private attribute, but given that he's using C isn't it okay?
Re:Hello, moron alert (Score:2)
Re:Hello, moron alert (Score:1)
Re:Hello, moron alert (Score:1)
Re:Hello, moron alert (Score:1)
snprintf method takes: 0.571 sec for 1,000,000 iterations, strcpy etc. 0.124 sec. you have to think that every time you do something you choose a method 4+ times slower that no wonder today's software is not appreciably faster on machines 100+ times faster that they were 10 years ago.
code for the test:
#include
#include
int main(int argc, char **argv)
{
int i;
Re:Hello, moron alert (Score:1)
Re:Hello, moron alert (Score:1)
Re:Hello, moron alert (Score:1)
It's an example, for fuck's sake, not a thesis. Move on.
Enlightenment has always been Enlightening :) (Score:2)
But, he often doesn't make something you could install on a corporate desktop (I use fluxbox at work). The last E17 install I had has flashing titlebars but Alt
Re:Enlightenment has always been Enlightening :) (Score:2)
kinda spiffy how it works, too: as you alt+tab through the windows on the current desktop, the mouse cursor moves to the center of each window, as it brings it to the front.
Re:Enlightenment has always been Enlightening :) (Score:2)
This reinforces the parent post.
Moving the user's mouse pointer is bad for usability.
Re: (Score:2)
Re:Enlightenment has always been Enlightening :) (Score:1)
I've been using e16 on a couple of Ubuntu machines and I like it. I've also looked at e17 on this [debianitas.net]
Debian Live cd and it is impressive. I initially thought it would be distracting to work with it, but once I got my desktops configured it turned out to be more efficient to work with than KDE (which is still my primary).
Epeg (Score:1)
Epeg has one purpose, to scale JPEG images very quickly. One of the primary reasons it was created was because of the freedesktop.org thumbnail spec. The spec requires that the thumbnails be stored as PNG's. While experimenting with this, it was found that converting large JPEG's to PNG's was a relatively slow process because of the color space conversions and IDCT. If the spec was ex