Commit cb99f1da authored by Andy Wingo Wingo's avatar Andy Wingo Wingo

some s/KHz/Hz/ fixes in osssrc consistency-with-the-rest-of-gst adjustments

Original commit message from CVS:
* some s/KHz/Hz/ fixes in osssrc
* added dxr3 plugin from rehan khwaja <rehankhwaja@yahoo.com>, with some
consistency-with-the-rest-of-gst adjustments
parent 625a9e6e
......@@ -190,6 +190,12 @@ dnl ============================= sys plugins ================================
dnl ==========================================================================
dnl *** DXR3 card ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DXR3, true)
GST_CHECK_FEATURE(DXR3, [DXR3 hardware mpeg video decoder], dxr3videosink, [
AC_CHECK_HEADER(linux/em8000.h, HAVE_DXR3="yes", HAVE_DXR3="no")
])
dnl *** OSS audio ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OSS, true)
GST_CHECK_FEATURE(OSS, [OSS audio], osssrc osssink, [
......@@ -762,6 +768,7 @@ gst/vumeter/Makefile
gst/wavparse/Makefile
gst/y4m/Makefile
sys/Makefile
sys/dxr3/Makefile
sys/oss/Makefile
sys/qcam/Makefile
sys/v4l/Makefile
......
if USE_DXR3
DXR3_DIR=dxr3
else
DXR3_DIR=
endif
if USE_OSS
OSS_DIR=oss
else
......@@ -34,8 +40,8 @@ else
XVIDEO_DIR=
endif
SUBDIRS=$(OSS_DIR) $(QCAM_DIR) $(V4L_DIR) $(VCD_DIR) \
SUBDIRS=$(OSS_DIR) $(DXR3_DIR) $(QCAM_DIR) $(V4L_DIR) $(VCD_DIR) \
$(VGA_DIR) $(XVIDEO_DIR)
DIST_SUBDIRS=oss qcam v4l vcd vga xvideo videosink
DIST_SUBDIRS=oss dxr3 qcam v4l vcd vga xvideo videosink
plugindir = $(libdir)/gst
plugin_LTLIBRARIES = libgstdxr3.la
libgstdxr3_la_SOURCES = gstdxr3videosink.c gstdxr3.c
libgstdxr3_la_CFLAGS = $(GST_CFLAGS)
libgstdxr3_la_LIBADD =
libgstdxr3_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
noinst_HEADERS = gstdxr3videosink.h
#include "gstdxr3video.h"
static GstElementDetails dxr3_video_sink_details = {
"dxr3/Hollywood+ mpeg decoder board plugin",
"video/mpeg",
"Outputs PAL/NTSC video via the dxr3/Hollywood+ mpeg decoder board",
VERSION,
"Rehan Khwaja <rehankhwaja@yahoo.com>",
"(C) 2002",
};
static gboolean
plugin_init (GModule *module, GstPlugin *plugin)
{
GstElementFactory *video_factory;
video_factory = gst_elementfactory_new("dxr3videosink", GST_TYPE_DXR3_VIDEO_SINK, &dxr3_video_sink_details);
g_return_val_if_fail(video_factory != NULL, FALSE);
gst_elementfactory_add_padtemplate (video_factory, GST_PADTEMPLATE_GET (dxr3_video_sink_factory));
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (video_factory));
return TRUE;
}
GstPluginDesc plugin_desc = {
GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"dxr3",
plugin_init
};
This diff is collapsed.
/* GStreamer DXR3 Hardware MPEG video decoder plugin
* Copyright (C) <2002> Rehan Khwaja <rehankhwaja@yahoo.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_DXR3_VIDEO_SINK_H__
#define __GST_DXR3_VIDEO_SINK_H__
#include <gst/gst.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct _GstDxr3VideoSink GstDxr3VideoSink;
struct _GstDxr3VideoSink;
struct _GstDxr3VideoSink {
GstElement element;
/* board number */
gint device_number;
/* file handle for the video device */
FILE *device;
GstClock *clock;
/* our only pad */
GstPad *sinkpad;
};
typedef struct _GstDxr3VideoSinkClass GstDxr3VideoSinkClass;
struct _GstDxr3VideoSinkClass {
GstElementClass parent_class;
};
#define GST_TYPE_DXR3_VIDEO_SINK \
(gst_dxr3_video_sink_get_type())
#define GST_DXR3_VIDEO_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DXR3_VIDEO_SINK,GstDxr3VideoSink))
#define GST_DXR3_VIDEO_SINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DXR3_VIDEO_SINK,GstDxr3VideoSink))
#define GST_IS_DXR3_VIDEO_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DXR3_VIDEO_SINK))
#define GST_IS_DXR3_VIDEO_SINK_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DXR3_VIDEO_SINK))
GType gst_dxr3_video_sink_get_type(void);
GST_PADTEMPLATE_FACTORY (dxr3_video_sink_factory,
"sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
gst_caps_new ("video_sink", "video/mpeg", NULL)
);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GST_DXR3_VIDEO_SINK_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment