avipsnrfilter.h

来自「对比两个AVI文件的psnr值的VC源代码」· C头文件 代码 · 共 50 行

H
50
字号
// AviPsnrFilter.h: interface for the CAviPsnrFilter class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TTLAVIWRITE_H__A272249E_2B25_44F7_83F8_CB02D005E182__INCLUDED_)
#define AFX_TTLAVIWRITE_H__A272249E_2B25_44F7_83F8_CB02D005E182__INCLUDED_


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


#include "IPsnr.h"
class CDelegatorFilter;
class CAviPsnrFilter :   public CBaseFilter, public IPsnr
{
	friend class CCompedPin;
	friend class CSourcePin;
protected:
	ULONG	m_Ref;
public:
	CDelegatorFilter * const m_pDelegator;

	STDMETHODIMP Stop();
    STDMETHODIMP Pause();

	STDMETHODIMP	get_PSNR (double *pdb_Y, double	*pdb_U,	double	*pdb_V);
	STDMETHODIMP	get_Progress (DWORD *pdwFrame);
    // the start parameter is the difference to be added to the
    // sample's stream time to get the reference time for
    // its presentation
    STDMETHODIMP Run(REFERENCE_TIME tStart);

	DECLARE_IUNKNOWN
//	ULONG	AddRef();
//	ULONG	Release();
//	HRESULT	QueryInterface(const IID& iid, void **ppv);
	////
	CAviPsnrFilter(CDelegatorFilter *pDelegateWriter,LPUNKNOWN pUnk,CCritSec *pLock,HRESULT *hr);
	
	virtual ~CAviPsnrFilter();
	CBasePin *GetPin(int n);
    int GetPinCount();


};

#endif // !defined(AFX_TTLAVIWRITE_H__A272249E_2B25_44F7_83F8_CB02D005E182__INCLUDED_)

⌨️ 快捷键说明

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