ddstream.idl revision af062818b47340eef15700d2f0211576ba3506ee
af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2004 Christian Costa
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "unknwn.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "mmstream.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#ifndef __WINE_DDRAW_H")
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef void * LPDDSURFACEDESC;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct tDDSURFACEDESC DDSURFACEDESC;
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IDirectDraw;
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IDirectDrawSurface;
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IDirectDrawPalette;
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#endif")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#include <ddraw.h>")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncenum {
af062818b47340eef15700d2f0211576ba3506eevboxsync DDSFF_PROGRESSIVERENDER = 0x00000001
af062818b47340eef15700d2f0211576ba3506eevboxsync};
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IDirectDrawMediaStream;
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IDirectDrawStreamSample;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsyncobject,
af062818b47340eef15700d2f0211576ba3506eevboxsynclocal,
af062818b47340eef15700d2f0211576ba3506eevboxsyncuuid(F4104FCE-9A70-11d0-8FDE-00C04FD9189D),
af062818b47340eef15700d2f0211576ba3506eevboxsyncpointer_default(unique)
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IDirectDrawMediaStream : IMediaStream
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetFormat(
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] DDSURFACEDESC *pDDSDCurrent,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IDirectDrawPalette **ppDirectDrawPalette,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] DDSURFACEDESC *pDDSDDesired,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] DWORD *pdwFlags);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetFormat(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const DDSURFACEDESC *pDDSurfaceDesc,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IDirectDrawPalette *pDirectDrawPalette);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetDirectDraw(
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IDirectDraw **ppDirectDraw);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetDirectDraw(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IDirectDraw *pDirectDraw);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT CreateSample(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IDirectDrawSurface *pSurface,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const RECT *pRect,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD dwFlags,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IDirectDrawStreamSample **ppSample);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetTimePerFrame(
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] STREAM_TIME *pFrameTime);
af062818b47340eef15700d2f0211576ba3506eevboxsync}
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsyncobject,
af062818b47340eef15700d2f0211576ba3506eevboxsynclocal,
af062818b47340eef15700d2f0211576ba3506eevboxsyncuuid(F4104FCF-9A70-11d0-8FDE-00C04FD9189D),
af062818b47340eef15700d2f0211576ba3506eevboxsyncpointer_default(unique)
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IDirectDrawStreamSample : IStreamSample
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetSurface(
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IDirectDrawSurface ** ppDirectDrawSurface,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] RECT * pRect);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetRect(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const RECT * pRect);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync}