ISampleGrabberCallback

Capture Manager SDK

ISampleGrabberCallback

ISampleGrabberCallback – it manages grabbing of one sample from CaptureManager inner thread by the next methods:

HRESULT invoke( REFGUID aGUIDMajorMediaType, DWORD aSampleFlags, LONGLONG aSampleTime, LONGLONG aSampleDuration, LPVOID aPtrSampleBuffer, DWORD aSampleSize) - method for callback invoking, where aGUIDMajorMediaType is data type (MFMediaType_Video, MFMediaType_Audio), aSampleFlags is system sample flags, aSampleTime is current sample time (100 nsec), aSampleDuration is current sample duration time (100 nsec), aPtrSampleBuffer is a pointer on the sample raw data, aSampleSize is a size of the sample raw data.