#include <kino_plugin_types.h>
Public Types | |
| typedef uint8_t | sample_type |
| Defines the sample type for this specialization. | |
Static Public Member Functions | |
| static sample_type | minimum () |
| Returns the minimum value of a sample. | |
| static sample_type | maximum () |
| Returns the maximum value of a sample. | |
| static sample_type | transparent () |
| Returns the sample value corresponding to transparent alpha. | |
| static sample_type | opaque () |
| Returns the sample value corresponding to opaque alpha. | |
| static sample_type | invert (const sample_type &Sample) |
| Inverts the value of a sample. | |
| static sample_type | convert (const sample_type Sample) |
| Converts a sample from a uint8_t. | |
| static sample_type | convert (const double Sample) |
| Converts a sample from a double. | |
Definition at line 95 of file kino_plugin_types.h.
|
|
Defines the sample type for this specialization.
Definition at line 99 of file kino_plugin_types.h. |
|
|
Converts a sample from a double.
Definition at line 115 of file kino_plugin_types.h. References kino::clamp(), and kino::color_traits< SampleType >::maximum().
|
|
|
Converts a sample from a uint8_t.
Definition at line 113 of file kino_plugin_types.h. 00113 { return Sample; }
|
|
|
Inverts the value of a sample.
Definition at line 110 of file kino_plugin_types.h. References kino::color_traits< SampleType >::maximum(). 00110 { return maximum() - Sample; }
|
|
|
Returns the maximum value of a sample.
Definition at line 104 of file kino_plugin_types.h. 00104 { return 255; }
|
|
|
Returns the minimum value of a sample.
Definition at line 102 of file kino_plugin_types.h. 00102 { return 0; }
|
|
|
Returns the sample value corresponding to opaque alpha.
Definition at line 108 of file kino_plugin_types.h. References kino::color_traits< SampleType >::maximum(). 00108 { return maximum(); }
|
|
|
Returns the sample value corresponding to transparent alpha.
Definition at line 106 of file kino_plugin_types.h. References kino::color_traits< SampleType >::minimum(). 00106 { return minimum(); }
|
1.4.2