This repository has been archived on 2025-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
superstar/SampleGrabberCallback.cs
2025-03-18 11:35:10 +08:00

27 lines
541 B
C#

using System;
using DirectShowLib;
namespace DualScreenDemo
{
public class SampleGrabberCallback : ISampleGrabberCB
{
private VideoPlayerForm form;
public SampleGrabberCallback(VideoPlayerForm form)
{
this.form = form;
}
public int BufferCB(double SampleTime, IntPtr pBuffer, int BufferLen)
{
return 0;
}
public int SampleCB(double SampleTime, IMediaSample pSample)
{
return 0;
}
}
}