Exemple #1
0
        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.");
            }
        }
Exemple #2
0
 protected virtual void Dispose(bool disposing)
 {
     unsafe {
         if (handle != null)
         {
             drmModeFreeEncoder(handle);
         }
         handle = null;
     }
 }
Exemple #3
0
 internal static extern void drmModeFreeEncoder(drmEncoder *ptr);