public InfoCollectionDebugView(InfoCollection optionList)
            {
                if (optionList == null)
                {
                    throw new ArgumentNullException(nameof(optionList));
                }

                ic = optionList;
            }
        /// <summary>
        /// Initializes a new instance of the <see cref="ProcessingBlock"/> class.
        /// <para>
        /// Starts the processing block directing it's output to the <see cref="Queue"/>
        /// </para>
        /// </summary>
        /// <param name="ptr">native <c>rs2_processing_block*</c> pointer</param>
        public ProcessingBlock(IntPtr ptr)
            : base(ptr, NativeMethods.rs2_delete_processing_block)
        {
            object error;

            Options = new OptionsList(Handle);
            Info    = new InfoCollection(NativeMethods.rs2_supports_processing_block_info, NativeMethods.rs2_get_processing_block_info, Handle);

            NativeMethods.rs2_start_processing_queue(Handle, queue.Handle, out error);
        }
Beispiel #3
0
 internal override void Initialize()
 {
     lock (tableLock)
     {
         if (refCountTable.Contains(Handle))
         {
             refCount = refCountTable[Handle] as Base.RefCount;
         }
         else
         {
             refCount = new Base.RefCount();
             refCountTable[Handle] = refCount;
         }
         Retain();
     }
     Info = new InfoCollection(NativeMethods.rs2_supports_device_info, NativeMethods.rs2_get_device_info, Handle);
 }
Beispiel #4
0
 internal override void Initialize()
 {
     Info = new InfoCollection(NativeMethods.rs2_supports_device_info, NativeMethods.rs2_get_device_info, Handle);
 }
Beispiel #5
0
 internal Sensor(IntPtr sensor)
     : base(sensor, NativeMethods.rs2_delete_sensor)
 {
     Info    = new InfoCollection(NativeMethods.rs2_supports_sensor_info, NativeMethods.rs2_get_sensor_info, Handle);
     Options = new OptionsList(Handle);
 }
Beispiel #6
0
 internal override void Initialize()
 {
     Info    = new InfoCollection(NativeMethods.rs2_supports_sensor_info, NativeMethods.rs2_get_sensor_info, Handle);
     Options = new OptionsList(Handle);
 }