Commit Graph

43 Commits

Author SHA1 Message Date
Rafael Antognolli 94540f3b5b Changing Ethumb license from LGPL3 to LGPL2.
Making this change to be in agreement with some other EFL libraries
under LGPL.



SVN revision: 52275
2010-09-14 23:02:45 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Gustavo Sverzut Barbieri a2a0ab8d4c Fix memory alignment and remove dead/useless code.
* those write to stderr were legacy from development, some of them
   were even wrongly accessing out-of-buffer memory;

 * some platforms cannot access non-aligned memory, like integers that
   are not aligned to sizeof(int) and do on. Change the generated
   message using memcpy to aligned memory before using them. Add
   comment to explain that;



SVN revision: 50135
2010-07-08 22:37:04 +00:00
Iván Briano b9d2cf0983 Fix nasty cenourette.
Also from Raphael Kubo, you can ask him what the commit message means (rakuco around the irc plane of existence)


SVN revision: 49976
2010-07-01 19:54:47 +00:00
Iván Briano 8e50bcb41b More from Raphael Kubo, register log domains
SVN revision: 49975
2010-07-01 19:48:54 +00:00
Iván Briano 01b6434842 From Raphael Kubo da Costa, fix callbacks to match Ecore changes
SVN revision: 49974
2010-07-01 19:42:12 +00:00
Gustavo Sverzut Barbieri 144e732a24 remove spurious \n for eina_log messages.
SVN revision: 46756
2010-03-02 00:39:37 +00:00
Gustavo Sverzut Barbieri 9345b211b0 fix llvm/clang and gcc errors.
NOTE: mixing write() and fprintf() to the same descriptor (stderr,
      done by ERR()), will likely cause problems :-/



SVN revision: 46753
2010-03-02 00:34:40 +00:00
Luis Felipe Strano Moraes c33a7982ed fix build of ethumbd client.
SVN revision: 46093
2010-02-11 21:05:31 +00:00
Sebastian Dransfeld a82e7511aa make clang happy
SVN revision: 45197
2010-01-15 20:51:01 +00:00
Rafael Antognolli 6cbcfd262f ethumb: now using ecore_exe to start the slave.
SVN revision: 44092
2009-12-01 13:34:09 +00:00
Vincent Torri a0dc963b1a fix library compilation on Windows (it should be cleaned, though)
There is still a problem with the binary, because of ecore_getopt


SVN revision: 43402
2009-11-01 21:55:15 +00:00
João Paulo Rechi Vita d0155d87ee The "generated" D-Bus signal is published with an int64 as it first
parameter but an int32 is sent instead.

Patch by: João Paulo Rechi Vita <jprvita@profusion.mobi>

--This lina, and those below, will be ignored--

M    ethumb/src/bin/ethumbd.c


SVN revision: 43160
2009-10-19 14:05:54 +00:00
João Paulo Rechi Vita 2b93b55313 Sending an empty byte array to Ethumbd through the D-Bus API was
leading to a segfault.

Patch by: João Paulo Rechi Vita <jprvita@profusion.mobi>



SVN revision: 43159
2009-10-19 14:04:43 +00:00
Gustavo Sverzut Barbieri bea73e88bd Ethumb improvements and more docs.
make some types unsigned int to better represent what they will
contain, fix dbus api to match so.



SVN revision: 42545
2009-09-17 14:05:04 +00:00
Gustavo Sverzut Barbieri bf4e52869b configure summary, maximum log level and other improvements.
Have all source to include config.h conditionally (HAVE_CONFIG_H),
define EINA_LOG_LEVEL_MAXIMUM, minor changes to configure.ac to make
it conform with the rest of efl.



SVN revision: 42544
2009-09-17 12:04:35 +00:00
Gustavo Sverzut Barbieri 97645fe7bc API BREAK: Fix Ethumb API to be more EFL-like
* Callbacks were named to help Vala bindings.
 * All callbacks get 'void *data' as first argument, always.
 * All async methods get free_data parameters and call them also on disconnect()
 * queue_remove() renamed to generate_cancel() to be more clear.
 * queue_clear() renamed tp generate_cancel_call() to be more clear.



SVN revision: 42445
2009-09-12 18:23:05 +00:00
Gustavo Sverzut Barbieri 992936af22 Update to match new EINA init/shutdown.
SVN revision: 42301
2009-09-06 22:23:04 +00:00
Gustavo Sverzut Barbieri e229b25826 loggify ethumb.
remove debug_level options as it is better handled by EINA_LOG_LEVELS
and EINA_LOG_LEVEL variables, for example:

  EINA_LOG_LEVEL=3 EINA_LOG_LEVELS=ethumb:4,ethumb_client=1

will show debug for ethumb (lib), just errors (no warnings) for
ethumb_client library and everything else shows "info".



SVN revision: 42261
2009-09-04 19:27:12 +00:00
xcomputerman 1f24df9c39 Update EINA_ERROR_LEVEL* to EINA_LOG_LEVEL* to allow building again
SVN revision: 42255
2009-09-04 18:04:00 +00:00
Daniel Kolesa b58ac165cf Fix build of ethumb on some machines..
SVN revision: 41457
2009-07-20 15:20:25 +00:00
Gustavo Sverzut Barbieri 980d778e39 ethumbd_client.
do the same as ethumb, but uses ethumbd for doing it. Yet another
sample on ethumb usage.



