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