Patent attributes
Techniques to provide compression and/or decompression. A method includes obtaining a first set of control points specifying a first set of compression ratios corresponding to respective first regions of a compression domain, and minimum and maximum uncompressed values within the compression domain. The method can further include scaling the first set of control points based on the minimum and maximum uncompressed values to obtain a scaled set of control points, wherein a first scaled control point is located at the minimum uncompressed value, and a last scaled control point is located at the maximum uncompressed value. The method can further include adjusting at least one scaled control point such that a first slope does not exceed 1. The method can further include compressing or decompressing between the compression domain and a range of compressed values, wherein a respective compression ratio corresponds to a respective slope of the set of slopes.