Module rust

Source

Constantsยง

AREA_DIVISORS ๐Ÿ”’
Lookup table for 2^AREA_DIVISOR_BITS / (1 + x)
AREA_DIVISOR_BITS ๐Ÿ”’
Number of bits of precision used in AREA_DIVISORS
GET_WEIGHTED_SSE_SHIFT
Number of bits rounded off before summing in get_weighted_sse

Functionsยง

butterfly ๐Ÿ”’
cdef_dist_kernel
Computes a distortion metric of the sum of squares weighted by activity. w and h should be <= 8.
get_sad
Compute the sum of absolute differences over a block. w and h can be at most 128, the size of the largest block.
get_satd
Sum of absolute transformed differences over a block. w and h can be at most 128, the size of the largest block. Use the sum of 4x4 and 8x8 hadamard transforms for the transform, but revert to sad on edges when these transforms do not fit into w and h. 4x4 transforms instead of 8x8 transforms when width or height < 8.
get_weighted_sse
Computes weighted sum of squared error.
hadamard2d ๐Ÿ”’
hadamard4_1d ๐Ÿ”’
hadamard4x4 ๐Ÿ”’ โš 
hadamard8_1d ๐Ÿ”’
hadamard8x8 ๐Ÿ”’ โš