Module samples

Source
Expand description

Extract pixel samples from a block of pixel bytes.

Enums§

Sample
A single red, green, blue, or alpha value.

Traits§

FromNativeSample
Create an arbitrary sample type from one of the defined sample types. Should be compiled to a no-op where the file contains the predicted sample type. The slice functions should be optimized into a memcpy where there is no conversion needed.
IntoNativeSample
Convert any type into one of the supported sample types. Should be compiled to a no-op where the file contains the predicted sample type