mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
0a0c13670a
Original commit message from CVS: * docs/plugins/gst-plugins-bad-plugins.args: Remove directsoundsink property doc as this sink use the mixer interface now. * docs/plugins/gst-plugins-bad-plugins.interfaces: Add interfaces implemented by Windows sinks. * sys/directsound/gstdirectsoundsink.c: * sys/directsound/gstdirectsoundsink.h: Remove directsoundsink property and implement the mixer interface. * win32/vs6/gst_plugins_bad.dsw: * win32/vs6/libgstdirectsound.dsp: Update project files. * gst-libs/gst/dshow/gstdshow.cpp: * gst-libs/gst/dshow/gstdshow.h: * gst-libs/gst/dshow/gstdshowfakesink.cpp: * gst-libs/gst/dshow/gstdshowfakesink.h: * gst-libs/gst/dshow/gstdshowfakesrc.cpp: * gst-libs/gst/dshow/gstdshowfakesrc.h: * gst-libs/gst/dshow/gstdshowinterface.cpp: * gst-libs/gst/dshow/gstdshowinterface.h: * win32/common/libgstdshow.def: * win32/vs6/libgstdshow.dsp: Add a new gst library which allow to create internal Direct Show graph (pipelines) to wrap Windows sources, decoders or encoders. It includes a DirectShow fake source and sink and utility functions. * sys/dshowsrcwrapper/gstdshowaudiosrc.c: * sys/dshowsrcwrapper/gstdshowaudiosrc.h: * sys/dshowsrcwrapper/gstdshowsrcwrapper.c: * sys/dshowsrcwrapper/gstdshowsrcwrapper.h: * sys/dshowsrcwrapper/gstdshowvideosrc.c: * sys/dshowsrcwrapper/gstdshowvideosrc.h: * win32/vs6/libdshowsrcwrapper.dsp: Add a new plugin to wrap DirectShow sources on Windows. It gets data from any webcam, dv cam, micro. We could add tv tunner card later.
79 lines
No EOL
2.5 KiB
C
79 lines
No EOL
2.5 KiB
C
/* GStreamer
|
|
* Copyright (C) 2007 Sebastien Moutte <sebastien@moutte.net>
|
|
*
|
|
* gstdshow.h:
|
|
*
|
|
* 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 _GSTDSHOW_
|
|
#define _GSTDSHOW_
|
|
|
|
#include <windows.h>
|
|
|
|
#include <glib.h>
|
|
|
|
#ifdef LIBDSHOW_EXPORTS
|
|
#include <streams.h>
|
|
#include <atlbase.h>
|
|
#define DSHOW_API __declspec(dllexport)
|
|
#else
|
|
#define DSHOW_API __declspec(dllimport)
|
|
#endif
|
|
|
|
typedef struct _GstCapturePinMediaType
|
|
{
|
|
AM_MEDIA_TYPE *mediatype;
|
|
IPin *capture_pin;
|
|
} GstCapturePinMediaType;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* register fake filters as COM object and as Direct Show filters in the registry */
|
|
BOOL gst_dshow_register_fakefilters ();
|
|
|
|
/* free memory of the input pin mediatype */
|
|
void gst_dshow_free_pin_mediatype (gpointer pt);
|
|
|
|
/* free memory of the input dshow mediatype */
|
|
void gst_dshow_free_mediatype (AM_MEDIA_TYPE *pmt);
|
|
|
|
/* free the memory of all mediatypes of the input list if pin mediatype */
|
|
void gst_dshow_free_pins_mediatypes (GList *mediatypes);
|
|
|
|
/* get a pin from directshow filter */
|
|
gboolean gst_dshow_get_pin_from_filter (IBaseFilter *filter, PIN_DIRECTION pindir, IPin **pin);
|
|
|
|
/* find and return a filter according to the input and output types */
|
|
gboolean gst_dshow_find_filter(CLSID input_majortype, CLSID input_subtype,
|
|
CLSID output_majortype, CLSID output_subtype,
|
|
gchar * prefered_filter_name, IBaseFilter **filter);
|
|
|
|
/* get the dshow device path from device friendly name.
|
|
If friendly name is not set, it will return the first available device */
|
|
gchar *gst_dshow_getdevice_from_devicename (GUID *device_category, gchar **device_name);
|
|
|
|
/* show the capture filter property page (generally used to setup the device). the page is modal*/
|
|
gboolean gst_dshow_show_propertypage (IBaseFilter *base_filter);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _GSTDSHOW_ */ |