Commit Graph

161 Commits

Author SHA1 Message Date
Cedric BAIL 828b67374e emotion: make gstreamer backend async and handle it correctly every where.
SVN revision: 62010
2011-08-02 16:22:30 +00:00
Cedric BAIL cfaac57a76 emotion: add v4l2:// uri scheme for webcam.
SVN revision: 61512
2011-07-19 22:34:54 +00:00
Cedric BAIL 716660e509 efl: fix make dist-check.
SVN revision: 61511
2011-07-19 22:34:17 +00:00
Cedric BAIL 9384d7d814 emotion: always forgot that damn svn add !
SVN revision: 61454
2011-07-17 21:58:40 +00:00
Cedric BAIL 0f1f6bfe18 emotion: remove useless code.
SVN revision: 61453
2011-07-17 21:39:26 +00:00
Cedric BAIL dad10a507f emotion: add webcam detection, cleanup code and add timing detection.
SVN revision: 61452
2011-07-17 21:38:54 +00:00
Lucas De Marchi 84f0c4de1d emotion: fix common misspellings
Misspellings detected by codespell.



SVN revision: 61406
2011-07-15 14:34:02 +00:00
Cedric BAIL 333f523df4 emotion: raise gstreamer backend as it is more stable than the other.
SVN revision: 61340
2011-07-13 14:14:32 +00:00
Cedric BAIL 95b6992006 emotion: fix off by one.
SVN revision: 61039
2011-07-05 11:02:28 +00:00
Rafael Antognolli ffcf50987f emotion - better introduction and link to emotion_test.
SVN revision: 61008
2011-07-04 14:31:01 +00:00
Jonas M. Gastal d640fdca1a Emotion: making emotion_object_play_set doc appear.
SVN revision: 60923
2011-07-01 17:13:17 +00:00
Rafael Antognolli ab09c3a11e emotion/doc - Document more functions
- emotion_object_size_get
 - emotion_object_smooth_scale_set
 - emotion_object_smooth_scale_get
 - emotion_object_ratio_get
 - emotion_object_video_mute_set
 - emotion_object_video_mute_get
 - emotion_object_title_get
 - emotion_object_meta_info_get
 - emotion_object_vis_set
 - emotion_object_vis_get
 - emotion_object_vis_supported

SVN revision: 60919
2011-07-01 14:08:29 +00:00
Jonas M. Gastal 538e2af886 Emotion: signals documentation.
SVN revision: 60917
2011-07-01 13:46:25 +00:00
Cedric BAIL 8578459813 emotion: add empty infrastructure for suspending the pipeline.
SVN revision: 60909
2011-07-01 08:57:54 +00:00
Jonas M. Gastal 4450930374 Emotion: emotion play control functions documentation.
SVN revision: 60888
2011-06-30 21:38:44 +00:00
Rafael Antognolli 4c434a15d3 emotion/doc - Document some audio functions.
- emotion_object_audio_volume_set
 - emotion_object_audio_volume_get
 - emotion_object_audio_mute_set
 - emotion_object_audio_mute_get

SVN revision: 60884
2011-06-30 20:02:12 +00:00
Rafael Antognolli dd72eeea0e emotion/doc - documented the initialization functions.
SVN revision: 60880
2011-06-30 18:31:39 +00:00
Cedric BAIL 4ecb2fccad emotion: cleanup emotion async loader on file set.
SVN revision: 60869
2011-06-30 09:49:24 +00:00
Cedric BAIL 45d0b34007 emotion: restore/save last know position for file.
SVN revision: 60825
2011-06-29 17:30:19 +00:00
Cedric BAIL 59ebbdeee0 emotion: use stringshare for file.
SVN revision: 60818
2011-06-29 13:58:42 +00:00
Cedric BAIL 1724785989 emotion: advertise only on frame size change.
SVN revision: 60665
2011-06-24 14:11:24 +00:00
Cedric BAIL 923bff4e1c emotion: advertise native resolution.
SVN revision: 60664
2011-06-24 12:26:29 +00:00
Cedric BAIL 3c8eb1b62b emotion: add a way to test if a file could be played by emotion.
SVN revision: 60637
2011-06-23 14:58:11 +00:00
Cedric BAIL c1f20d3e6b emotion: add a gstreamer sink.
This work was first started by Vincent Torri and Nicolas Aguirre.
I took the necessary time to make it work and included inside
emotion with Samsung sponsorship.

