unsafe internal Encoder(int _fd_gpu, uint _id) { fd_gpu = _fd_gpu; handle = drmModeGetEncoder(fd_gpu, _id); if (handle == null) { throw new NotSupportedException("[DRI] drmModeGetEncoder failed."); } }
protected virtual void Dispose(bool disposing) { unsafe { if (handle != null) { drmModeFreeEncoder(handle); } handle = null; } }
internal static extern void drmModeFreeEncoder(drmEncoder *ptr);