#include <kino_plugin_types.h>
Public Types | |
| typedef double | 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 uint8_t Sample) |
| Converts a sample from a uint8_t. | |
| static sample_type | convert (const sample_type Sample) |
| Converts a sample from a double. | |
Definition at line 123 of file kino_plugin_types.h.
|
|
Defines the sample type for this specialization.
Definition at line 127 of file kino_plugin_types.h. |
|
|
Converts a sample from a double.
Definition at line 143 of file kino_plugin_types.h. 00143 { return Sample; }
|
|
|
Converts a sample from a uint8_t.
Definition at line 141 of file kino_plugin_types.h. 00141 { return static_cast<sample_type>(Sample) / 255.0; }
|
|
|
Inverts the value of a sample.
Definition at line 138 of file kino_plugin_types.h. References kino::color_traits< SampleType >::maximum(). 00138 { return maximum() - Sample; }
|
|
|
Returns the maximum value of a sample.
Definition at line 132 of file kino_plugin_types.h. 00132 { return 1; }
|
|
|
Returns the minimum value of a sample.
Definition at line 130 of file kino_plugin_types.h. 00130 { return 0; }
|
|
|
Returns the sample value corresponding to opaque alpha.
Definition at line 136 of file kino_plugin_types.h. References kino::color_traits< SampleType >::maximum(). 00136 { return maximum(); }
|
|
|
Returns the sample value corresponding to transparent alpha.
Definition at line 134 of file kino_plugin_types.h. References kino::color_traits< SampleType >::minimum(). 00134 { return minimum(); }
|
1.4.2