Пример #1
0
        public void Dispose()
        {
            Stop();
            if (_ffimp != null)
            {
                _ffimp.Release();
            }
            if (_yuvDraw != null)
            {
                _yuvDraw.Release();
            }

            _yuvDataBuffer = null;
        }
Пример #2
0
 public void Dispose()
 {
     try
     {
         if (_isworking)
         {
             Stop();
         }
         _capturer.Dispose();
         _ffscale.Release();
         _x264.Release();
         _draw.Release();
     }
     catch (Exception e)
     {
         throw;
     }
 }