summaryrefslogtreecommitdiffstats
path: root/ext/resindvd/rsnwrappedbuffer.h
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2008-07-11 14:06:08 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2008-07-11 14:06:08 +0000
commit9a392ef442ef284f63c36ef3690445e5938a046a (patch)
treef648a0b8f712c94cfd1dd8a3c4cd373477b560f5 /ext/resindvd/rsnwrappedbuffer.h
parentf79bf9a0fba0c37de0734fd618bbfc499889facf (diff)
downloadgst-plugins-bad-9a392ef442ef284f63c36ef3690445e5938a046a.tar.gz
gst-plugins-bad-9a392ef442ef284f63c36ef3690445e5938a046a.tar.bz2
gst-plugins-bad-9a392ef442ef284f63c36ef3690445e5938a046a.zip
docs/plugins/.cvsignore: Ignore *-undeclared.txt
Original commit message from CVS: * docs/plugins/.cvsignore: Ignore *-undeclared.txt * ext/resindvd/rsnaudiomunge.c: Turn g_print's into debug statements. * ext/resindvd/resin-play: * ext/resindvd/Makefile.am: * ext/resindvd/resindvdbin.c: * ext/resindvd/resindvdbin.h: * ext/resindvd/rsnparsetter.c: * ext/resindvd/rsnparsetter.h: * ext/resindvd/rsnwrappedbuffer.c: * ext/resindvd/rsnwrappedbuffer.h: Add a bloated implementation of a really simple idea: Replace the pixel-aspect-ratio in the output video with a prescribed one when necessary. There must be an easier way. Split the dvdspu out of the resindvdbin and put out the subpicture stream on the subpicture pad. * ext/resindvd/gstmpegdemux.c: Send video-aspect events down the pipe from the demuxer. * ext/resindvd/resindvdsrc.c: * ext/resindvd/resindvdsrc.h: Handle timed-stills somewhat using g_cond_timed_wait, with a FIXME to make it use clock-waiting later. * ext/resindvd/rsnbasesrc.c: Don't overwrite the last_stop in the basesrc segment after a seamless seek.
Diffstat (limited to 'ext/resindvd/rsnwrappedbuffer.h')
-rw-r--r--ext/resindvd/rsnwrappedbuffer.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/ext/resindvd/rsnwrappedbuffer.h b/ext/resindvd/rsnwrappedbuffer.h
new file mode 100644
index 00000000..7c6a0e73
--- /dev/null
+++ b/ext/resindvd/rsnwrappedbuffer.h
@@ -0,0 +1,69 @@
+/* GStreamer
+ * Copyright (C) 2008 Jan Schmidt <thaytan@noraisin.net>
+ *
+ * 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 __RSN_WRAPPERBUFFER_H__
+#define __RSN_WRAPPERBUFFER_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+#define RSN_TYPE_WRAPPEDBUFFER (rsn_wrappedbuffer_get_type())
+#define RSN_WRAPPEDBUFFER(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), RSN_TYPE_WRAPPEDBUFFER, \
+ RsnWrappedBuffer))
+#define RSN_WRAPPEDBUFFER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), RSN_TYPE_WRAPPEDBUFFER, \
+ RsnWrappedBufferClass))
+#define RSN_IS_WRAPPEDBUFFER(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), RSN_TYPE_WRAPPEDBUFFER))
+#define RSN_IS_WRAPPEDBUFFER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass), RSN_TYPE_WRAPPEDBUFFER))
+
+typedef struct _RsnWrappedBuffer RsnWrappedBuffer;
+typedef struct _RsnWrappedBufferClass RsnWrappedBufferClass;
+
+typedef gboolean (*RsnWrappedBufferReleaseFunc)(GstElement *owner,
+ RsnWrappedBuffer *buf);
+
+struct _RsnWrappedBuffer {
+ GstBuffer buffer;
+ GstBuffer *wrapped_buffer;
+
+ GstElement *owner;
+ RsnWrappedBufferReleaseFunc release;
+};
+
+struct _RsnWrappedBufferClass
+{
+ GstBufferClass parent_class;
+};
+
+RsnWrappedBuffer *rsn_wrapped_buffer_new (GstBuffer *buf_to_wrap);
+GstBuffer *rsn_wrappedbuffer_unwrap_and_unref (RsnWrappedBuffer *wrap_buf);
+void rsn_wrapped_buffer_set_owner (RsnWrappedBuffer *wrapped_buf,
+ GstElement *owner);
+void rsn_wrapped_buffer_set_releasefunc (RsnWrappedBuffer *wrapped_buf,
+ RsnWrappedBufferReleaseFunc release_func);
+
+GType rsn_wrappedbuffer_get_type (void);
+
+G_END_DECLS
+
+#endif