Example #1
0
 public ImageBufferNativeGCHandleSinglePlane(ImageBufferNativePool <ImageBufferNativeGCHandleSinglePlane> pool, ImageBufferInfo info) : base(info)
 {
     if (info.Stride.Length != 1)
     {
         throw new Exception("ImageBufferNativeGCHandleSinglePlane wrong plane count " + info.Stride.Length);
     }
     this.pool = pool;
     Planes    = new IntPtr[1];
 }
Example #2
0
 public ImageBufferNativeAlloc(ImageBufferNativePool <ImageBufferNativeAlloc> pool, ImageBufferInfo info) : base(info)
 {
     this.pool = pool;
     Planes    = new IntPtr[info.Stride.Length];
     for (int i = 0; i < info.Stride.Length; i++)
     {
         Planes[i] = System.Runtime.InteropServices.Marshal.AllocHGlobal(info.Stride[i] * info.Height);
     }
 }
        }                                                        // Dummy constructor

        public ImageBufferNativeGCHandleSinglePlane(ImageBufferNativePool <ImageBufferNativeGCHandleSinglePlane> pool, ImageBufferInfo info)
        {
        }                                                                                                                                              // 0x0000000180F1CB90-0x0000000180F1CCB0
Example #4
0
        }                                          // Dummy constructor

        public ImageBufferNativeAlloc(ImageBufferNativePool <ImageBufferNativeAlloc> pool, ImageBufferInfo info)
        {
        }                                                                                                                  // 0x0000000180F1C970-0x0000000180F1CAE0