Skip to content

Instantly share code, notes, and snippets.

View pkonecki's full-sized avatar

Pierre-Olivier Konecki pkonecki

View GitHub Profile
@pkonecki
pkonecki / kawase.h
Last active January 14, 2023 14:17
Kawase Blur Kernel sequence for equivalent Gaussian kernel size
// Taken from https://software.intel.com/en-us/blogs/2014/07/15/an-investigation-of-fast-real-time-gpu-based-image-blur-algorithms, source at the bottom
int KernelSize = 7; int shaderKernel[] = { 0, 0 };
int KernelSize = 15; int shaderKernel[] = { 0, 1, 1 };
int ShaderKernelSize = 23; int shaderKernel[] = { 0, 1, 1, 2 };
int ShaderKernelSize = 35; int shaderKernel[] = { 0, 1, 2, 2, 3 };
int ShaderKernelSize = 63; int shaderKernel[] = { 0, 1, 2, 3, 4, 4, 5 };
int ShaderKernelSize = 127; int shaderKernel[] = { 0, 1, 2, 3, 4, 5, 7, 8, 9, 10 };
@pkonecki
pkonecki / Auth_Vanilla.php
Last active September 24, 2015 16:22
Vanilla2-Mediawiki Auth Plugin
<?php
/**
* Authentication plugin interface. Instantiate a subclass of AuthPlugin
* and set $wgAuth to it to authenticate against some external tool.
*
* The default behavior is not to do anything, and use the local user
* database for all authentication. A subclass can require that all
* accounts authenticate externally, or use it only as a fallback; also
* you can transparently create internal wiki accounts the first time
* someone logs in who can be authenticated externally.