Skip to content

Instantly share code, notes, and snippets.

@imWildCat
Last active August 29, 2015 14:07
Show Gist options
  • Save imWildCat/17f47926c453a1ff7a62 to your computer and use it in GitHub Desktop.
Save imWildCat/17f47926c453a1ff7a62 to your computer and use it in GitHub Desktop.
in RNFrostedSideBar
vImageBoxConvolve_ARGB8888(&effectInBuffer, &effectOutBuffer, NULL, 0, 0, (uint32_t)radius, (uint32_t)radius, 0, kvImageEdgeExtend);
vImageBoxConvolve_ARGB8888(&effectOutBuffer, &effectInBuffer, NULL, 0, 0, (uint32_t)radius, (uint32_t)radius, 0, kvImageEdgeExtend);
vImageBoxConvolve_ARGB8888(&effectInBuffer, &effectOutBuffer, NULL, 0, 0, (uint32_t)radius, (uint32_t)radius, 0, kvImageEdgeExtend);
func vImageBoxConvolve_ARGB8888(_ src: UnsafePointer<vImage_Buffer>,
_ dest: UnsafePointer<vImage_Buffer>,
_ tempBuffer: UnsafeMutablePointer<Void>,
_ srcOffsetToROI_X: vImagePixelCount,
_ srcOffsetToROI_Y: vImagePixelCount,
_ kernel_height: UInt32,
_ kernel_width: UInt32,
_ backgroundColor: UnsafeMutablePointer<UInt8>,
_ flags: vImage_Flags) -> vImage_Error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment