⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dsapi.h

📁 一个针对realmagic的播放器
💻 H
字号:
// DSApi.h: interface for the CDSApi class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DSAPI_H__BD535C1D_FAE7_42CB_AA26_B3D012D8267E__INCLUDED_)
#define AFX_DSAPI_H__BD535C1D_FAE7_42CB_AA26_B3D012D8267E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <dshow.h>
#include <stdio.h>
#include <tchar.h>
#include <atlbase.h>

//
// Macros
//
#define SAFE_RELEASE(x) { if (x) x->Release(); x = NULL; }

#define JIF(x) if (FAILED(hr=(x))) \
    {Msg(TEXT("FAILED(hr=0x%x) in ") TEXT(#x) TEXT("\n\0"), hr); return hr;}

#define LIF(x) if (FAILED(hr=(x))) \
    {Msg(TEXT("FAILED(hr=0x%x) in ") TEXT(#x) TEXT("\n\0"), hr);}


class CDSApi  
{
public:
	IFilterGraph *pFG;		// interface to filter graph we are to build
//Filter *pAR;			// interface to the async file reader
//Filter *pVC;			// interface to sw audio codec 
//Filter *pAC;			// interface to sw video codec 
//Filter *pSigma;		// interface to sigma hardware
//	IMediaControl *pMC;		
	//IMediaEvent *pME;	
//	IGraphBuilder *pBuilder;	
	IFileSourceFilter *pSourceFilter; // interface to the source filter

	IGraphBuilder *pGB; // interface to render the filter graph
	IMediaControl *pMC; // interface to control start the playback
	IMediaEventEx *pME;	// interface to know when playback ends
	IVideoWindow  *pVW;
	IBasicAudio   *pBA;
	IBasicVideo   *pBV;
	IMediaSeeking *pMS;
	IMediaPosition *pMP;
	//IVideoFrameStep *pFS;


    HRESULT PlayMovieInWindow(LPTSTR szFile);
	CDSApi();
	virtual ~CDSApi();

};

#endif // !defined(AFX_DSAPI_H__BD535C1D_FAE7_42CB_AA26_B3D012D8267E__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -