/* * Source code originally from RtspClientSharp's player example: * https://github.com/BogdanovKirill/RtspClientSharp */ // ReSharper disable All using System; namespace IPCamLib.FFMPEG { internal class DecodedVideoFrame : IDecodedVideoFrame { private readonly Action _transformAction; public DecodedVideoFrame(Action transformAction) { _transformAction = transformAction; } public void TransformTo(IntPtr buffer, int bufferStride, TransformParameters transformParameters) { _transformAction(buffer, bufferStride, transformParameters); } } }