mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
0799c1a780
Global replacement of debugtools.h by wine/debug.h.
82 lines
2.5 KiB
C
82 lines
2.5 KiB
C
/*
|
|
* Copyright (C) Hidenori TAKESHIMA
|
|
*
|
|
* 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
|
|
*/
|
|
|
|
#ifndef WINE_DSHOW_SEEKPASS_H
|
|
#define WINE_DSHOW_SEEKPASS_H
|
|
|
|
/*
|
|
implements CLSID_SeekingPassThru.
|
|
|
|
- At least, the following interfaces should be implemented:
|
|
|
|
IUnknown
|
|
+ ISeekingPassThru
|
|
|
|
*/
|
|
|
|
#include "iunk.h"
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
typedef struct CPassThruImpl
|
|
{
|
|
struct { ICOM_VFIELD(IMediaPosition); } mpos;
|
|
struct { ICOM_VFIELD(IMediaSeeking); } mseek;
|
|
|
|
IUnknown* punk;
|
|
IPin* pPin;
|
|
} CPassThruImpl;
|
|
|
|
#define CPassThruImpl_THIS(iface,member) CPassThruImpl* This = ((CPassThruImpl*)(((char*)iface)-offsetof(CPassThruImpl,member)))
|
|
|
|
HRESULT CPassThruImpl_InitIMediaPosition( CPassThruImpl* pImpl );
|
|
void CPassThruImpl_UninitIMediaPosition( CPassThruImpl* pImpl );
|
|
HRESULT CPassThruImpl_InitIMediaSeeking( CPassThruImpl* pImpl );
|
|
void CPassThruImpl_UninitIMediaSeeking( CPassThruImpl* pImpl );
|
|
|
|
HRESULT CPassThruImpl_QueryPosPass(
|
|
CPassThruImpl* pImpl, IMediaPosition** ppPosition );
|
|
HRESULT CPassThruImpl_QuerySeekPass(
|
|
CPassThruImpl* pImpl, IMediaSeeking** ppSeeking );
|
|
|
|
/****************************************************************************/
|
|
|
|
typedef struct QUARTZ_ISeekingPassThruImpl
|
|
{
|
|
ICOM_VFIELD(ISeekingPassThru);
|
|
} QUARTZ_ISeekingPassThruImpl;
|
|
|
|
typedef struct CSeekingPassThru
|
|
{
|
|
QUARTZ_IUnkImpl unk;
|
|
QUARTZ_ISeekingPassThruImpl seekpass;
|
|
|
|
/* ISeekingPassThru fields. */
|
|
CRITICAL_SECTION cs;
|
|
CPassThruImpl passthru;
|
|
} CSeekingPassThru;
|
|
|
|
#define CSeekingPassThru_THIS(iface,member) CSeekingPassThru* This = ((CSeekingPassThru*)(((char*)iface)-offsetof(CSeekingPassThru,member)))
|
|
|
|
HRESULT QUARTZ_CreateSeekingPassThru(IUnknown* punkOuter,void** ppobj);
|
|
HRESULT QUARTZ_CreateSeekingPassThruInternal(IUnknown* punkOuter,CSeekingPassThru** ppobj,BOOL bRendering,IPin* pPin);
|
|
|
|
|
|
#endif /* WINE_DSHOW_SEEKPASS_H */
|