cfilternetreceiver.h
来自「最近在学习directshow, Directshow实务精选的源代码」· C头文件 代码 · 共 47 行
H
47 行
//
// CFilterNetReceiver.h
//
#ifndef __H_CFilterNetReceiver__
#define __H_CFilterNetReceiver__
#include "CNetOutPin.h"
#include "CStreamSocket.h"
#include "CMsgStation.h"
class CFilterNetReceiver : public CBaseFilter, public CMsgStation
{
friend class CNetOutPin;
private:
CCritSec mFilterLock;
CNetOutPin * mOutPin;
BOOL mIsVideo;
CStreamSocket mReceiver;
IMediaSample * mSample;
// Used to set time stamp on audio sample
long mAudioBytesPerSecond;
REFERENCE_TIME mLastSampleTime;
public:
CFilterNetReceiver(LPUNKNOWN punk, HRESULT *phr);
~CFilterNetReceiver();
public:
virtual int GetPinCount();
virtual CBasePin * GetPin(int n);
STDMETHODIMP Stop();
void SetAudioBytesPerSecond(long inBytes);
BOOL GetSampleBuffer(PBYTE * outBuffer);
BOOL DeliverHoldingSample(long inSampleSize);
// --- public methods ---
void SetupMediaType(long inType, char * inFormat, long inLength);
void SetStreamSocket(SOCKET inSocket);
void StartReceiving(void);
};
#endif // __H_CFilterNetReceiver__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?