2 * Implements CLSID_VideoRenderer.
4 * Copyright (C) Hidenori TAKESHIMA <hidenori@a2.ctktv.ne.jp>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef WINE_DSHOW_VIDREN_H
22 #define WINE_DSHOW_VIDREN_H
28 typedef struct CVideoRendererImpl CVideoRendererImpl
;
29 typedef struct CVideoRendererPinImpl CVideoRendererPinImpl
;
32 typedef struct VidRen_IBasicVideo
34 ICOM_VFIELD(IBasicVideo
);
37 typedef struct VidRen_IVideoWindow
39 ICOM_VFIELD(IVideoWindow
);
40 } VidRen_IVideoWindow
;
42 struct CVideoRendererImpl
45 CBaseFilterImpl basefilter
;
46 VidRen_IBasicVideo basvid
;
47 VidRen_IVideoWindow vidwin
;
48 QUARTZ_IFDelegation qiext
;
50 CSeekingPassThru
* pSeekPass
;
51 CVideoRendererPinImpl
* pPin
;
59 CRITICAL_SECTION m_csReceive
;
60 BOOL m_bSampleIsValid
;
65 struct CVideoRendererPinImpl
69 CMemInputPinBaseImpl meminput
;
71 CVideoRendererImpl
* pRender
;
76 #define CVideoRendererImpl_THIS(iface,member) CVideoRendererImpl* This = ((CVideoRendererImpl*)(((char*)iface)-offsetof(CVideoRendererImpl,member)))
77 #define CVideoRendererPinImpl_THIS(iface,member) CVideoRendererPinImpl* This = ((CVideoRendererPinImpl*)(((char*)iface)-offsetof(CVideoRendererPinImpl,member)))
79 HRESULT
CVideoRendererImpl_InitIBasicVideo( CVideoRendererImpl
* This
);
80 void CVideoRendererImpl_UninitIBasicVideo( CVideoRendererImpl
* This
);
81 HRESULT
CVideoRendererImpl_InitIVideoWindow( CVideoRendererImpl
* This
);
82 void CVideoRendererImpl_UninitIVideoWindow( CVideoRendererImpl
* This
);
84 HRESULT
QUARTZ_CreateVideoRenderer(IUnknown
* punkOuter
,void** ppobj
);
85 HRESULT
QUARTZ_CreateVideoRendererPin(
86 CVideoRendererImpl
* pFilter
,
87 CRITICAL_SECTION
* pcsPin
,
88 CRITICAL_SECTION
* pcsPinReceive
,
89 CVideoRendererPinImpl
** ppPin
);
92 #endif /* WINE_DSHOW_VIDREN_H */