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
8 * Author: Gildas Bazin <gbazin@videolan.org>
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.
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.
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 *****************************************************************************/
25 /*****************************************************************************
27 *****************************************************************************/
43 # define _I64_MAX LONG_LONG_MAX
45 # define LONGLONG long long
48 #include "vlc_dshow.h"
51 typedef struct dshow_stream_t dshow_stream_t;
53 /****************************************************************************
55 ****************************************************************************/
56 #define MAX_CROSSBAR_DEPTH 10
58 typedef struct CrossbarRouteRec
62 LONG VideoOutputIndex;
64 LONG AudioOutputIndex;
68 void DeleteCrossbarRoutes( access_sys_t * );
69 HRESULT FindCrossbarRoutes( vlc_object_t *, access_sys_t *,
70 IPin *, LONG, int = 0 );
72 /****************************************************************************
73 * Access descriptor declaration
74 ****************************************************************************/
77 /* These 2 must be left at the beginning */
81 IFilterGraph *p_graph;
82 ICaptureGraphBuilder2 *p_capture_graph_builder2;
83 IMediaControl *p_control;
85 int i_crossbar_route_depth;
86 CrossbarRoute crossbar_routes[MAX_CROSSBAR_DEPTH];
88 /* list of elementary streams */
89 dshow_stream_t **pp_streams;
97 bool b_chroma; /* Force a specific chroma on the dshow input */