]> git.sesse.net Git - vlc/blob - modules/access/dshow/access.h
DTV: add dvbt shortcut, for old-BDA module compatibility
[vlc] / modules / access / dshow / access.h
1 /*****************************************************************************
2  * access.h : DirectShow access module for vlc
3  * access_sys_t definition
4  *****************************************************************************
5  * Copyright (C) 2002, 2004, 2010-2011 the VideoLAN team
6  * $Id$
7  *
8  * Author: Gildas Bazin <gbazin@videolan.org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 /*****************************************************************************
26  * Preamble
27  *****************************************************************************/
28 using namespace std;
29
30 #include <dshow.h>
31
32 typedef struct dshow_stream_t dshow_stream_t;
33
34 /****************************************************************************
35  * Crossbar stuff
36  ****************************************************************************/
37 #define MAX_CROSSBAR_DEPTH 10
38
39 typedef struct CrossbarRouteRec
40 {
41     IAMCrossbar *pXbar;
42     LONG        VideoInputIndex;
43     LONG        VideoOutputIndex;
44     LONG        AudioInputIndex;
45     LONG        AudioOutputIndex;
46
47 } CrossbarRoute;
48
49 void DeleteCrossbarRoutes( access_sys_t * );
50 HRESULT FindCrossbarRoutes( vlc_object_t *, access_sys_t *,
51                             IPin *, LONG, int = 0 );
52
53 /****************************************************************************
54  * Access descriptor declaration
55  ****************************************************************************/
56 struct access_sys_t
57 {
58     /* These 2 must be left at the beginning */
59     vlc_mutex_t lock;
60     vlc_cond_t  wait;
61
62     IFilterGraph           *p_graph;
63     ICaptureGraphBuilder2  *p_capture_graph_builder2;
64     IMediaControl          *p_control;
65
66     int                     i_crossbar_route_depth;
67     CrossbarRoute           crossbar_routes[MAX_CROSSBAR_DEPTH];
68
69     /* list of elementary streams */
70     dshow_stream_t **pp_streams;
71     int            i_streams;
72     int            i_current_stream;
73
74     /* misc properties */
75     int            i_width;
76     int            i_height;
77     int            i_chroma;
78     bool           b_chroma; /* Force a specific chroma on the dshow input */
79 };
80