Systems and methods are disclosed that facilitate rapidly warping a
two-dimensional image using integer math. A warping table can contain
two-dimensional floating point output pixel offset values that are mapped
to respective input pixel locations in a captured image. The warping
table values can be pre-converted to integer offset values and integer
grid values mapped to a sub-pixel grid. During warping, each output pixel
can be looked up via its integer offset value, and a one-dimensional
table lookup for each pixel can be performed to interpolate pixel data
based at least in part on the integer grid value of the pixel. Due to the
small size of the lookup tables, lookups can potentially be stored in and
retrieved from a CPU cache, which stores most recent instructions to
facilitate extremely rapid warping and fast table lookups.