|
Ream v0.1.0-1
C++ graphics library for Linux
|
A DRM Four Character Code format along with a set of supported modifiers. More...
#include <RDRMFormat.h>
Public Member Functions | |
| RDRMFormat (RFormat format, std::initializer_list< RModifier > modifiers) noexcept | |
| Constructs a new RDRMFormat with the specified format and modifiers. | |
| RFormat | format () const noexcept |
| Returns the DRM format. | |
| void | setFormat (RFormat format) noexcept |
| Sets a new DRM format. | |
| const boost::container::flat_set< RModifier > & | modifiers () const noexcept |
| Returns the set of modifiers associated with this format. | |
| bool | addModifier (RModifier modifier) noexcept |
| Adds a modifier to the set. | |
| bool | removeModifier (RModifier modifier) noexcept |
| Removes a modifier from the set. | |
Static Public Member Functions | |
| static std::string_view | ModifierName (RModifier modifier) noexcept |
| Returns the human-readable name of a DRM modifier, or "Unknown" if not found. | |
| static const RFormatInfo * | GetInfo (RFormat format) noexcept |
| Retrieves detailed information about a DRM format. | |
| static RFormat | GetAlphaSubstitute (RFormat format) noexcept |
| Returns a substitute format with or without alpha, depending on the input. | |
A DRM Four Character Code format along with a set of supported modifiers.
It can be passed to buffer allocators to let them choose an optimal modifier for the given format.
|
inlinenoexcept |
Constructs a new RDRMFormat with the specified format and modifiers.
| format | The DRM format. |
| modifiers | A list of supported modifiers for the format. |
|
staticnoexcept |
Returns the human-readable name of a DRM modifier, or "Unknown" if not found.
| modifier | The DRM modifier to query. |
|
staticnoexcept |
Retrieves detailed information about a DRM format.
| format | The DRM format to query. |
|
staticnoexcept |
Returns a substitute format with or without alpha, depending on the input.
For example, this can convert ARGB8888 to XRGB8888 and vice versa. If no suitable substitute exists, the original format is returned.
| format | The input DRM format. |
|
inlinenoexcept |
Returns the DRM format.
|
inlinenoexcept |
Sets a new DRM format.
|
inlinenoexcept |
Returns the set of modifiers associated with this format.
|
inlinenoexcept |
Adds a modifier to the set.
| modifier | The modifier to add. |
|
inlinenoexcept |
Removes a modifier from the set.
| modifier | The modifier to remove. |