This code is not yet completly clean and fast, but it work and
make it possible to add more speed improvement later. This was
a needed infrastructure work.


SVN revision: 60532
2011-06-20 17:36:13 +00:00
Boris Faure e6119fa4d9 remove .cvsignore files
SVN revision: 60246
2011-06-12 21:38:37 +00:00
Carsten Haitzler a19a9010df avoid segv on file set (zero imge data)
SVN revision: 57391
2011-02-27 16:21:39 +00:00
Cedric BAIL 5ddad9ec96 emotion: override engine by setting EMOTION_ENGINE environ.
SVN revision: 57320
2011-02-25 11:33:19 +00:00
Gustavo Sverzut Barbieri 6cbd3d09f4 warning cleanup.
there are still warnings from write(2) calls, they should be handled,
but no time now.



SVN revision: 54710
2010-11-19 02:51:46 +00:00
Gustavo Sverzut Barbieri 720e3827bb fix static modules build, remove useless checks.
- custom pipelines are gone, remove from src/lib/Makefile.am
 - no need to check for ffmpeg/cdda anymore, they are handled by playbin2



SVN revision: 53837
2010-10-24 16:39:42 +00:00
Vincent Torri 2d28628c95 API break: emotion_object_file_set() returns a boolean, now.
SVN revision: 53648
2010-10-20 07:55:20 +00:00
Carsten Haitzler 66771ce7f2 avoid possible seg if accessing video dat for convert before its
decided and set.



SVN revision: 53246
2010-10-10 23:39:32 +00:00
Gustavo Sverzut Barbieri 1520c60364 shutup stupid emotion debug!
to get them back, use EINA_LOG_LEVELS for each module or the catch-all:

   export EINA_LOG_LEVELS_GLOB='emotion*:4'

ah, that was making me sick while playing enjoy... :-D



SVN revision: 53170
2010-10-07 22:16:43 +00:00
Carsten Haitzler 2d488b5d32 some fixes/improvements to emotion -> foound some buggers in xine -
tried making gst do it - should kind of work. i think gst is broken tho.



SVN revision: 52800
2010-09-27 10:11:52 +00:00
Cedric BAIL 2a596a37e5 * emotion: fix build of static module.
SVN revision: 51759
2010-08-30 16:18:11 +00:00
Cedric BAIL 61c07ad1c4 * emotion: emotion_object_init will choose the best available backend
if NULL is passed.


SVN revision: 51747
2010-08-30 13:25:35 +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
Andreas Volz 5967027157 doxygen
SVN revision: 50486
2010-07-25 18:29:01 +00:00
Christopher Michael f503b5f75b Move Emotion.h to own dir.
SVN revision: 50147
2010-07-09 06:38:12 +00:00
Vincent Torri d762831a62 copy/paste error
SVN revision: 48254
2010-04-23 17:37:31 +00:00
Vincent Torri 83723040ad wrong default path for the emotion modules
SVN revision: 48208
2010-04-21 18:59:24 +00:00
Gustavo Sverzut Barbieri 6262a884fb Initial support for Emotion as Edje EXTERNAL.
Very crude, needs testing... but I can already play videos from inside
editje and edje_player :-D



SVN revision: 47642
2010-04-01 03:59:39 +00:00
Gustavo Sverzut Barbieri dc0eb07860 allow changing module during runtime, don't forget about file and play state.
SVN revision: 47638
2010-04-01 02:17:40 +00:00
Gustavo Sverzut Barbieri 4a9c82671e consts++
SVN revision: 47637
2010-04-01 01:33:56 +00:00
Sebastian Dransfeld 001757e7bf Remove uneeded header
SVN revision: 45744
2010-01-30 22:21:24 +00:00
Cedric BAIL 44193541f7 * ecore: Move ecore_job inside ecore.
Patch from Albin "Lutin" Tonnerre <albin.tonnerre@gmail.com>.


SVN revision: 45570
2010-01-25 21:59:21 +00:00
Vincent Torri 2a1b159536 * enable static build of modules
* clean up autotools
 * remove some warnings

