2001-10-08 22:56:08 +02:00
|
|
|
/*
|
|
|
|
* Implements CLSID_VideoRenderer.
|
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
* Copyright (C) Hidenori TAKESHIMA <hidenori@a2.ctktv.ne.jp>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2001-10-08 22:56:08 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WINE_DSHOW_VIDREN_H
|
|
|
|
#define WINE_DSHOW_VIDREN_H
|
|
|
|
|
|
|
|
#include "iunk.h"
|
|
|
|
#include "basefilt.h"
|
2001-10-22 21:03:26 +02:00
|
|
|
#include "seekpass.h"
|
2001-10-08 22:56:08 +02:00
|
|
|
|
|
|
|
typedef struct CVideoRendererImpl CVideoRendererImpl;
|
|
|
|
typedef struct CVideoRendererPinImpl CVideoRendererPinImpl;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct VidRen_IBasicVideo
|
|
|
|
{
|
2002-03-22 20:19:23 +01:00
|
|
|
ICOM_VFIELD(IBasicVideo);
|
2001-10-08 22:56:08 +02:00
|
|
|
} VidRen_IBasicVideo;
|
|
|
|
|
|
|
|
typedef struct VidRen_IVideoWindow
|
|
|
|
{
|
|
|
|
ICOM_VFIELD(IVideoWindow);
|
|
|
|
} VidRen_IVideoWindow;
|
|
|
|
|
|
|
|
struct CVideoRendererImpl
|
|
|
|
{
|
|
|
|
QUARTZ_IUnkImpl unk;
|
|
|
|
CBaseFilterImpl basefilter;
|
|
|
|
VidRen_IBasicVideo basvid;
|
|
|
|
VidRen_IVideoWindow vidwin;
|
2001-10-22 21:03:26 +02:00
|
|
|
QUARTZ_IFDelegation qiext;
|
2001-10-08 22:56:08 +02:00
|
|
|
|
2001-10-22 21:03:26 +02:00
|
|
|
CSeekingPassThru* pSeekPass;
|
2001-10-08 22:56:08 +02:00
|
|
|
CVideoRendererPinImpl* pPin;
|
|
|
|
|
|
|
|
BOOL m_fInFlush;
|
|
|
|
|
|
|
|
/* for rendering */
|
|
|
|
HANDLE m_hEventInit;
|
|
|
|
HANDLE m_hThread;
|
|
|
|
HWND m_hwnd;
|
2002-02-19 19:30:26 +01:00
|
|
|
CRITICAL_SECTION m_csReceive;
|
2001-10-08 22:56:08 +02:00
|
|
|
BOOL m_bSampleIsValid;
|
|
|
|
BYTE* m_pSampleData;
|
|
|
|
DWORD m_cbSampleData;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct CVideoRendererPinImpl
|
|
|
|
{
|
|
|
|
QUARTZ_IUnkImpl unk;
|
|
|
|
CPinBaseImpl pin;
|
|
|
|
CMemInputPinBaseImpl meminput;
|
|
|
|
|
|
|
|
CVideoRendererImpl* pRender;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define CVideoRendererImpl_THIS(iface,member) CVideoRendererImpl* This = ((CVideoRendererImpl*)(((char*)iface)-offsetof(CVideoRendererImpl,member)))
|
|
|
|
#define CVideoRendererPinImpl_THIS(iface,member) CVideoRendererPinImpl* This = ((CVideoRendererPinImpl*)(((char*)iface)-offsetof(CVideoRendererPinImpl,member)))
|
|
|
|
|
2002-03-22 20:19:23 +01:00
|
|
|
HRESULT CVideoRendererImpl_InitIBasicVideo( CVideoRendererImpl* This );
|
|
|
|
void CVideoRendererImpl_UninitIBasicVideo( CVideoRendererImpl* This );
|
2001-10-08 22:56:08 +02:00
|
|
|
HRESULT CVideoRendererImpl_InitIVideoWindow( CVideoRendererImpl* This );
|
|
|
|
void CVideoRendererImpl_UninitIVideoWindow( CVideoRendererImpl* This );
|
|
|
|
|
|
|
|
HRESULT QUARTZ_CreateVideoRenderer(IUnknown* punkOuter,void** ppobj);
|
|
|
|
HRESULT QUARTZ_CreateVideoRendererPin(
|
|
|
|
CVideoRendererImpl* pFilter,
|
|
|
|
CRITICAL_SECTION* pcsPin,
|
2002-02-19 19:30:26 +01:00
|
|
|
CRITICAL_SECTION* pcsPinReceive,
|
2001-10-08 22:56:08 +02:00
|
|
|
CVideoRendererPinImpl** ppPin);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* WINE_DSHOW_VIDREN_H */
|