Ejemplo n.º 1
0
        public IBuffer GetBuffer()
        {
            var ptr = MmalQueue.Get(Ptr);

            if (!CheckState())
            {
                MmalLog.Logger.LogWarning("Buffer retrieved null.");
                return(null);
            }

            return(new MmalBuffer(ptr));
        }
Ejemplo n.º 2
0
 void Destroy() => MmalQueue.Destroy(Ptr);
Ejemplo n.º 3
0
 public void Put(IBuffer buffer) => MmalQueue.Put(Ptr, buffer.Ptr);
Ejemplo n.º 4
0
 public IBuffer TimedWait(int waitms) => new MmalBuffer(MmalQueue.TimedWait(Ptr, waitms));
Ejemplo n.º 5
0
 public IBuffer Wait() => new MmalBuffer(MmalQueue.Wait(Ptr));
Ejemplo n.º 6
0
 public uint QueueLength() => MmalQueue.Length(Ptr);