issues:
 * vlc backend can not be built on my computer(API change
   in libvlc, it seems)
  * when i build xine *and* gstreamer as static, i get a
    multiple defined of __eina_module_init and __eina_module_shutdown


SVN revision: 44884
2010-01-04 18:45:40 +00:00
Cedric BAIL edf90cc827 * emotion: Add backend autodetection ability (you can pass NULL, and
have some good hope for a result now :-) )


SVN revision: 44784
2009-12-30 12:54:06 +00:00
Cedric BAIL 65c4336b0b * emotion: Switch to Eina module.
TODO: Add configure option to build module statically.


SVN revision: 44781
2009-12-30 10:49:06 +00:00
Sebastian Dransfeld f6b7273237 Remove use of deprecated event
XINE_EVENT_MRL_REFERENCE is deprecated, listen for
XINE_EVENT_MRL_REFERENCE_EXT.

SVN revision: 43540
2009-11-08 20:27:12 +00:00
Cedric BAIL d331f73b55 * emotion: Remove Evas_Bool.
SVN revision: 41097
2009-06-18 08:01:23 +00:00
Vincent Torri 17e4571dff Add preliminary patch for compilation on Windows. Needs more work, though
Patch by Lars Munch - Thanks a lot !



SVN revision: 40147
2009-04-17 19:40:41 +00:00
Carsten Haitzler 5e925c916e patch from Gustavo F. Padovan - minor code cleanups (effectually cosmetic) :)
SVN revision: 39463
2009-03-13 10:42:04 +00:00
Gustavo Sverzut Barbieri 510146a383 Set member_{add,del} to NULL.
SVN revision: 37088
2008-10-25 03:01:12 +00:00
Cedric BAIL 17626bb400 Remove Evas List from Emotion.
SVN revision: 36943
2008-10-21 16:35:41 +00:00
Gustavo Sverzut Barbieri 0ebceb16a1 emotion: do not try to do file_set when no plugin is loaded.
SVN revision: 36530
2008-10-08 15:38:42 +00:00
Gustavo Sverzut Barbieri aa3aac7dbf Fix position reporting.
Always call pos_get() and also fix these on xine and gstreamer, we
should query the current position and do not trust cached value. For
instance, when no video is present, no handoff/frame-decoded is called
so no cache is updated.



SVN revision: 36271
2008-09-26 23:17:57 +00:00
Gustavo Sverzut Barbieri d29b7694cb emotion+visualization: export and reorder.
done:
 * module api changed, vis_set is not close to vis_get, vis_supported
   was added.
 * exported these properties in emotion_object.
 * gstreamer plugin now starts with no visualization.

todo:
 * add xine support.
 * make gstreamer able to dynamically change visualization.


PS: gstreamer module really needs a cleanup, losts of functions need
"static" or add proper prefix, including "gst" to avoid it clash with
other symbols.




SVN revision: 36260
2008-09-25 23:15:21 +00:00
Gustavo Sverzut Barbieri 58a49c2f69 Add calculate callback to Evas_Smart_Class.
Some people is using it for some time now without problems, so I'm
adding it to SVN to get some broader use. Remember to recompile ALL
libraries that depend on Evas as it will change the
EVAS_SMART_CLASS_VERSION and old classes will fail to load.

This will also change Edje so it will postpone _edje_recalc() to
render time, calculate() callback, however some methods will force
early recalculation.



SVN revision: 35860
2008-09-07 01:25:49 +00:00
doursse caea856117 * reorganize the way the gstreamer pipeline is built. Fix some usages
of emotion_object_file_set()
 * move the "frame_decode" evas event to _emotion_frame_new() a,d
   replace it in _emotion_video_pos_update() by "position_update"
 * fix a mem leak in the gstreamer backend and in the smart object


SVN revision: 34581
2008-05-15 16:52:04 +00:00
doursse ac834a2726 Don't set sd->video to NULL. sd->video is initialized only when
emotion_object_init() is called. Hence, setting sd->video to NULL
there implied that the code:

emotion_object_init(o, module);
emotion_object_file_set(o, file1);
emotion_object_file_set(o, NULL);
emotion_object_file_set(o, file2);

