Exemplo n.º 1
0
        private SwsContext(FFmpeg.AutoGen.SwsContext *pointer)
        {
            if (pointer == null)
            {
                throw new ArgumentNullException(nameof(pointer));
            }

            this.pointer = pointer;
        }
Exemplo n.º 2
0
        public void Dispose(bool disposing)
        {
            if (isDisposed)
            {
                return;
            }

            ffmpeg.sws_freeContext(pointer);

            pointer = null;

            isDisposed = true;
        }