Decoder of Yuv encoded texture into a new texture.
More...
#include <YuvDecodeTexture.hh>
|
| GLuint | updateTexture (size_t frame_number, Eye eye) override |
| | Updates the texture and returns the ID of the associated GL texture object.
|
| |
| void | setTexture (std::shared_ptr< Texture > texture) |
| | Sets the texture to decode.
|
| |
| void | setYuvToRgb (Eigen::Matrix3f m) |
| | Sets the conversion matrix from YUV space to RGB.
|
| |
| void | setUvRange (gmCore::float2 v) |
| | Sets the range of the UV values.
|
| |
| void | traverse (Visitor *visitor) override |
| | Propagates the specified visitor.
|
| |
| virtual std::string | getDefaultKey () override |
| | Returns the default key, in Configuration, for the Object.
|
| |
| | Object () |
| | Initializes internal data.
|
| |
| virtual | ~Object () |
| | Cleaning up internal data.
|
| |
| virtual void | initialize () |
| | Called to initialize the Object.
|
| |
| virtual void | accept (Visitor *visitor) |
| | Calls the visitors apply method with this as argument.
|
| |
| bool | isInitialized () |
| | Returns true if the Object is initialized.
|
| |
Decoder of Yuv encoded texture into a new texture.
◆ setTexture()
| void gramods::gmGraphics::YuvDecodeTexture::setTexture |
( |
std::shared_ptr< Texture > |
texture | ) |
|
Sets the texture to decode.
◆ setUvRange()
| void gramods::gmGraphics::YuvDecodeTexture::setUvRange |
( |
gmCore::float2 |
v | ) |
|
Sets the range of the UV values.
Default is BT.601.
XML-attribute: uvRange
◆ setYuvToRgb()
| void gramods::gmGraphics::YuvDecodeTexture::setYuvToRgb |
( |
Eigen::Matrix3f |
m | ) |
|
◆ traverse()
| void gramods::gmGraphics::YuvDecodeTexture::traverse |
( |
Visitor * |
visitor | ) |
|
|
overridevirtual |
◆ updateTexture()
| GLuint gramods::gmGraphics::YuvDecodeTexture::updateTexture |
( |
size_t |
frame_number, |
|
|
Eye |
eye |
|
) |
| |
|
overridevirtual |
Updates the texture and returns the ID of the associated GL texture object.
Must be called with GL context. Observe also that this method may perform off-screen rendering.
- Parameters
-
| frame_number | The current frame being rendered. This number should increment by one for each frame, however it may wrap around and start over at zero. |
| eye | Eye for which the texture is requested. An implementation may use different textures for different eyes or may reuse the same texture for all eyes. |
- Returns
- OpenGL texture ID of the updated texture
Implements gramods::gmGraphics::TextureInterface.
The documentation for this class was generated from the following files:
- /home/karlu/private/program/gramods/modules/gmGraphics/include/gmGraphics/YuvDecodeTexture.hh
- /home/karlu/private/program/gramods/modules/gmGraphics/src/YuvDecodeTexture.cpp