private SwsContext(FFmpeg.AutoGen.SwsContext *pointer) { if (pointer == null) { throw new ArgumentNullException(nameof(pointer)); } this.pointer = pointer; }
public void Dispose(bool disposing) { if (isDisposed) { return; } ffmpeg.sws_freeContext(pointer); pointer = null; isDisposed = true; }