Browse Source

Use constant

Former-commit-id: ffa70d25bd458a66583eb7e26e12e8ef2d625d31
Former-commit-id: dc1117d146a13935391f8fc5141e479242c1d69c
Former-commit-id: ef9570326915c2a7680626c9b9d0ad930805eb97
af/merge-core
James Jackson-South 10 years ago
parent
commit
e75d424a18
  1. 2
      src/ImageProcessorCore/PixelAccessor.cs

2
src/ImageProcessorCore/PixelAccessor.cs

@ -54,7 +54,7 @@ namespace ImageProcessorCore
// Assign the pointer.
// If buffer is allocated on Large Object Heap i.e > 85Kb, then we are going to pin it instead of making a copy.
if (size > (85 * 1024))
if (size > 87040)
{
this.pixelsHandle = GCHandle.Alloc(image.Pixels, GCHandleType.Pinned);
this.pixelsBase = (float*)this.pixelsHandle.AddrOfPinnedObject().ToPointer();

Loading…
Cancel
Save