ShockwaveGraph.h

00001 /* 
00002  *      Copyright (C) 2003-2005 Gabest
00003  *      http://www.gabest.org
00004  *
00005  *  This Program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2, or (at your option)
00008  *  any later version.
00009  *   
00010  *  This Program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013  *  GNU General Public License for more details.
00014  *   
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with GNU Make; see the file COPYING.  If not, write to
00017  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
00018  *  http://www.gnu.org/copyleft/gpl.html
00019  *
00020  */
00021 
00022 #pragma once
00023 
00024 #include "BaseGraph.h"
00025 #include "CShockwaveFlash.h"
00026 
00027 namespace DSObjects
00028 {
00029 
00030 class CShockwaveGraph : public CBaseGraph
00031 {
00032         CPlayerWindow m_wndWindowFrame;
00033         CShockwaveFlash m_wndDestFrame;
00034 
00035         FILTER_STATE m_fs;
00036 
00037 public:
00038         CShockwaveGraph(HWND hParent, HRESULT& hr);
00039         virtual ~CShockwaveGraph();
00040 
00041 protected:
00042         // IGraphBuilder
00043     STDMETHODIMP RenderFile(LPCWSTR lpcwstrFile, LPCWSTR lpcwstrPlayList);
00044 
00045         // IMediaControl
00046     STDMETHODIMP Run();
00047     STDMETHODIMP Pause();
00048     STDMETHODIMP Stop();
00049         STDMETHODIMP GetState(LONG msTimeout, OAFilterState* pfs);
00050 
00051         // IMediaSeeking
00052         STDMETHODIMP IsFormatSupported(const GUID* pFormat);
00053         STDMETHODIMP GetTimeFormat(GUID* pFormat);
00054         STDMETHODIMP GetDuration(LONGLONG* pDuration);
00055         STDMETHODIMP GetCurrentPosition(LONGLONG* pCurrent);
00056         STDMETHODIMP SetPositions(LONGLONG* pCurrent, DWORD dwCurrentFlags, LONGLONG* pStop, DWORD dwStopFlags);
00057 
00058         // IVideoWindow
00059         STDMETHODIMP put_Visible(long Visible);
00060         STDMETHODIMP get_Visible(long* pVisible);
00061     STDMETHODIMP SetWindowPosition(long Left, long Top, long Width, long Height);
00062 
00063         // IBasicVideo
00064     STDMETHODIMP SetDestinationPosition(long Left, long Top, long Width, long Height);
00065     STDMETHODIMP GetVideoSize(long* pWidth, long* pHeight);
00066 
00067         // IBasicAudio
00068     STDMETHODIMP put_Volume(long lVolume);
00069     STDMETHODIMP get_Volume(long* plVolume);
00070 
00071         // IAMOpenProgress
00072         STDMETHODIMP QueryProgress(LONGLONG* pllTotal, LONGLONG* pllCurrent);
00073 
00074         // IGraphEngine
00075         STDMETHODIMP_(engine_t) GetEngine();
00076 };
00077 
00078 }
00079 using namespace DSObjects;

Generated on Tue Dec 13 14:47:04 2005 for guliverkli by  doxygen 1.4.5