예제 #1
0
        private SwsContext(FFmpeg.AutoGen.SwsContext *pointer)
        {
            if (pointer == null)
            {
                throw new ArgumentNullException(nameof(pointer));
            }

            this.pointer = pointer;
        }
예제 #2
0
        public void Dispose(bool disposing)
        {
            if (isDisposed)
            {
                return;
            }

            ffmpeg.sws_freeContext(pointer);

            pointer = null;

            isDisposed = true;
        }