예제 #1
0
 /// <summary>
 /// Destroy a pool of MMAL_BUFFER_HEADER_T. This will also deallocate all of the memory which was allocated when creating or resizing the pool.
 /// </summary>
 internal void Destroy()
 {
     MMALPool.mmal_pool_destroy(this.Ptr);
 }
예제 #2
0
 /// <summary>
 /// Resize a pool of MMAL_BUFFER_HEADER_T. This allows modifying either the number of allocated buffers, the payload size or both at the same time.
 /// </summary>
 /// <param name="numHeaders">Number of headers to be contained in this pool.</param>
 /// <param name="size">The size of the headers.</param>
 internal void Resize(uint numHeaders, uint size)
 {
     MMALCheck(MMALPool.mmal_pool_resize(this.Ptr, numHeaders, size), "Unable to resize pool");
 }
예제 #3
0
 /// <summary>
 /// Destroy a pool of MMAL_BUFFER_HEADER_T. This will also deallocate all of the memory which was allocated when creating or resizing the pool.
 /// </summary>
 private void Destroy()
 {
     MMALPool.mmal_pool_destroy(this.Ptr);
 }