Go to the documentation of this file. 1 #ifndef VIDEOCOLOURSPACE_H
2 #define VIDEOCOLOURSPACE_H
10 #include "libavutil/pixfmt.h"
30 void Updated(
bool PrimariesChanged);
void PictureAttributeChanged(PictureAttribute Attribute, int Value)
void Update(void)
Update the matrix for the current settings and colourspace.
MythColourSpace * m_customDisplayPrimaries
QMatrix4x4 m_primaryMatrix
int GetColourSpace() const
bool UpdateColourSpace(const MythVideoFrame *Frame)
Set the current colourspace to use.
void SetFullRange(bool FullRange)
void SetSupportedAttributes(PictureAttributeSupported Supported)
Enable the given set of picture attributes.
void SetContrast(int Value)
QMatrix4x4 GetPrimaryConversion(int Source, int Dest)
void SupportedAttributesChanged(PictureAttributeSupported Supported)
void SetPrimariesMode(PrimariesMode Mode)
QStringList GetColourMappingDefines(void)
int GetPictureAttribute(PictureAttribute Attribute)
std::map< PictureAttribute, int > m_dbSettings
PictureAttributeSupported
float GetColourGamma(void) const
static MythColourSpace GetPrimaries(int Primary, float &Gamma)
void SaveValue(PictureAttribute Attribute, int Value)
Save the PictureAttribute value to the database.
float GetDisplayGamma(void) const
PrimariesMode GetPrimariesMode(void)
PrimariesMode m_primariesMode
@ kPictureAttributeSupported_None
PictureAttributeSupported m_supportedAttributes
void PictureAttributesUpdated(const std::map< PictureAttribute, int > &Values)
~MythVideoColourSpace() override
int ChangePictureAttribute(PictureAttribute Attribute, bool Direction, int Value)
void Updated(bool PrimariesChanged)
float m_customDisplayGamma
QMatrix4x4 GetPrimaryMatrix(void)
void SetBrightness(int Value)
PictureAttributeSupported SupportedAttributes(void) const
MythVideoColourSpace contains a QMatrix4x4 that can convert YCbCr data to RGB.
General purpose reference counter.
void SetSaturation(int Value)