gramods
Loading...
Searching...
No Matches
gramods::gmGraphics::YuvDecodeTexture Class Reference

Decoder of Yuv encoded texture into a new texture. More...

#include <YuvDecodeTexture.hh>

Inheritance diagram for gramods::gmGraphics::YuvDecodeTexture:
Collaboration diagram for gramods::gmGraphics::YuvDecodeTexture:

Classes

struct  Impl

Public Member Functions

std::optional< TextureData > updateTexture (size_t frame_number, Eye eye) override
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.
Public Member Functions inherited from gramods::gmGraphics::Texture
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object.
Public Member Functions inherited from gramods::gmCore::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.

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi

Additional Inherited Members

Public Types inherited from gramods::gmGraphics::TextureInterface
enum  TextureColor { GRAY , RGB , BGR }
 Type of color in the texture. More...
Static Public Member Functions inherited from gramods::gmGraphics::TextureInterface
static std::string getRgbSwizzle (TextureColor c)
 Returns the GLSL swizzling required to get RGB from the specified color type.
static std::string getRgbaSwizzle (TextureColor c)
 Returns the GLSL swizzling required to get RGBA from the specified color type.

Detailed Description

Decoder of Yuv encoded texture into a new texture.

Member Function Documentation

◆ 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)

Sets the conversion matrix from YUV space to RGB.

Default is BT.601.

XML-attribute: yuvToRgb

See also
gramods::operator>>(std::istream &, Eigen::Matrix3f &)

◆ traverse()

void gramods::gmGraphics::YuvDecodeTexture::traverse ( Visitor * visitor)
overridevirtual

Propagates the specified visitor.

See also
Object::Visitor

Reimplemented from gramods::gmCore::Object.

◆ updateTexture()

std::optional< TextureInterface::TextureData > gramods::gmGraphics::YuvDecodeTexture::updateTexture ( size_t frame_number,
Eye eye )
overridevirtual

The documentation for this class was generated from the following files: