コード例 #1
0
        public MmalPoolImpl(MmalPoolType *ptr)
        {
            MmalLog.Logger.LogDebug($"Creating buffer pool from existing instance.");

            Ptr   = ptr;
            Queue = new MmalQueueImpl((*Ptr).Queue);
        }
コード例 #2
0
 public MmalConnectionType(IntPtr userData, IntPtr callback, uint isEnabled, uint flags, MmalPortType *input, MmalPortType *output,
                           MmalPoolType *pool, MmalQueueType *queue, char *name, long timeSetup, long timeEnable, long timeDisable)
 {
     UserData    = userData;
     Callback    = callback;
     IsEnabled   = isEnabled;
     Flags       = flags;
     Input       = input;
     Output      = output;
     Pool        = pool;
     Queue       = queue;
     Name        = name;
     TimeSetup   = timeSetup;
     TimeEnable  = timeEnable;
     TimeDisable = timeDisable;
 }
コード例 #3
0
 public static extern unsafe void Destroy(MmalPoolType *pool);
コード例 #4
0
 public static extern unsafe MmalStatusEnum Resize(MmalPoolType *pool, uint headers, uint payload_size);