group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
smaa_detail Namespace Reference

Functions

float areaOrtho (float p, float d, float offset)
 Smoothing function used by the area calculation.
void calcAreaOrtho (int d1, int d2, int e1, int e2, float offset, float &r, float &g)
 Compute the area for a specific orthogonal edge configuration.
float subtexOffset (int idx)
 Map sub-pixel index [0..6] to sub-pixel offset value.

Function Documentation

◆ areaOrtho()

float smaa_detail::areaOrtho ( float p,
float d,
float offset )
inline

Smoothing function used by the area calculation.

Returns the area under the line between two edge endpoints that overlaps the pixel at position p, for a smooth step profile.

◆ calcAreaOrtho()

void smaa_detail::calcAreaOrtho ( int d1,
int d2,
int e1,
int e2,
float offset,
float & r,
float & g )
inline

Compute the area for a specific orthogonal edge configuration.

Parameters
d1distance from pixel to left/top endpoint
d2distance from pixel to right/bottom endpoint
e1crossing edge flag at endpoint 1 (0 or 1)
e2crossing edge flag at endpoint 2 (0 or 1)
offsetsub-pixel offset (0..6 mapped to -0.25..0.25 etc.)
resultoutput RG values (two blend weights)
Here is the caller graph for this function:

◆ subtexOffset()

float smaa_detail::subtexOffset ( int idx)
inline

Map sub-pixel index [0..6] to sub-pixel offset value.

Here is the caller graph for this function: