| Using ISampleGrabberCB SampleCB in C# |
|
I've tried before to use this method in C# but I failed. I don't think I have seen code using it on the net. So here is a snippet using it. The important line is the second last one, it seems that you have to call "Marshal.ReleaseComObject".
unsafe int ISampleGrabberCB.SampleCB( double SampleTime, IMediaSample pSample )
b = (byte *)(ptr); With this simple modification, the CsEzRgb24 sample can be made to run using the BufferCB or the SampleCB callback. |
| < Prev | Next > |
|---|











