diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/gstreamer/gst-plugins-bad | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/gstreamer/gst-plugins-bad')
-rw-r--r-- | recipes/gstreamer/gst-plugins-bad/cross-compile.patch | 44 | ||||
-rw-r--r-- | recipes/gstreamer/gst-plugins-bad/gst-plugins-directfb-fix.patch | 32 | ||||
-rw-r--r-- | recipes/gstreamer/gst-plugins-bad/ivorbis-thumb.patch | 11 | ||||
-rw-r--r-- | recipes/gstreamer/gst-plugins-bad/vorbisdec.h | 87 | ||||
-rw-r--r-- | recipes/gstreamer/gst-plugins-bad/vorbisenc.h | 101 |
5 files changed, 275 insertions, 0 deletions
diff --git a/recipes/gstreamer/gst-plugins-bad/cross-compile.patch b/recipes/gstreamer/gst-plugins-bad/cross-compile.patch new file mode 100644 index 0000000000..cc4d972f3e --- /dev/null +++ b/recipes/gstreamer/gst-plugins-bad/cross-compile.patch @@ -0,0 +1,44 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- gst-plugins-bad-0.10.3/configure.ac~cross-compile ++++ gst-plugins-bad-0.10.3/configure.ac +@@ -398,35 +398,7 @@ + GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [ + HAVE_FAAD="yes" + GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h, +- FAAD_LIBS="-lfaad -lm", HAVE_FAAD="no") +- if test $HAVE_FAAD = "yes"; then +- AC_MSG_CHECKING([Checking for FAAD >= 2]) +- AC_TRY_RUN([ +- +-#include <faad.h> +-#if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE) +-#error Not faad2 +-#else +-#include <string.h> +- +-int main() +-{ +-char version[9] = FAAD2_VERSION; +-// a release candidate of 2.0 is not enought for us +-if ( strstr( version, "2.0 RC" ) ) { return 1; } +- +-return 0; +-} +- +-#endif +- ], [ +- HAVE_FAAD="yes" +- AC_MSG_RESULT(yes) +- ], [ +- HAVE_FAAD="no" +- AC_MSG_RESULT(no) +- ]) +- fi ++ FAAD_LIBS="-lfaad -lm") + AS_SCRUB_INCLUDE(FAAD_CFLAGS) + AC_SUBST(FAAD_LIBS) + ]) diff --git a/recipes/gstreamer/gst-plugins-bad/gst-plugins-directfb-fix.patch b/recipes/gstreamer/gst-plugins-bad/gst-plugins-directfb-fix.patch new file mode 100644 index 0000000000..f8f516bc44 --- /dev/null +++ b/recipes/gstreamer/gst-plugins-bad/gst-plugins-directfb-fix.patch @@ -0,0 +1,32 @@ +--- gst-plugins-bad-0.10.5-r1.orig/gst-plugins-bad-0.10.5/examples/directfb/gstdfb.c 2007-08-24 08:23:23.000000000 +0100 ++++ gst-plugins-bad-0.10.5-r1/gst-plugins-bad-0.10.5/examples/directfb/gstdfb.c 2007-08-24 08:24:28.000000000 +0100 +@@ -35,7 +35,7 @@ + #include <math.h> + #include <time.h> + +-#include <directfb.h> ++#include <directfb/directfb.h> + #include <gst/gst.h> + #include <string.h> + +--- gst-plugins-bad-0.10.5-r1.orig/gst-plugins-bad-0.10.5/ext/directfb/dfb-example.c 2007-08-24 08:23:24.000000000 +0100 ++++ gst-plugins-bad-0.10.5-r1/gst-plugins-bad-0.10.5/ext/directfb/dfb-example.c 2007-08-24 08:24:41.000000000 +0100 +@@ -1,5 +1,5 @@ + +-#include <directfb.h> ++#include <directfb/directfb.h> + #include <gst/gst.h> + + static IDirectFB *dfb = NULL; + +--- gst-plugins-bad-0.10.5-r1.orig/gst-plugins-bad-0.10.5/ext/directfb/dfbvideosink.h 2007-08-24 08:23:24.000000000 +0100 ++++ gst-plugins-bad-0.10.5-r1/gst-plugins-bad-0.10.5/ext/directfb/dfbvideosink.h 2007-08-24 08:24:56.000000000 +0100 +@@ -22,7 +22,7 @@ + + #include <gst/video/gstvideosink.h> + +-#include <directfb.h> ++#include <directfb/directfb.h> + + G_BEGIN_DECLS + diff --git a/recipes/gstreamer/gst-plugins-bad/ivorbis-thumb.patch b/recipes/gstreamer/gst-plugins-bad/ivorbis-thumb.patch new file mode 100644 index 0000000000..c94a788987 --- /dev/null +++ b/recipes/gstreamer/gst-plugins-bad/ivorbis-thumb.patch @@ -0,0 +1,11 @@ +--- bad/ext/ivorbis/vorbisdec.c~ 2008-01-22 09:55:22.000000000 +0000 ++++ bad/ext/ivorbis/vorbisdec.c 2008-10-27 20:12:43.000000000 +0000 +@@ -792,7 +792,7 @@ + } + + /* Taken from Tremor, misc.h */ +-#ifdef _ARM_ASSEM_ ++#if defined(_ARM_ASSEM_) && !defined(__thumb__) + static inline ogg_int32_t + CLIP_TO_15 (ogg_int32_t x) + { diff --git a/recipes/gstreamer/gst-plugins-bad/vorbisdec.h b/recipes/gstreamer/gst-plugins-bad/vorbisdec.h new file mode 100644 index 0000000000..3bc29f22e6 --- /dev/null +++ b/recipes/gstreamer/gst-plugins-bad/vorbisdec.h @@ -0,0 +1,87 @@ +/* -*- c-basic-offset: 2 -*- + * GStreamer + * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> + * + * Tremor modifications <2006>: + * Chris Lord, OpenedHand Ltd. <chris@openedhand.com>, http://www.o-hand.com/ + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#ifndef __GST_IVORBIS_DEC_H__ +#define __GST_IVORBIS_DEC_H__ + + +#include <gst/gst.h> +#include <tremor/ivorbiscodec.h> + +G_BEGIN_DECLS + +#define GST_TYPE_IVORBIS_DEC \ + (gst_ivorbis_dec_get_type()) +#define GST_IVORBIS_DEC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_IVORBIS_DEC,GstIVorbisDec)) +#define GST_IVORBIS_DEC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_IVORBIS_DEC,GstIVorbisDecClass)) +#define GST_IS_IVORBIS_DEC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_IVORBIS_DEC)) +#define GST_IS_IVORBIS_DEC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_IVORBIS_DEC)) + +typedef struct _GstIVorbisDec GstIVorbisDec; +typedef struct _GstIVorbisDecClass GstIVorbisDecClass; + +/** + * GstIVorbisDec: + * + * Opaque data structure. + */ +struct _GstIVorbisDec { + GstElement element; + + GstPad * sinkpad; + GstPad * srcpad; + + vorbis_dsp_state vd; + vorbis_info vi; + vorbis_comment vc; + vorbis_block vb; + guint64 granulepos; + + gboolean initialized; + + GList *queued; + + GstSegment segment; + gboolean discont; + + GstClockTime cur_timestamp; /* only used with non-ogg container formats */ + GstClockTime prev_timestamp; /* only used with non-ogg container formats */ + + GList *pendingevents; + GstTagList *taglist; +}; + +struct _GstIVorbisDecClass { + GstElementClass parent_class; +}; + +GType gst_ivorbis_dec_get_type(void); + +G_END_DECLS + +#endif /* __GST_IVORBIS_DEC_H__ */ diff --git a/recipes/gstreamer/gst-plugins-bad/vorbisenc.h b/recipes/gstreamer/gst-plugins-bad/vorbisenc.h new file mode 100644 index 0000000000..7170baacd3 --- /dev/null +++ b/recipes/gstreamer/gst-plugins-bad/vorbisenc.h @@ -0,0 +1,101 @@ +/* GStreamer + * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#ifndef __VORBISENC_H__ +#define __VORBISENC_H__ + + +#include <config.h> +#include <gst/gst.h> + +#include <tremor/codec.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define GST_TYPE_VORBISENC \ + (vorbisenc_get_type()) +#define GST_VORBISENC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VORBISENC,VorbisEnc)) +#define GST_VORBISENC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VORBISENC,VorbisEncClass)) +#define GST_IS_VORBISENC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VORBISENC)) +#define GST_IS_VORBISENC_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VORBISENC)) + +typedef struct _VorbisEnc VorbisEnc; +typedef struct _VorbisEncClass VorbisEncClass; + +struct _VorbisEnc { + GstElement element; + + GstPad *sinkpad, + *srcpad; + + ogg_stream_state os; /* take physical pages, weld into a logical + stream of packets */ + ogg_page og; /* one Ogg bitstream page. Vorbis packets are inside */ + ogg_packet op; /* one raw packet of data for decode */ + + vorbis_info vi; /* struct that stores all the static vorbis bitstream + settings */ + vorbis_comment vc; /* struct that stores all the user comments */ + + vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */ + vorbis_block vb; /* local working space for packet->PCM decode */ + + gboolean eos; + + gboolean managed; + gint bitrate; + gint min_bitrate; + gint max_bitrate; + gfloat quality; + gboolean quality_set; + gint serial; + + gint channels; + gint frequency; + + guint64 samples_in; + guint64 bytes_out; + + GstCaps *metadata; + + gboolean setup; + gboolean flush_header; + gchar *last_message; +}; + +struct _VorbisEncClass { + GstElementClass parent_class; +}; + +GType vorbisenc_get_type(void); + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __VORBISENC_H__ */ |