Imported Upstream version 0.10.23
[profile/ivi/gst-plugins-bad.git] / sys / dshowdecwrapper / gstdshowutil.h
1 /* GStreamer
2  * Copyright <2006, 2007, 2008, 2009, 2010> Fluendo <support@fluendo.com>
3  * Copyright (C) 2007 Sebastien Moutte <sebastien@moutte.net>
4  *
5  * gstdshow.h:
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef _GST_DSHOW_UTIL_H_
24 #define _GST_DSHOW_UTIL_H_
25
26 #include <windows.h>
27 #include <objbase.h>
28 #include <dshow.h>
29 #include <Rpc.h>
30 #include <streams.h>
31 #include <strmif.h>
32
33 #include <glib.h>
34
35 typedef struct {
36   const GUID *filter_guid;  /* The filter GUID, or DMO GUID */
37   const GUID *dmo_category; /* If non-NULL, the filter is a DMO of this
38                                category */
39 } PreferredFilter;
40
41 /* get a pin from directshow filter */
42 IPin *gst_dshow_get_pin_from_filter (IBaseFilter *filter, PIN_DIRECTION pindir);
43
44 /* find and return a filter according to the input and output types */
45 IBaseFilter * 
46 gst_dshow_find_filter(CLSID input_majortype, CLSID input_subtype, 
47                       CLSID output_majortype, CLSID output_subtype, 
48                       PreferredFilter *preferred_filters);
49
50 #define DSHOW_CODEC_QDATA g_quark_from_string ("dshow-codec")
51
52 #endif /* _GST_DSHOW_UTIL_H_ */