1 /* DirectShow private capture header (QCAP.DLL)
3 * Copyright 2005 Maarten Lankhorst
5 * This file contains the (internal) driver registration functions,
6 * driver enumeration APIs and DirectDraw creation functions.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef __QCAP_CAPTURE_H__
24 #define __QCAP_CAPTURE_H__
26 typedef HRESULT (* Video_Destroy)(void *pBox);
27 typedef HRESULT (* Video_SetMediaType)(void *pBox, AM_MEDIA_TYPE * mT);
28 typedef HRESULT (* Video_GetMediaType)(void *pBox, AM_MEDIA_TYPE ** mT);
29 typedef HRESULT (* Video_GetPropRange)(void *pBox, long Property, long *pMin, long *pMax, long *pSteppingDelta, long *pDefault, long *pCapsFlags);
30 typedef HRESULT (* Video_GetProp)(void *pBox, long Property, long *lValue, long *Flags);
31 typedef HRESULT (* Video_SetProp)(void *pBox, long Property, long lValue, long Flags);
32 typedef HRESULT (* Video_Control)(void *pBox, FILTER_STATE *state);
34 typedef struct capturefunctions {
35 Video_Destroy Destroy;
36 Video_SetMediaType SetFormat;
37 Video_GetMediaType GetFormat;
38 Video_GetPropRange GetPropRange;
39 Video_GetProp Get_Prop;
40 Video_SetProp Set_Prop;
41 Video_Control Run, Pause, Stop;
45 typedef HRESULT (* Video_Init)(Capture *pBox, IPin *pOut, USHORT card);
46 HRESULT V4l_Init(Capture *pBox, IPin *pOut, USHORT card);
48 #define INVOKE(from, func, para...) from->func(from->pMine, para)
49 #define INVOKENP(from, func) from->func(from->pMine)
51 #endif /* __QCAP_CAPTURE_H__ */