2 * Implements CLSID_FileWriter.
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_FILESINK_H
22 #define WINE_DSHOW_FILESINK_H
28 typedef struct CFileWriterImpl CFileWriterImpl;
29 typedef struct CFileWriterPinImpl CFileWriterPinImpl;
32 typedef struct FileWriterPin_IStreamImpl
35 } FileWriterPin_IStreamImpl;
37 typedef struct FileWriter_IFileSinkFilter2Impl
39 ICOM_VFIELD(IFileSinkFilter2);
40 } FileWriter_IFileSinkFilter2Impl;
42 struct CFileWriterImpl
45 CBaseFilterImpl basefilter;
46 FileWriter_IFileSinkFilter2Impl filesink;
47 QUARTZ_IFDelegation qiext;
49 CSeekingPassThru* pSeekPass;
50 CFileWriterPinImpl* pPin;
52 CRITICAL_SECTION m_csReceive;
63 struct CFileWriterPinImpl
67 CMemInputPinBaseImpl meminput;
68 FileWriterPin_IStreamImpl stream;
70 CFileWriterImpl* pRender;
73 #define CFileWriterImpl_THIS(iface,member) CFileWriterImpl* This = ((CFileWriterImpl*)(((char*)iface)-offsetof(CFileWriterImpl,member)))
74 #define CFileWriterPinImpl_THIS(iface,member) CFileWriterPinImpl* This = ((CFileWriterPinImpl*)(((char*)iface)-offsetof(CFileWriterPinImpl,member)))
77 HRESULT CFileWriterPinImpl_InitIStream( CFileWriterPinImpl* This );
78 HRESULT CFileWriterPinImpl_UninitIStream( CFileWriterPinImpl* This );
79 HRESULT CFileWriterImpl_InitIFileSinkFilter2( CFileWriterImpl* This );
80 HRESULT CFileWriterImpl_UninitIFileSinkFilter2( CFileWriterImpl* This );
82 HRESULT QUARTZ_CreateFileWriter(IUnknown* punkOuter,void** ppobj);
83 HRESULT QUARTZ_CreateFileWriterPin(
84 CFileWriterImpl* pFilter,
85 CRITICAL_SECTION* pcsPin,
86 CRITICAL_SECTION* pcsPinReceive,
87 CFileWriterPinImpl** ppPin);
90 #endif /* WINE_DSHOW_FILESINK_H */