This disclosure is directed to encoding techniques that can be used to improve
encoding of digital video data. The techniques can be implemented by an encoder
of a digital video device in order to reduce the number of computations and possibly
reduce power consumption during video encoding. More specifically, video encoding
techniques are describe which utilize one or more programmable thresholds in order
to terminate the execution of various computations when the computations would
be unlikely to improve the encoding. By terminating computations prematurely, the
amount of processing required for video encoding can be reduced, and power can
be conserved.