SVN revision: 41401
2009-07-17 15:29:44 +00:00
Gustavo Sverzut Barbieri 7acfd6d648 fix theme/frame parsing to not leak and be simpler.
we don't need to allocate memory, copy, modify and free (free was
missing!), we can just give stringshare the length to use.



SVN revision: 41398
2009-07-17 14:48:03 +00:00
Gustavo Sverzut Barbieri 6aa85b1cf9 indent.
SVN revision: 41397
2009-07-17 14:44:11 +00:00
Gustavo Sverzut Barbieri ebcc27e426 improve tool usage.
-Q, -V, -D: change debug levels, always forget about EINA_ERROR_LEVEL :-P

 print message with status, if it failed, was generated or already exists.



SVN revision: 41374
2009-07-16 22:55:05 +00:00
Rafael Antognolli 31fc2b0dfa Added support to creating animated thumbnails from videos.
These thumbnails are generated using an edje template. Each thumbnail is
an edje file, that has a group called "movie/thumb"
The thumbnail can be animated by receiving a signal "animate" or "animate_loop"
(the last one being a loop animation that calls itself when finished), and
the animate_loop program can be stopped by receiving a signal "animate_stop".
The transition time is set based on the time of the animation (that is set
by the call ethumb_video_time_set()).



SVN revision: 41322
2009-07-13 19:38:17 +00:00
Rafael Antognolli 2dd7e38b96 Changing boolean flags to Eina_Bool.
SVN revision: 41321
2009-07-13 19:24:20 +00:00
Rafael Antognolli 116c7d3266 Fixed wrong usage of dbus.
This was also the problem causing ethumb generated callback on the client
library always return with success=1 (see ticket #337).



SVN revision: 41287
2009-07-09 19:26:16 +00:00
Rafael Antognolli f9b765ec1c Added support to set quality and compress level.
SVN revision: 41286
2009-07-09 19:16:02 +00:00
Rafael Antognolli 5dc0fa41ef Added support to free_data callbacks.
Some functions that require callbacks and data passed to them now can
receive a free_data callback as argument too.



SVN revision: 41285
2009-07-09 19:14:29 +00:00
Rafael Antognolli aac69a080f Added ethumbd (ethumb).
ethumbd is a server waiting for requests of thumbnails via dbus. A client
library is also provided, avoiding dbus burocracy (and with an API similar
to ethumb).



SVN revision: 40899
2009-06-04 21:21:43 +00:00
Rafael Antognolli 4229b4654b Fixed segfault when no file is passed as argument to ethumb.
Other minor fixes:
 - fixed use fo eina safety checks;
 - _ethumb_build_absolute_path is used inside dir_set.



SVN revision: 40840
2009-05-26 20:33:58 +00:00
Rafael Antognolli 053567b366 Changed Eina_Bool result -> Eina_Bool success (it makes more sense).
SVN revision: 40740
2009-05-19 13:18:51 +00:00
Rafael Antognolli 88d97839a1 Using Eina_Bool.
Changed int -> Eina_Bool where it makes sense.



SVN revision: 40739
2009-05-19 12:26:31 +00:00
Rafael Antognolli 16c574df94 finished callback is always called now.
The ethumb_generate() function now just returns 0 if there is already a
generation in progress (and in that case, the callback isn't called).



SVN revision: 40738
2009-05-19 11:58:29 +00:00
Rafael Antognolli b9cd220600 Added function ethumb_exists() and some API change.
SVN revision: 40282
2009-04-21 23:11:37 +00:00
Rafael Antognolli 8511aa2bd9 There is no more Ethumb_File.
Now the file path and thumbnail path are stored in the Ethumb structure.



SVN revision: 40280
2009-04-21 23:08:17 +00:00
Rafael Antognolli 939afcb3ea Added epdf plugin.
Err... maybe I forgot to svn add some files in my previous commit...



SVN revision: 40277
2009-04-21 23:03:50 +00:00
Rafael Antognolli 89b7a6be80 Added support to plugins.
Now it's possible to implement new plugins that generate thumbnails
from file formats that evas doesn't.



SVN revision: 40156
2009-04-17 23:33:45 +00:00
Rafael Antognolli 59ac58e4ca Fixed a possible segfault when file doesn't exists.
SVN revision: 40155
2009-04-17 23:31:41 +00:00
Rafael Antognolli a95c0b221f Now ethumb read from and saves to eet files.
SVN revision: 40050
2009-04-14 19:14:08 +00:00
Rafael Antognolli 85db59b8cf Changed bin/ethumb to use Ecore_Getopt.
SVN revision: 40027
2009-04-13 22:25:09 +00:00
Rafael Antognolli 258cfee990 ethumb - Thumbnailing Library
New library to generate thumbnails.
There are still some important features to be implemented, like
client-server framework, edje thumbnails and a plugin API to integrate
it with emotion and like.

Please, send comments.



SVN revision: 39805
2009-03-30 21:22:52 +00:00