Ejemplo n.º 1
0
 /// <summary>
 /// </summary>
 internal BufferPinned(NvJpeg nvJpeg, nvjpegPinnedAllocator pinnedAllocator)
 {
     _nvJpeg = nvJpeg;
     _buffer = new nvjpegBufferPinned();
     res     = NvJpegNativeMethods.nvjpegBufferPinnedCreate(nvJpeg.Handle, ref pinnedAllocator, ref _buffer);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvjpegBufferPinnedCreate", res));
     if (res != nvjpegStatus.Success)
     {
         throw new NvJpegException(res);
     }
 }
Ejemplo n.º 2
0
 public static extern nvjpegStatus nvjpegStateAttachPinnedBuffer(nvjpegJpegState decoder_state,
                                                                 nvjpegBufferPinned pinned_buffer);
Ejemplo n.º 3
0
 public static extern nvjpegStatus nvjpegBufferPinnedRetrieve(nvjpegBufferPinned buffer, ref SizeT size, ref IntPtr ptr);
Ejemplo n.º 4
0
 public static extern nvjpegStatus nvjpegBufferPinnedDestroy(nvjpegBufferPinned buffer);
Ejemplo n.º 5
0
 public static extern nvjpegStatus nvjpegBufferPinnedCreate(nvjpegHandle handle,
                                                            ref nvjpegPinnedAllocator pinned_allocator,
                                                            ref nvjpegBufferPinned buffer);