All files / packages/core/src/enums ImageQualityStatus.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38                                                                           
/**
 * Status of a frame as it gets loaded.  This is ordered, with lower
 * values being more lossy, and higher values being less lossy.
 */
enum ImageQualityStatus {
  /**
   *  Replicate is a duplicated image, from some larger distance
   */
  FAR_REPLICATE = 1,
 
  // Skipping a value here and after the next replicate to allow for interpolation
  // enum values.
 
  /**
   * Adjacent replicate is a duplicated image of a nearby image
   */
  ADJACENT_REPLICATE = 3,
 
  /**
   * Sub resolution images are encodings of smaller than full resolution
   * images.  The encoding may or may not be lossy, but the lower resolution
   * means it has lost information already compared to full resolution/lossless.
   */
  SUBRESOLUTION = 6,
 
  /**
   *  Lossy images, encoded with a lossy encoding, but full resolution or size.
   */
  LOSSY = 7,
  /**
   *  Full resolution means the image is full resolution/complete data/lossless
   * (or at least as lossless as the image is going to get)
   */
  FULL_RESOLUTION = 8,
}
 
export default ImageQualityStatus;