seg fault.

(such code is useful when you want to reset the same stream
(file1 = file2). The other solution would be to destroy everything
and recreating the pipeline, which is not nice)


SVN revision: 34571
2008-05-14 21:39:33 +00:00
doursse 6c22f4068d Fix the play of 2 files. Patch by Nicolas Aguirre
SVN revision: 32576
2007-11-11 16:02:02 +00:00
doursse eb6534508d autostuff improvements:
* use non deprecated version of AC_INIT and AM_INIT_AUTOMAKE
   and check the required minimal versions.
 * add bzipped distribution archive
 * add AC_LIBTOOL_WIN32_DLL
 * forbid libtool to check fortran and c++ compilers
 * compute libtool versioning from the version of the package
 * pass the directories based on ${prefix} to the preoprocessor
   with the -D option
 * replace INCLUDES, wich is deprecated since 2001 by AM_CPPFLAGS
 * remove useless -L flags in *_la_LDFLAGS
 * remove Makefile.in on maintainer-clean rule


SVN revision: 32564
2007-11-11 09:12:08 +00:00
Peter Wehrfritz 4efe3eb21c following the api changes of ecore
SVN revision: 32411
2007-11-06 17:03:43 +00:00
Sebastian Dransfeld b8ee0529f9 Add type identifier.
SVN revision: 32400
2007-11-06 06:56:53 +00:00
doursse 48df189aa7 now you can play several files without segfault
SVN revision: 32299
2007-11-02 11:58:59 +00:00
doursse 4649e92bb8 * Use ecore_plugin instead of dlfcn
* the modules names are now "xine" and "gstreamer" (it's useless to add
   the extension, as ecore_plugin do not need it). I'll fix eclair,
   etk_extra and ewl.
 * look for the modules in path that is pointed by the env variable
    EMOTION_MODULES_DIR first.
 * fix a leak in the gstreamer module
 * remove some trailing spaces


SVN revision: 32261
2007-10-31 19:34:39 +00:00
Carsten Haitzler 8bf6f2f344 fix odd sized videos
SVN revision: 32186
2007-10-28 10:19:09 +00:00
Carsten Haitzler 5482c36015 check if *mod is null
SVN revision: 32167
2007-10-26 10:49:16 +00:00
Brett Nash 8e86740929 Fix two bugs:
- Get pixels from the image object not the smart object
	- Fix typo in if statement


SVN revision: 32157
2007-10-25 04:52:39 +00:00
Carsten Haitzler cf49928045 cedric's ecore_job_init/shtudown patches.
SVN revision: 31972
2007-10-05 05:12:38 +00:00
Carsten Haitzler 4b435be1ed move a chunk of stuff to use evas_smart_class_new() - evas_smart_new() will
probably die as it's already got legacy funcion methods for layer etc. stuff.


SVN revision: 31161
2007-08-04 13:12:43 +00:00
Carsten Haitzler 6f07dd49ee debugging emotion.
SVN revision: 30889
2007-07-18 04:42:31 +00:00
Carsten Haitzler 97d7a0526b change to use lazy eval for dlopen
SVN revision: 29868
2007-05-06 05:05:26 +00:00
Carsten Haitzler 826f1c2dcf export api calls to modules
SVN revision: 29867
2007-05-06 05:03:18 +00:00
Sebastian Dransfeld f7cc0332f5 Fix warnings.
SVN revision: 28695
2007-03-13 16:17:38 +00:00
Carsten Haitzler 2dbc5651d4 move emotion to fix latency on video load, deadlocks on stop/shutdown etc.
SVN revision: 28679
2007-03-13 02:30:14 +00:00
Carsten Haitzler 2026b988bc there is a deadlock between the video out deocder thread and the main process
(emotion) thread as it continues while the main thread is stopped tyring to
stop the video playback - this ends up in a deadlock. this tries to eliminate
that by havng a much more limited framequeue.


