• Introduction
  • Programmer's Guide
  • Technical Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • ic4
      • BufferPool
      • DeviceEnum
      • DeviceInfo
      • Display
      • DisplayNotation
      • DisplayRenderPosition
      • DisplayStatistics
      • DisplayType
      • EmbeddedDisplay
      • ErrorCode
      • ExternalOpenGLDisplay
      • FloatRepresentation
      • FloatingDisplay
      • FrameMetaData
      • Grabber
      • HandleObject
      • IBufferAllocator
      • IC4Exception
      • IDisplay
      • ImageBuffer
      • ImageBuffer.CopyOptions
      • ImageBufferExtensions
      • ImageBufferExtensionsOpenCvSharp
      • ImageType
      • IntRepresentation
      • Interface
      • Library
      • LogLevel
      • LogTarget
      • PixelFormat
      • PixelFormatExtensions
      • PngCompressionLevel
      • PropBoolean
      • PropCategory
      • PropCommand
      • PropEnumEntry
      • PropEnumeration
      • PropFloat
      • PropId
      • PropIdBoolean
      • PropIdCommand
      • PropIdEnumeration
      • PropIdFloat
      • PropIdInteger
      • PropIdRegister
      • PropIdString
      • PropInteger
      • PropRegister
      • PropString
      • Property
      • PropertyIncrementMode
      • PropertyMap
      • PropertyType
      • PropertyVisibility
      • QueueSink
      • QueueSinkConnectedEventArgs
      • QueueSinkEventArgs
      • QueueSinkQueueSizes
      • Sink
      • SinkMode
      • SinkType
      • SnapSink
      • SnapSinkAllocationStrategy
      • StreamSetupOption
      • StreamStatistics
      • TransportLayerType
      • VersionInfoFlags
      • VideoWriter
      • VideoWriterType

    Class SnapSinkAllocationStrategy

    The SnapSink buffer allocation strategy defines how many buffers are pre-allocated, when additional buffers are created, and when excess buffers are reclaimed.

    Inheritance
    object
    SnapSinkAllocationStrategy
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ic4
    Assembly: ic4dotnet.dll
    Syntax
    public class SnapSinkAllocationStrategy

    Properties

    NumBuffersAllocationThreshold

    Defines the minimum number of required free buffers.

    If the number of free buffers falls below this, new buffers are allocated.

    Declaration
    public int NumBuffersAllocationThreshold { get; set; }
    Property Value
    Type Description
    int

    The minimum number of required free buffers.

    NumBuffersFreeThreshold

    Defines the maximum number of free buffers

    If the number of free buffers grows above this, buffers are freed.

    If set to 0, buffers are not freed automatically.

    Declaration
    public int NumBuffersFreeThreshold { get; set; }
    Property Value
    Type Description
    int

    The maximum number of free buffers

    Remarks

    If NumBuffersFreeThreshold is not 0, it must be larger than NumBuffersAllocationThreshold + 2.

    NumBuffersMax

    Defines the maximum total number of buffers this sink will allocate.

    This includes both free buffers managed by the sink and filled buffers owned by the program.

    Declaration
    public int NumBuffersMax { get; set; }
    Property Value
    Type Description
    int

    The maximum total number of buffers this sink will allocate

    Remarks

    If set to 0, there is no limit to the total number of buffers.

    NumBuffersToAllocateOnConnect

    Defines the number of buffers to auto-allocate when the stream is set up.

    Declaration
    public int NumBuffersToAllocateOnConnect { get; set; }
    Property Value
    Type Description
    int

    The number of buffers to auto-allocate when the stream is set up

    In this article
    Copyright ©️ 2024 The Imaging Source Europe GmbH www.theimagingsource.com