summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/xine/emotion_xine.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2008-09-25 23:15:21 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2008-09-25 23:15:21 +0000
commitd29b7694cb99cfcbf9598976733824bea02fa0b8 (patch)
tree624fb2973b2ea9516417d09f8dd53ad5f36fb48e /legacy/emotion/src/modules/xine/emotion_xine.c
parent42d39725b43c3739744114d361e826c7bf014aff (diff)
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
Diffstat (limited to 'legacy/emotion/src/modules/xine/emotion_xine.c')
-rw-r--r--legacy/emotion/src/modules/xine/emotion_xine.c33
1 files changed, 20 insertions, 13 deletions
diff --git a/legacy/emotion/src/modules/xine/emotion_xine.c b/legacy/emotion/src/modules/xine/emotion_xine.c
index 657eb5a399..9f902757b0 100644
--- a/legacy/emotion/src/modules/xine/emotion_xine.c
+++ b/legacy/emotion/src/modules/xine/emotion_xine.c
@@ -11,13 +11,14 @@ static void em_play (void *ef, double pos);
11static void em_stop (void *ef); 11static void em_stop (void *ef);
12static void em_size_get (void *ef, int *w, int *h); 12static void em_size_get (void *ef, int *w, int *h);
13static void em_pos_set (void *ef, double pos); 13static void em_pos_set (void *ef, double pos);
14static void em_vis_set (void *ef, Emotion_Vis vis);
15static double em_len_get (void *ef); 14static double em_len_get (void *ef);
16static int em_fps_num_get (void *ef); 15static int em_fps_num_get (void *ef);
17static int em_fps_den_get (void *ef); 16static int em_fps_den_get (void *ef);
18static double em_fps_get (void *ef); 17static double em_fps_get (void *ef);
19static double em_pos_get (void *ef); 18static double em_pos_get (void *ef);
19static void em_vis_set (void *ef, Emotion_Vis vis);
20static Emotion_Vis em_vis_get (void *ef); 20static Emotion_Vis em_vis_get (void *ef);
21static Evas_Bool em_vis_supported (void *ef, Emotion_Vis vis);
21static double em_ratio_get (void *ef); 22static double em_ratio_get (void *ef);
22static int em_seekable (void *ef); 23static int em_seekable (void *ef);
23static void em_frame_done (void *ef); 24static void em_frame_done (void *ef);
@@ -508,17 +509,6 @@ em_pos_set(void *ef, double pos)
508 _em_slave_event(ev, 6, ppos); 509 _em_slave_event(ev, 6, ppos);
509} 510}
510 511
511static void
512em_vis_set(void *ef,
513 Emotion_Vis vis)
514{
515 Emotion_Xine_Video *ev;
516
517 ev = (Emotion_Xine_Video *)ef;
518 if (ev->vis == vis) return;
519 ev->vis = vis;
520}
521
522static double 512static double
523em_len_get(void *ef) 513em_len_get(void *ef)
524{ 514{
@@ -564,6 +554,16 @@ em_pos_get(void *ef)
564 return ev->pos; 554 return ev->pos;
565} 555}
566 556
557static void
558em_vis_set(void *ef, Emotion_Vis vis)
559{
560 Emotion_Xine_Video *ev;
561
562 ev = (Emotion_Xine_Video *)ef;
563 if (ev->vis == vis) return;
564 ev->vis = vis;
565}
566
567static Emotion_Vis 567static Emotion_Vis
568em_vis_get(void *ef) 568em_vis_get(void *ef)
569{ 569{
@@ -574,6 +574,12 @@ em_vis_get(void *ef)
574 return ev->vis; 574 return ev->vis;
575} 575}
576 576
577static Evas_Bool
578em_vis_supported(void *ef, Emotion_Vis vis)
579{
580 return 0;
581}
582
577static double 583static double
578em_ratio_get(void *ef) 584em_ratio_get(void *ef)
579{ 585{
@@ -1467,13 +1473,14 @@ static Emotion_Video_Module em_module =
1467 em_stop, /* stop */ 1473 em_stop, /* stop */
1468 em_size_get, /* size_get */ 1474 em_size_get, /* size_get */
1469 em_pos_set, /* pos_set */ 1475 em_pos_set, /* pos_set */
1470 em_vis_set, /* vis_set */
1471 em_len_get, /* len_get */ 1476 em_len_get, /* len_get */
1472 em_fps_num_get, /* fps_num_get */ 1477 em_fps_num_get, /* fps_num_get */
1473 em_fps_den_get, /* fps_den_get */ 1478 em_fps_den_get, /* fps_den_get */
1474 em_fps_get, /* fps_get */ 1479 em_fps_get, /* fps_get */
1475 em_pos_get, /* pos_get */ 1480 em_pos_get, /* pos_get */
1481 em_vis_set, /* vis_set */
1476 em_vis_get, /* vis_get */ 1482 em_vis_get, /* vis_get */
1483 em_vis_supported, /* vis_supported */
1477 em_ratio_get, /* ratio_get */ 1484 em_ratio_get, /* ratio_get */
1478 em_video_handled, /* video_handled */ 1485 em_video_handled, /* video_handled */
1479 em_audio_handled, /* audio_handled */ 1486 em_audio_handled, /* audio_handled */