From d70c927c8bbe2b3807b5d3c5e0e43bb6a0bf3ac7 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Sun, 28 Nov 2004 19:08:45 +0000 Subject: [PATCH] Adding a first version of directfbvideosink. Original commit message from CVS: 2004-11-28 Julien MOUTTE * configure.ac: * ext/Makefile.am: * ext/directfb/Makefile.am: * ext/directfb/directfbvideosink.c: (gst_directfbvideosink_create), (gst_directfbvideosink_get_pixel_format), (gst_directfbvideosink_get_format_from_fourcc), (gst_directfbvideosink_fixate), (gst_directfbvideosink_getcaps), (gst_directfbvideosink_sink_link), (gst_directfbvideosink_change_state), (gst_directfbvideosink_chain), (gst_directfbvideosink_buffer_free), (gst_directfbvideosink_buffer_alloc), (gst_directfbvideosink_interface_supported), (gst_directfbvideosink_interface_init), (gst_directfbvideosink_navigation_send_event), (gst_directfbvideosink_navigation_init), (gst_directfbvideosink_set_property), (gst_directfbvideosink_get_property), (gst_directfbvideosink_finalize), (gst_directfbvideosink_init), (gst_directfbvideosink_base_init), (gst_directfbvideosink_class_init), (gst_directfbvideosink_get_type), (plugin_init): * ext/directfb/directfbvideosink.h: Adding a first version of directfbvideosink. * sys/xvimage/xvimagesink.c: (gst_xvimagesink_init): Initializing some more. --- ChangeLog | 28 ++++++++++++++++++++++++++++ configure.ac | 11 +++++++++++ ext/Makefile.am | 8 ++++++++ sys/xvimage/xvimagesink.c | 2 ++ 4 files changed, 49 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4ba0297..1d88d93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,31 @@ +2004-11-28 Julien MOUTTE + + * configure.ac: + * ext/Makefile.am: + * ext/directfb/Makefile.am: + * ext/directfb/directfbvideosink.c: (gst_directfbvideosink_create), + (gst_directfbvideosink_get_pixel_format), + (gst_directfbvideosink_get_format_from_fourcc), + (gst_directfbvideosink_fixate), (gst_directfbvideosink_getcaps), + (gst_directfbvideosink_sink_link), + (gst_directfbvideosink_change_state), + (gst_directfbvideosink_chain), (gst_directfbvideosink_buffer_free), + (gst_directfbvideosink_buffer_alloc), + (gst_directfbvideosink_interface_supported), + (gst_directfbvideosink_interface_init), + (gst_directfbvideosink_navigation_send_event), + (gst_directfbvideosink_navigation_init), + (gst_directfbvideosink_set_property), + (gst_directfbvideosink_get_property), + (gst_directfbvideosink_finalize), (gst_directfbvideosink_init), + (gst_directfbvideosink_base_init), + (gst_directfbvideosink_class_init), + (gst_directfbvideosink_get_type), (plugin_init): + * ext/directfb/directfbvideosink.h: Adding a first version of + directfbvideosink. + * sys/xvimage/xvimagesink.c: (gst_xvimagesink_init): Initializing some + more. + 2004-11-28 Benjamin Otte * gst/audioconvert/gstchannelmix.c: (gst_audio_convert_mix): diff --git a/configure.ac b/configure.ac index 8ce9567..6120cbf 100644 --- a/configure.ac +++ b/configure.ac @@ -828,6 +828,16 @@ GST_CHECK_FEATURE(DIRAC, [dirac plug-ins], dirac, [ AC_SUBST(DIRAC_LIBS) ]) +dnl *** DirectFB *** +translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true) +GST_CHECK_FEATURE(DIRECTFB, [directfb], directfbvideosink , [ + translit(dnm, m, l) AC_SUBST(DIRECTFB_LIBS) + translit(dnm, m, l) AC_SUBST(DIRECTFB_CFLAGS) + dnl check with pkg-config + PKG_CHECK_MODULES(DIRECTFB, directfb, + HAVE_DIRECTFB="yes", HAVE_DIRECTFB="no") +]) + dnl *** DIVX *** translit(dnm, m, l) AM_CONDITIONAL(USE_DIVX, true) GST_CHECK_FEATURE(DIVX, [divx plugins], divx, [ @@ -1946,6 +1956,7 @@ ext/audiofile/Makefile ext/cdaudio/Makefile ext/cdparanoia/Makefile ext/dirac/Makefile +ext/directfb/Makefile ext/divx/Makefile ext/dts/Makefile ext/dv/Makefile diff --git a/ext/Makefile.am b/ext/Makefile.am index 7f3b6fc..42faa62 100644 --- a/ext/Makefile.am +++ b/ext/Makefile.am @@ -52,6 +52,12 @@ else DIRAC_DIR= endif +if USE_DIRECTFB +DIRECTFB_DIR=directfb +else +DIRECTFB_DIR= +endif + if USE_DIVX DIVX_DIR=divx else @@ -380,6 +386,7 @@ SUBDIRS=\ $(CDAUDIO_DIR) \ $(CDPARANOIA_DIR) \ $(DIRAC_DIR) \ + $(DIRECTFB_DIR) \ $(DIVX_DIR) \ $(DTS_DIR) \ $(DV1394_DIR) \ @@ -442,6 +449,7 @@ DIST_SUBDIRS=\ cdaudio \ cdparanoia \ dirac \ + directfb \ divx \ dts \ dv \ diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index d8b71f8..56ee57d 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -1939,6 +1939,8 @@ gst_xvimagesink_init (GstXvImageSink * xvimagesink) xvimagesink->cb_changed = FALSE; xvimagesink->framerate = 0; + xvimagesink->video_width = 0; + xvimagesink->video_height = 0; xvimagesink->x_lock = g_mutex_new (); -- 2.7.4