Some representative embodiments are directed to systems and methods for
compressing a data set. In one embodiment, a method comprises receiving a
frame of data to be encoded, generating a residual frame that represents
a difference between the received frame and one or several reference
frames, performing a respective sum of absolute differences (SAD)
calculation for each block within the residual frame, and applying a
transform function to each data value within the residual frame, wherein
the transform function is at least a function of a SAD value calculated
for the block containing the respective data value.