|
Ream v0.1.0-1
C++ graphics library for Linux
|
Gamma LUT. More...
#include <RGammaLUT.h>
Inheritance diagram for RGammaLUT:Public Member Functions | |
| ~RGammaLUT ()=default | |
| Destructor for RGammaLUT. | |
| void | setSize (size_t size) noexcept |
| Set the size of the gamma correction table. | |
| size_t | size () const noexcept |
| Gets the size of the gamma correction table. | |
| void | fill (Float64 gamma, Float64 brightness, Float64 contrast) noexcept |
| Fill method for setting table values. | |
| std::span< UInt16 > | red () noexcept |
| Gets a pointer to the beginning of the red curve in the array. | |
| std::span< UInt16 > | green () noexcept |
| Gets a pointer to the beginning of the green curve in the array. | |
| std::span< UInt16 > | blue () noexcept |
| Gets a pointer to the beginning of the blue curve in the array. | |
| std::span< const UInt16 > | red () const noexcept |
| Gets a read-only view of the red curve in the array. | |
| std::span< const UInt16 > | green () const noexcept |
| Gets a read-only view of the green curve in the array. | |
| std::span< const UInt16 > | blue () const noexcept |
| Gets a read-only view of the blue curve in the array. | |
Public Member Functions inherited from RObject | |
| RObject ()=default | |
| Constructs a default RObject. | |
Static Public Member Functions | |
| static std::shared_ptr< RGammaLUT > | Make (size_t size=0) noexcept |
| Constructs an RGammaLUT with the specified size. | |
| static std::shared_ptr< RGammaLUT > | MakeFilled (size_t size, Float64 gamma, Float64 brightness, Float64 contrast) noexcept |
| Constructs an RGammaLUT of the given size and fills it. | |
Gamma LUT.
|
staticnoexcept |
Constructs an RGammaLUT with the specified size.
| size | The size of the gamma correction table. Defaults to 0. |
|
staticnoexcept |
Constructs an RGammaLUT of the given size and fills it.
Equivalent to Make() followed by fill().
| size | The size of the gamma correction table. |
| gamma | The gamma correction value. |
| brightness | The brightness adjustment value. |
| contrast | The contrast adjustment value. |
|
inlinenoexcept |
Set the size of the gamma correction table.
| size | The new size for the gamma correction table. |
|
inlinenoexcept |
Gets the size of the gamma correction table.
The size represents the number of UInt16 values used to independently represent each RGB curve.
|
noexcept |
Fill method for setting table values.
This auxiliary method allows setting gamma, brightness, and contrast values for the table.
| gamma | The gamma correction value. |
| brightness | The brightness adjustment value. |
| contrast | The contrast adjustment value. |
|
inlinenoexcept |
Gets a pointer to the beginning of the red curve in the array.
nullptr if the table size is 0.
|
inlinenoexcept |
Gets a pointer to the beginning of the green curve in the array.
nullptr if the table size is 0.
|
inlinenoexcept |
Gets a pointer to the beginning of the blue curve in the array.
nullptr if the table size is 0.
|
inlinenoexcept |
Gets a read-only view of the red curve in the array.
|
inlinenoexcept |
Gets a read-only view of the green curve in the array.
|
inlinenoexcept |
Gets a read-only view of the blue curve in the array.