xoblite™ / Blackbox for Windows bb5 | RC6 preview | 0.25.2.14
http://xoblite.net/
BImage.h File Reference
#include "..\API\BBApi.h"

Classes

class  BImage
 

Functions

static unsigned long bsqrt (unsigned long x)
 
unsigned long getSqrt (unsigned int x)
 

Function Documentation

◆ bsqrt()

static unsigned long bsqrt ( unsigned long x)
static

◆ getSqrt()

unsigned long getSqrt ( unsigned int x)
1302{
1303 if (!sqrt_table)
1304 {
1305 // build sqrt table for use with elliptic gradient
1306 sqrt_table = new unsigned long[(256 * 256 * 2) + 1];
1307
1308 for (int i = 0; i < (256 * 256 * 2); i++)
1309 *(sqrt_table + i) = bsqrt(i);
1310 }
1311 return (*(sqrt_table + x));
1312}
unsigned long * sqrt_table
Definition BImage.cpp:40
static unsigned long bsqrt(unsigned long x)
Definition BImage.cpp:1283