SVN revision: 27753
2007-01-03 06:24:25 +00:00
Carsten Haitzler eb21b3503c use the new colorspace support in evas... :)
SVN revision: 27519
2006-12-19 14:15:17 +00:00
sebastid 3641dd1751 EAPI
SVN revision: 25522
2006-09-06 07:17:49 +00:00
doursse 8958bf1458 add track count in the metadata
SVN revision: 22617
2006-05-14 14:32:02 +00:00
doursse 10618e769a visualization stuff for emotion_gstreamer. There's a gstreamer bug on the duration of mp3 files (). ogg files are handles correctly
SVN revision: 21217
2006-03-12 09:56:13 +00:00
doursse 7ecab55f5b gstreamer 0.10 port. There's a problem with the seek, no evas sink yet
SVN revision: 20273
2006-02-04 13:43:13 +00:00
Carsten Haitzler cc8c268dcd less segv's
SVN revision: 19977
2006-01-23 03:00:35 +00:00
sebastid ce987876a8 Don't use strlen to check for empty string.
SVN revision: 18271
2005-11-04 08:21:28 +00:00
doursse a5eb691aef remove printf
SVN revision: 17109
2005-10-02 12:19:36 +00:00
doursse bad4d6e848 emotion can use gstreamer, now
SVN revision: 17103
2005-10-02 07:34:36 +00:00
sebastid 905adad30b Add missing headers.
SVN revision: 16553
2005-09-05 11:05:13 +00:00
sebastid 8903734b6a * Include evas CFLAGS in emotion-config since emotion headers export Evas.h
* Ecore.h isn't needed in exported header


SVN revision: 16526
2005-09-04 18:58:11 +00:00
sebastid e260c571a6 Use AC_PATH_GENERIC
SVN revision: 16492
2005-09-03 19:07:24 +00:00
Carsten Haitzler 42bf60c59a add c++ stuff
SVN revision: 16475
2005-09-03 01:38:45 +00:00
sebastid 8e0218f914 Don't include $(includedir) in searchpath, find headers in this source
and in the provided package CFLAGS.


SVN revision: 16470
2005-09-02 20:15:28 +00:00
sebastid 1f0a680d7f Add return values.
Formatting.
Right macro.


SVN revision: 16438
2005-08-30 23:40:34 +00:00
moom16 ee5135f71f * Have rewritten the yuy2->rgb converter to avoid license problems.
So now, emotion_xine supports yuy2-encoded movies (such as .wmv).


SVN revision: 15678
2005-07-08 23:08:48 +00:00
moom16 8e204f7f56 * Cancel last changes since it seems there are some license problems.
Sorry guys, I didn't think GPLv2 was so "contaminating"


SVN revision: 15677
2005-07-08 20:28:50 +00:00
moom16 8e4e372d87 * Add support of yuy2 to emotion_xine module. So now, we can play wmv
movies!

I had to make some module API changes:
 - rename yuv_size_get to video_data_size_get
 - add the function "Emotion_Format (*format_get) (void *ef);" in Emotion_Video_Module. This function should return the format used by the video (EMOTION_YV12, EMOTION_YUY2 or EMOTION_BGRA).

I use a yuy2->bgra converter since evas doesn't support YUY2. This converter should be rewrite since it's really not optimized and since it is under GPLv2 (emotion is under BSD). I added an explicit comment above the function for that, but it'd be better to use a converter under BSD.
If it's really incompatible with emotion license, I will remove it.


SVN revision: 15675
2005-07-08 19:56:48 +00:00
doursse 08fec2cfb5 indentation
SVN revision: 15418
2005-06-18 05:29:25 +00:00
moom16 9eee3ff2ce * We can now initialize the module without having to play a file (we can now initialize the emotion module on the start of the application and so speed up the first play)
SVN revision: 14606
2005-05-04 21:32:37 +00:00
moom16 36a904a439 * add two functions to know if audio and video are handled (emotion_object_audio_handled_get and emotion_object_video_handled_get)
* add a smart callback "audio_level_change" to deal with audio level change
* alsa is now used by default since many people report troubles with oss


SVN revision: 14320
2005-04-24 14:42:50 +00:00
Carsten Haitzler 4c2a9d32f9 simon treney's emotion patches - THANKs :o)
SVN revision: 14208
2005-04-15 07:27:02 +00:00
Carsten Haitzler 51af1ad286 LDFLAGS
SVN revision: 12126
2004-11-02 03:50:27 +00:00