public enum SampleRoundingMode extends Enum<SampleRoundingMode>
Defines a way in which an n-bit value is converted to an 8-bit value.
| Enum Constant and Description | 
|---|
Extrapolate
 Extrapolate an 8-bit value to fit it into n bits, where 1 < n < 8. 
 | 
Truncate
 Truncate an 8-bit value to fit it into n bits, where 1 < n < 8. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getType()
Gets the value that represents the type of the enum. 
 | 
static SampleRoundingMode | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static SampleRoundingMode[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final SampleRoundingMode Extrapolate
Extrapolate an 8-bit value to fit it into n bits, where 1 < n < 8. The number of all possible 8-bit values is 1 << 8 = 256, from 0 to 255. The number of all possible n-bit values is 1 << n, from 0 to (1 << n) - 1. The most reasonable n-bit value Vn corresponding to some 8-bit value V8 is equal to Vn = V8 >> (8 - n).
public static final SampleRoundingMode Truncate
Truncate an 8-bit value to fit it into n bits, where 1 < n < 8. The number of all possible n-bit values is 1 << n, from 0 to (1 << n) - 1. The most reasonable n-bit value Vn corresponding to some 8-bit value V8 is equal to Vn = V8 & ((1 << n) - 1).
public static SampleRoundingMode[] values()
for (SampleRoundingMode c : SampleRoundingMode.values()) System.out.println(c);
public static SampleRoundingMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getType()