Data Structures | |
struct | pic_modes |
struct | tvVideoFormatCallbackData |
struct | tvVideoContentCallbackData |
struct | getWBInfo |
struct | bl_para_s |
struct | tvBacklightInfo_s |
struct | tvVideoResolutionCallbackData |
struct | tvVideoFrameRateCallbackData |
Macros | |
#define | MAX_STRING_SIZE (15) |
#define | CONTROL_COUNT (2) |
#define | PIC_MODES_SUPPORTED_MAX (15) |
#define | PIC_MODE_NAME_MAX (25) |
#define | DIMMING_MODE_NAME_SIZE (25) |
#define | DIMMING_MODE_MAX (10) |
#define | GAIN_MIN (0) |
#define | GAIN_MAX (2047) |
#define | OFFSET_MIN (-1024) |
#define | OFFSET_MAX (1024) |
#define | BACKLIGHT_CURVE_MAX_INDEX (101) |
#define | EXPECTED_FILE_SIZE (512) |
#define | GENERIC_MODE_CONFIG_FILE "/etc/tv/allmodes.conf" |
#define | __BL_PARA__ |
Typedefs | |
typedef void(* | tvVideoFormatChangeCB) (tvVideoHDRFormat_t format, void *userData) |
typedef void(* | tvVideoContentChangeCB) (tvContentType_t mode, void *userData) |
typedef struct pic_modes | pic_modes_t |
typedef enum input_source_offset_e | input_source_offset_t |
typedef struct getWBInfo | getWBInfo_t |
typedef struct bl_para_s | bl_para_t |
typedef struct tvBacklightInfo_s | tvBacklightInfo_t |
typedef void(* | tvVideoResolutionChangeCB) (tvResolutionParam_t resolutionStruct, void *userData) |
tv Video Resolution ChangeCB | |
typedef void(* | tvVideoFrameRateChangeCB) (tvVideoFrameRate_t frameRate, void *userData) |
tv Video FrameRate Change CB | |
Enumerations | |
enum | fp_mfrColorTemp_t { mfrColorTemp_STANDARD = 0 , mfrColorTemp_COLD , mfrColorTemp_WARM , mfrColorTemp_USER , mfrColorTemp_MAX } |
enum | input_source_offset_e { HDMI_OFFSET_NEW = 0 , TV_OFFSET_NEW = 4 , AV_OFFSET_NEW = 8 , MAX_OFFSET_NEW } |
Functions | |
tvError_t | tvInit () |
Initialises TV Settings HAL. | |
tvError_t | tvSD3toCriSyncInit () |
Sync the calibrated data to driver. | |
tvError_t | tvTerm () |
De-initialises TV Settings HAL. | |
tvError_t | GetTVPictureMode (char *pictureMode) |
Gets the current selected picture Mode. | |
tvError_t | SetTVPictureMode (const char *pictureMode) |
Sets the Picture Mode. | |
tvError_t | GetBacklight (int *backlight) |
Gets the current backlight value. | |
tvError_t | SetBacklight (int backlight) |
Sets the backlight value in the backlight hardware. | |
tvError_t | SetBrightness (int brightness) |
Sets the brightness value to driver register(s) | |
tvError_t | GetBrightness (int *brightness) |
Gets the current brightness value. | |
tvError_t | SetContrast (int contrast) |
Sets the contrast value to driver register(s) | |
tvError_t | GetContrast (int *contrast) |
Gets the current contrast value. | |
tvError_t | SetSharpness (int sharpness) |
Sets the sharpness value to driver register(s) | |
tvError_t | GetSharpness (int *sharpness) |
Gets the current sharpness value. | |
tvError_t | SetSaturation (int saturation) |
Sets the saturation value to driver register(s) | |
tvError_t | GetSaturation (int *saturation) |
Gets the current saturation value. | |
tvError_t | SetHue (int hue) |
Sets the hue value to driver register(s) | |
tvError_t | GetHue (int *hue) |
Gets the current hue value. | |
tvError_t | SetColorTemperature (tvColorTemp_t colorTemp) |
Sets the color temperature to driver register(s) | |
tvError_t | GetColorTemperature (tvColorTemp_t *colorTemp) |
Gets the current color temperature. | |
tvError_t | SetAspectRatio (tvDisplayMode_t dispMode) |
Sets the aspect ratio. | |
tvError_t | GetAspectRatio (tvDisplayMode_t *dispMode) |
Gets the current aspect ratio. | |
tvError_t | GetTint (int *tint) |
Gets the current tint value. | |
tvError_t | SetTint (int tint) |
Sets the tint value to driver register(s) | |
tvError_t | GetSupportedBacklightModes (int *blModes) |
Gets the supported backlight modes. | |
tvError_t | GetCurrentBacklightMode (tvBacklightMode_t *blMode) |
Gets current blacklight mode. | |
tvError_t | SetCurrentBacklightMode (tvBacklightMode_t blMode) |
Sets the backlight mode. | |
tvError_t | GetCurrentVideoFormat (tvVideoHDRFormat_t *format) |
Gets current video format. To be deprecated soon. | |
tvError_t | GetVideoResolution (tvResolutionParam_t *res) |
Gets the current video resolution. | |
tvError_t | GetVideoFrameRate (tvVideoFrameRate_t *format) |
Gets current video framerate. | |
tvError_t | setWakeupConfig (const tvWakeupSrcType_t src_type, const bool value) |
Sets wake-up configuration. | |
tvError_t | SetRGBPattern (int r, int g, int b) |
Sets the RGB values of RGB pattern. | |
tvError_t | GetRGBPattern (int *r, int *g, int *b) |
Gets the current RGB values of the RGB pattern. | |
tvError_t | SetGrayPattern (int YUVValue) |
Sets the gray pattern value. | |
tvError_t | GetGrayPattern (int *YUVValue) |
Gets the current gray pattern value. | |
tvError_t | SetColorTemp_Rgain (tvColorTemp_t colorTemp, int rgain) |
Set the rgain value. | |
tvError_t | GetColorTemp_Rgain (tvColorTemp_t colorTemp, int *rgain) |
Get the ggain value. | |
tvError_t | SetColorTemp_Ggain (tvColorTemp_t colorTemp, int ggain) |
Set the ggain value. | |
tvError_t | GetColorTemp_Ggain (tvColorTemp_t colorTemp, int *ggain) |
Get the ggain value. | |
tvError_t | SetColorTemp_Bgain (tvColorTemp_t colorTemp, int bgain) |
Set the bgain value. | |
tvError_t | GetColorTemp_Bgain (tvColorTemp_t colorTemp, int *bgain) |
Get the bgain value. | |
tvError_t | SetColorTemp_R_post_offset (tvColorTemp_t colorTemp, int rpostoffset) |
Set the rpostoffset value. | |
tvError_t | GetColorTemp_R_post_offset (tvColorTemp_t colorTemp, int *rpostoffset) |
Get the rpostoffset value. | |
tvError_t | SetColorTemp_G_post_offset (tvColorTemp_t colorTemp, int gpostoffset) |
Set the gpostoffset value. | |
tvError_t | GetColorTemp_G_post_offset (tvColorTemp_t colorTemp, int *gpostoffset) |
Get the gpostoffset value. | |
tvError_t | SetColorTemp_B_post_offset (tvColorTemp_t colorTemp, int bpostoffset) |
Set the bpostoffset value. | |
tvError_t | GetColorTemp_B_post_offset (tvColorTemp_t colorTemp, int *bpostoffset) |
Get the gpostoffset value. | |
tvError_t | GetTVSupportedPictureModes (pic_modes_t *pictureModes[], unsigned short *count) |
Gets the supported picture modes and their count. | |
void | RegisterVideoFormatChangeCB (tvVideoFormatCallbackData &cbData) |
Registers the video format change callback. | |
void | RegisterVideoContentChangeCB (tvVideoContentCallbackData &cbData) |
Registers the VideoContent FMM change callback. | |
void | RegisterVideoResolutionChangeCB (tvVideoResolutionCallbackData &cbData) |
Registers the Video resolution change callback. | |
void | RegisterVideoFrameRateChangeCB (tvVideoFrameRateCallbackData &cbData) |
Registers the Video framerate change callback. | |
tvError_t | GetTVSupportedDVModes (pic_modes_t *dvModes[], unsigned short *count) |
Gets the supported DV modes and their count. | |
tvError_t | SetTVDolbyVisionMode (const char *dolbyMode) |
Sets dolby vision mode. To be deprecated soon. | |
tvError_t | GetTVDolbyVisionMode (char *dolbyMode) |
Gets the current current dolby vision mode. | |
tvError_t | SetTVHLGMode (const char *hlgMode) |
Sets the HLG mode. To be deprecated soon. | |
tvError_t | SetTVHDR10Mode (const char *hdr10Mode) |
Sets the HDR10 mode. To be deprecated soon. | |
tvError_t | GetTVHLGMode (char *hlgMode) |
Gets the current current HLG mode. | |
tvError_t | GetTVHDR10Mode (char *hdr10Mode) |
Gets the current current HDR10 mode. | |
tvError_t | GetTVSupportedHLGModes (pic_modes_t *dvModes[], unsigned short *count) |
Gets the supported HLG modes and their count. To be deprecated soon. | |
tvError_t | GetTVSupportedHDR10Modes (pic_modes_t *dvModes[], unsigned short *count) |
Gets the supported HDR10 modes and their count. To be deprecated soon. | |
tvError_t | SetDynamicContrast (const char *dynamicContrastEnable) |
Sets the dynamic contrast. | |
tvError_t | GetDynamicContrast (char *isDynamicContrastEnabled) |
Gets the current Dynamic contrast mode. | |
tvError_t | SetColorTemp_Rgain_onSource (tvColorTemp_t colorTemp, int rgain, int sourceId, int saveOnly) |
Sets or saves the rgain value. | |
tvError_t | GetColorTemp_Rgain_onSource (tvColorTemp_t colorTemp, int *rgain, int sourceId) |
Gets the current rgain value. | |
tvError_t | SetColorTemp_Ggain_onSource (tvColorTemp_t colorTemp, int ggain, int sourceId, int saveOnly) |
Sets or saves the ggain value. | |
tvError_t | GetColorTemp_Ggain_onSource (tvColorTemp_t colorTemp, int *ggain, int sourceId) |
Gets the current ggain value for a specfic color temperature and source. | |
tvError_t | SetColorTemp_Bgain_onSource (tvColorTemp_t colorTemp, int bgain, int sourceId, int saveOnly) |
Sets or saves the bgain value. | |
tvError_t | GetColorTemp_Bgain_onSource (tvColorTemp_t colorTemp, int *bgain, int sourceId) |
Gets the current bgain value for a specfic color temperature and source. | |
tvError_t | SetColorTemp_R_post_offset_onSource (tvColorTemp_t colorTemp, int rpostoffset, int sourceId, int saveOnly) |
Sets or saves the rpostoffset value. | |
tvError_t | GetColorTemp_R_post_offset_onSource (tvColorTemp_t colorTemp, int *rpostoffset, int sourceId) |
Gets the current rpostoffset value. | |
tvError_t | SetColorTemp_G_post_offset_onSource (tvColorTemp_t colorTemp, int gpostoffset, int sourceId, int saveOnly) |
Sets or saves the gpostoffset value. | |
tvError_t | GetColorTemp_G_post_offset_onSource (tvColorTemp_t colorTemp, int *gpostoffset, int sourceId) |
Gets the current gpostoffset value for a specfic color temperature and source. | |
tvError_t | SetColorTemp_B_post_offset_onSource (tvColorTemp_t colorTemp, int bpostoffset, int sourceId, int saveOnly) |
Sets or saves the bpostoffset value. | |
tvError_t | GetColorTemp_B_post_offset_onSource (tvColorTemp_t colorTemp, int *bpostoffset, int sourceId) |
Gets the current bpostoffset value for a specfic color temperature and source. | |
tvError_t | setWBctrl (char *inputSrc, char *colorTemp, char *color, char *ctrl, int value) |
Sets the white balance control. To be deprecated soon. | |
tvError_t | getWBctrl (char *inputSrc, char *colortemp, char *color, char *ctrl, int *value) |
Gets the current white balance control. | |
tvError_t | getWbInfo (getWBInfo_t *params, std::vector< std::string > &selector, std::vector< std::string > &colorTmp, std::vector< std::string > &input) |
Gets the current white balance info. To be deprecated soon. | |
tvError_t | enableWBmode (bool value) |
Enable/disable WB mode. | |
tvError_t | GetSupportedComponentColor (int *blComponentColor) |
Gets the supported Component colors. | |
tvError_t | SetCurrentComponentSaturation (tvDataComponentColor_t blSaturationColor, int saturation) |
Sets current component saturation. | |
tvError_t | GetCurrentComponentSaturation (tvDataComponentColor_t blSaturationColor, int *saturation) |
Gets current component saturation. | |
tvError_t | SetCurrentComponentHue (tvDataComponentColor_t blHueColor, int hue) |
Sets current component hue. | |
tvError_t | GetCurrentComponentHue (tvDataComponentColor_t blHueColor, int *hue) |
Gets current component hue. | |
tvError_t | SetCurrentComponentLuma (tvDataComponentColor_t blLumaColor, int Luma) |
Sets the current component luma value. | |
tvError_t | GetCurrentComponentLuma (tvDataComponentColor_t blLumaColor, int *Luma) |
Gets the current component luma. | |
tvError_t | GetTVSupportedDimmingModes (char **dimmingModes, unsigned short *count) |
Gets supported backlight dimming modes of the system. To be deprecated soon. | |
tvError_t | SetTVDimmingMode (const char *dimmingMode) |
Sets the backlight dimming mode. | |
tvError_t | GetTVBacklightGlobalFactor (int *value) |
Get TV Backlight Global Factor. | |
tvError_t | SetTVBacklightGlobalFactor (int value, int rangeMidPointValue) |
Set TV Backlight Global Factor. | |
tvPictureMode_t | GetTVPictureModeIndex (const char *pictureMode) |
Get TV Picture Mode Index. | |
tvVideoHDRFormat_t | GetCurrentContentFormat (void) |
Get Current Content Format. | |
tvError_t | GetSupportedContentFormats (unsigned int *contentFormats, unsigned short *numberOfFormats) |
Get Supported Content Formats. | |
tvError_t | ResetBrightness (int defaultValue, bool resetForAllFormats) |
Reset Brightness. | |
tvError_t | ResetContrast (int defaultValue, bool resetForAllFormats) |
Reset Contrast. | |
tvError_t | ResetSharpness (int defaultValue, bool resetForAllFormats) |
Reset Sharpness. | |
tvError_t | ResetSaturation (int defaultValue, bool resetForAllFormats) |
Reset Saturation. | |
tvError_t | ResetHue (int defaultValue, bool resetForAllFormats) |
Reset Hue. | |
tvError_t | ResetBacklight (int defaultValue, bool resetForAllFormats) |
Reset Backlight. | |
tvError_t | ResetColorTemperature (int defaultValue, bool resetForAllFormats) |
Reset Color Tempearture. | |
tvError_t | ResetComponentSaturation (int color, int defaultValue) |
Reset Component Saturation. | |
tvError_t | ResetComponentLuma (int color, int defaultValue) |
Reset Component Luma. | |
tvError_t | ResetComponentHue (int color, int defaultValue) |
Reset Component hue. | |
bool | isCurrentHDRTypeIsSDR (void) |
Check if current format is SDR. | |
int | GetPanelID (char *panelid) |
Returns Panel ID information. To be deprecated soon. | |
void | GetDefaultPanelID (char *panelID) |
Get the default panel ID. | |
tvError_t | SaveColorTemperature (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the color temperature value. | |
tvError_t | SaveBacklight (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the backlight value. | |
tvError_t | SaveContrast (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the contrast value. | |
tvError_t | SaveSaturation (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the saturation value. | |
tvError_t | SaveSharpness (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the sharpness value. | |
tvError_t | SaveBrightness (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the brightness value. | |
tvError_t | SaveHue (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the hue value. | |
tvError_t | SaveDynamicBacklight (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the DynamicBacklight mode. | |
tvError_t | SaveDisplayMode (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the DisplayMode value. | |
tvError_t | SaveCMS (int sourceInput, int pq_mode, int hdr_type, int tunnel_type, int color_type, int value) |
Save the CMS value. | |
tvError_t | SaveDolbyMode (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the dolby mode value. | |
int | GetNumberOfModesupported (void) |
GetNumberOfModesupported. | |
int | GetCurrentPQIndex (void) |
Get current PQ Mode index. | |
void | GetAllSupportedPicModeIndex (int pic_mode_index[]) |
Get All Supported PicMode Index. | |
int | GetCMSDefault (tvCMS_tunel_t color_tunel_type) |
Gets the current CMS default value. To be deprecated soon. | |
int | GetDolbyModeIndex (const char *dolbyMode) |
Get Dolby Mode Index. | |
int | ConvertVideoFormatToHDRFormat (tvVideoHDRFormat_t videoFormat) |
Returns tvhdr_type_t enum for given tvVideoHDRFormat_t enum. To be deprecated soon. | |
int | ConvertTVColorToVendorColor (tvDataComponentColor_t blComponentColor) |
Convert TV color to vendor color. | |
int | ConvertHDRFormatToContentFormat (tvhdr_type_t hdrFormat) |
Convert HDR to content format. | |
int | GetCustomPQModeIndex (void) |
Get Custom mode index. | |
tvError_t | SetCMSState (tvCMS_tunel_t tunelType, tvcomponent_color_type_t colorType, tvcomponent_state_t componentState) |
Sets and save's the CMS state. | |
bool | isWBUserDfault (tvDataColor_t wbvalue) |
Check the given WB values are default or not. | |
int | GetWBRgbType (const char *color, const char *ctrl) |
Get WB RGB type. | |
tvDataColor_t | GetUSerWBValueOnInit (void) |
Get WB values on init. | |
bool | areEqual (tvDataColor_t wbvalueThis, tvDataColor_t wbvalueThat) |
Check WB values are equal. | |
tvError_t | SetColorTemperatureUser (int rgbType, int value) |
Set Color Temperature User. | |
tvError_t | SaveColorTemperatureUser (int rgbType, int value) |
Saves the color temperature to driver cache. To be deprecated soon. | |
tvError_t | SetBacklightInfo (tvBacklightInfo_t *backlightDefaults) |
Set backlight info. | |
int | GetDriverEquivalentBLForCurrentFmt (int backlight) |
Get Driver BL value for current format. | |
int | GetHLGModeIndex (const char *hlgMode) |
Get HLG mode Index. | |
int | GetHDR10ModeIndex (const char *hdr10Mode) |
Get HDR10 mode index. | |
tvError_t | SetBacklightFade (int from, int to, int duration) |
Sets the backlight fade settings. | |
tvError_t | ReadAllModeConfigfile (const char *file, char *cpybuffer, const char *searchstring) |
Reads PQ capability information sections from the specified file. To be deprecated soon. | |
void | splitstringsfrombuffer (char *buffer, char *availableModes, unsigned short *totalcount) |
Parse buffer and return string values & total count. | |
void | splitstringsandvaluefrombuffer (char *buffer, pic_modes_t *availableModes[], unsigned short *totalcount) |
Parse buffer and return string values,index & total count. | |
tvError_t | SetGammaMode (int mode) |
Enable or disable gamma mode. | |
tvError_t | SetLocalDimmingLevel (int localDimmingLevel) |
Sets the local dimming level. | |
tvError_t | GetLocalDimmingLevel (int *localDimmingLevel) |
Gets the current dimming level. | |
tvError_t | SaveLocalDimmingLevel (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves local dimming level. | |
void | SwitchEDID (int pqmode) |
Switch EDID. | |
tvError_t | UpdateEDIDAndSetDimmingLevel (int dimmingLevel) |
Set the EDID and dimming level. | |
void | GetLDIMAndEDIDLevel (int dimmingMode, int format, int *dimmingLevel, int *edidLevel) |
Get LDIM and EDID level. | |
tvError_t | SaveLowLatencyState (int sourceInput, int pq_mode, int hdr_type, int value) |
Saves the low latency index. | |
tvError_t | SetLowLatencyState (int lowLatencyIndex) |
Sets the low latency state to driver register(s) | |
tvError_t | GetLowLatencyState (int *lowlatencystate) |
Gets the current low latency state. | |
tvError_t | SetGammaTable (unsigned short *pData_R, unsigned short *pData_G, unsigned short *pData_B, unsigned short size) |
Sets the gamma calibrated values to gamma HW for current selected colour temperature. | |
tvError_t | GetGammaTable (int colortemp, unsigned short *pData_R, unsigned short *pData_G, unsigned short *pData_B, unsigned short size) |
Gets the current gamma calibrated values from gamma HW for current selected colour temperature. | |
tvError_t | SaveGammaTable (int colortemp, unsigned short *pData_R, unsigned short *pData_G, unsigned short *pData_B, unsigned short size) |
Saves the gamma calibrated values.s. | |
tvError_t | SetGammaPattern (int is_10_bit, int R_Value, int G_Value, int B_Value) |
Sets the gamma pattern. | |
#define __BL_PARA__ |
#define BACKLIGHT_CURVE_MAX_INDEX (101) |
#define CONTROL_COUNT (2) |
#define DIMMING_MODE_MAX (10) |
#define DIMMING_MODE_NAME_SIZE (25) |
#define EXPECTED_FILE_SIZE (512) |
#define GAIN_MAX (2047) |
#define GAIN_MIN (0) |
#define GENERIC_MODE_CONFIG_FILE "/etc/tv/allmodes.conf" |
#define MAX_STRING_SIZE (15) |
#define OFFSET_MAX (1024) |
#define OFFSET_MIN (-1024) |
#define PIC_MODE_NAME_MAX (25) |
#define PIC_MODES_SUPPORTED_MAX (15) |
typedef struct getWBInfo getWBInfo_t |
typedef enum input_source_offset_e input_source_offset_t |
typedef struct pic_modes pic_modes_t |
typedef struct tvBacklightInfo_s tvBacklightInfo_t |
typedef void(* tvVideoContentChangeCB) (tvContentType_t mode, void *userData) |
typedef void(* tvVideoFormatChangeCB) (tvVideoHDRFormat_t format, void *userData) |
typedef void(* tvVideoFrameRateChangeCB) (tvVideoFrameRate_t frameRate, void *userData) |
tv Video FrameRate Change CB
typedef void(* tvVideoResolutionChangeCB) (tvResolutionParam_t resolutionStruct, void *userData) |
tv Video Resolution ChangeCB
enum fp_mfrColorTemp_t |
bool areEqual | ( | tvDataColor_t | wbvalueThis, |
tvDataColor_t | wbvalueThat ) |
Check WB values are equal.
This function checks if two white balance values are same.
[in] | wbvalueThis | - value this |
[in] | wbvalueThat | - value that |
True | or False |
int ConvertHDRFormatToContentFormat | ( | tvhdr_type_t | hdrFormat | ) |
Convert HDR to content format.
This function converts the vendor HDR format to tv format value.
[in] | hdrFormat | - hdrformat |
hdr | format |
int ConvertTVColorToVendorColor | ( | tvDataComponentColor_t | blComponentColor | ) |
Convert TV color to vendor color.
This function converts the TV color to Vendor color value
[in] | blComponentColor | - blComponentColor |
component | color |
int ConvertVideoFormatToHDRFormat | ( | tvVideoHDRFormat_t | videoFormat | ) |
Returns tvhdr_type_t enum for given tvVideoHDRFormat_t enum. To be deprecated soon.
This function converts the video format to HDR format.
[in] | videoFormat | - Video format. Valid values can be member of tvVideoHDRFormat_t |
tvError_t enableWBmode | ( | bool | value | ) |
Enable/disable WB mode.
This function enables or disables white balance mode.
[in] | value | - value |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
void GetAllSupportedPicModeIndex | ( | int | pic_mode_index[] | ) |
Get All Supported PicMode Index.
This function gets all the supported picture mode index.
[out] | pic_mode_index |
tvError_t GetAspectRatio | ( | tvDisplayMode_t * | dispMode | ) |
Gets the current aspect ratio.
This function gets the current aspect ratio for the primary video source selected, primary video format played and picture mode selected.
[out] | dispMode | - Aspect ratio value. Valid value will be a member of tvDisplayMode_t |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetBacklight | ( | int * | backlight | ) |
Gets the current backlight value.
This function gets the current backlight value for the primary video source selected, primary video format played and picture mode selected.
[out] | backlight | - Current backlight value. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetBrightness | ( | int * | brightness | ) |
Gets the current brightness value.
This function gets the current brightness value for the primary video source selected, primary video format played and picture mode selected.
[out] | brightness | - Current brightness value. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
int GetCMSDefault | ( | tvCMS_tunel_t | color_tunel_type | ) |
Gets the current CMS default value. To be deprecated soon.
This function returns the default CMS value
[out] | color_tunel_type | - color_tunel_type. |
15 | - Luma default value |
50 | - Hue or saturation default value |
-1 | - Input parameter is invalid |
tvError_t GetColorTemp_B_post_offset | ( | tvColorTemp_t | colorTemp, |
int * | bpostoffset ) |
Get the gpostoffset value.
This function gets the gpostoffset value for specfic color temperature.
[in] | colorTemp | - Color Temperature |
[in] | bpostoffset | - bpostoffset |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_B_post_offset_onSource | ( | tvColorTemp_t | colorTemp, |
int * | bpostoffset, | ||
int | sourceId ) |
Gets the current bpostoffset value for a specfic color temperature and source.
This function gets the bpostoffset value for a specfic color temperature and source
[in] | colorTemp | - Color temperature value. Valid value will be a member of tvColorTemp_t |
[out] | bpostoffset | - Bpostoffset Value. Valid range is (-1024 to +1023) |
[in] | sourceId | - SourceId value. |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_Bgain | ( | tvColorTemp_t | colorTemp, |
int * | bgain ) |
Get the bgain value.
This function gets the bgain value for specfic color temperature.
[in] | colorTemp | - Color Temperature |
[out] | bgain | - bgain |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_Bgain_onSource | ( | tvColorTemp_t | colorTemp, |
int * | bgain, | ||
int | sourceId ) |
Gets the current bgain value for a specfic color temperature and source.
This function gets the bgain value for a specfic color temperature and source
[in] | colorTemp | - Color temperature value. Valid value will be a member of tvColorTemp_t |
[out] | bgain | - Bgain Value. Valid range is (0 - 2047) |
[in] | sourceId | - SourceId value. |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_G_post_offset | ( | tvColorTemp_t | colorTemp, |
int * | gpostoffset ) |
Get the gpostoffset value.
This function gets the gpostoffset value for specfic color temperature.
[in] | colorTemp | - Color Temperature |
[in] | gpostoffset | - gpostoffset |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_G_post_offset_onSource | ( | tvColorTemp_t | colorTemp, |
int * | gpostoffset, | ||
int | sourceId ) |
Gets the current gpostoffset value for a specfic color temperature and source.
This function gets the gpostoffset value for a specfic color temperature and source.
[in] | colorTemp | - Color temperature value. Valid value will be a member of tvColorTemp_t |
[out] | gpostoffset | - Gpostoffset Value. Valid range is (-1024 to +1023) |
[in] | sourceId | - SourceId value. |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_Ggain | ( | tvColorTemp_t | colorTemp, |
int * | ggain ) |
Get the ggain value.
This function gets the ggain value for specfic color temperature.
[in] | colorTemp | - color temperature |
[in] | ggain | - ggain |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_Ggain_onSource | ( | tvColorTemp_t | colorTemp, |
int * | ggain, | ||
int | sourceId ) |
Gets the current ggain value for a specfic color temperature and source.
This function gets the ggain value for a specfic color temperature and source.
[in] | colorTemp | - Color temperature value. Valid value will be a member of tvColorTemp_t |
[out] | ggain | - Ggain Value. Valid range is (0 - 2047) |
[in] | sourceId | - SourceId value. |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_R_post_offset | ( | tvColorTemp_t | colorTemp, |
int * | rpostoffset ) |
Get the rpostoffset value.
This function gets the rpostoffset value for specfic color temperature.
[in] | colorTemp | - Color Temperature |
[in] | rpostoffset | - rpostoffset |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_R_post_offset_onSource | ( | tvColorTemp_t | colorTemp, |
int * | rpostoffset, | ||
int | sourceId ) |
Gets the current rpostoffset value.
This function gets the current rpostoffset value for a specfic color temperature and source.
[in] | colorTemp | - Color temperature value. Valid value will be a member of tvColorTemp_t |
[out] | rpostoffset | - Rpostoffset Value. Valid range is (-1024 to +1023) |
[in] | sourceId | - SourceId value. |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_Rgain | ( | tvColorTemp_t | colorTemp, |
int * | rgain ) |
Get the ggain value.
This function gets the ggain value for specfic color temperature.
[in] | colorTemp | - color temperature |
[in] | rgain | - rgain |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemp_Rgain_onSource | ( | tvColorTemp_t | colorTemp, |
int * | rgain, | ||
int | sourceId ) |
Gets the current rgain value.
This function gets the current rgain value for a specific color temperature and source offset.
[in] | colorTemp | - Color temperature value. Valid value will be a member of tvColorTemp_t |
[out] | rgain | - Rgain Value. Valid range is (0 - 2047) |
[in] | sourceId | - SourceId value. |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetColorTemperature | ( | tvColorTemp_t * | colorTemp | ) |
Gets the current color temperature.
This function gets the current colour temperature value for the primary video source selected, primary video format played and picture mode selected.
[out] | colorTemp | - Current color temperature. Valid value will be a member of tvColorTemp_t |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetContrast | ( | int * | contrast | ) |
Gets the current contrast value.
This function gets the current contrast value for the primary video source selected, primary video format played and picture mode selected.
[out] | contrast | - Current contrast value. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetCurrentBacklightMode | ( | tvBacklightMode_t * | blMode | ) |
Gets current blacklight mode.
This function gets the current backlight mode.
[out] | blMode | - Current backlight mode. Valid value will be a member of tvBacklightMode_t If more than one value is received then INVALID_PARAM is returned. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetCurrentComponentHue | ( | tvDataComponentColor_t | blHueColor, |
int * | hue ) |
Gets current component hue.
This function returns the current component hue for the specific color, for the primary video source selected, primary video format played and picture mode selected.
[in] | blHueColor | - Component color. Valid value will be a member of tvDataComponentColor_t |
[out] | hue | - Hue value of the color. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetCurrentComponentLuma | ( | tvDataComponentColor_t | blLumaColor, |
int * | Luma ) |
Gets the current component luma.
This function returns the current component luma for the specific color, for the primary video source selected, primary video format played and picture mode selected.
[in] | blLumaColor | - Component color. Valid value will be a member of tvDataComponentColor_t |
[out] | Luma | - Luma value of the color. Valid range is (0 - 30) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetCurrentComponentSaturation | ( | tvDataComponentColor_t | blSaturationColor, |
int * | saturation ) |
Gets current component saturation.
This function returns the current component saturation for the specific color, for the primary video source selected, primary video format played and picture mode selected.
[in] | blSaturationColor | - Component color. Valid value will be a member of tvDataComponentColor_t |
[out] | saturation | - Saturation value of the color. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvVideoHDRFormat_t GetCurrentContentFormat | ( | void | ) |
Get Current Content Format.
This function gets the video format value of the current primary video played on TV
HDR | format |
int GetCurrentPQIndex | ( | void | ) |
Get current PQ Mode index.
This function returns the current PQ index value.
picModeValue |
tvError_t GetCurrentVideoFormat | ( | tvVideoHDRFormat_t * | format | ) |
Gets current video format. To be deprecated soon.
This function gets the video format value of the current primary video played on TV
tvVideoHDRFormat_SDR | - SDR format |
tvVideoHDRFormat_HLG | - HLG Format |
tvVideoHDRFormat_HDR10 | - HDR10 format |
tvVideoHDRFormat_HDR10PLUS | - HDR10 plus format |
tvVideoHDRFormat_DV | - DV format. |
int GetCustomPQModeIndex | ( | void | ) |
Get Custom mode index.
This function return the custom pqmode index
pic | mode values |
void GetDefaultPanelID | ( | char * | panelID | ) |
Get the default panel ID.
This function return the default panelid.
[out] | panelID | - Panel ID |
int GetDolbyModeIndex | ( | const char * | dolbyMode | ) |
Get Dolby Mode Index.
This function returns the dolby mode index.
[in] | dolbyMode |
Dolbymode | value |
int GetDriverEquivalentBLForCurrentFmt | ( | int | backlight | ) |
Get Driver BL value for current format.
This function returns the driver equivalent backlight for current backlight value.
[in] | backlight | - Backlight |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetDynamicContrast | ( | char * | isDynamicContrastEnabled | ) |
Gets the current Dynamic contrast mode.
This function gets the current dynamic contrast value for the primary video source selected, primary video format played and picture mode selected.
[out] | isDynamicContrastEnabled | - Current dynamic contrast mode flag value. (valid values are "enabled" for enable and "disabled" for disable) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetGammaTable | ( | int | colortemp, |
unsigned short * | pData_R, | ||
unsigned short * | pData_G, | ||
unsigned short * | pData_B, | ||
unsigned short | size ) |
Gets the current gamma calibrated values from gamma HW for current selected colour temperature.
This function gets the current gamma calibrated values(0 - 65535) for the primary colors for a current color temperature.
[in] | colortemp | - Color temperature. |
[out] | pData_R | - Array of gamma red values. Valid range is (0 - 1023) |
[out] | pData_G | - Array of gamma green values. Valid range is (0 - 1023) |
[out] | pData_B | - Array of gamma blue values. Valid range is (0 - 1023) |
[in] | size | - Common size of each array. Valid range is (0 - 256) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetGrayPattern | ( | int * | YUVValue | ) |
Gets the current gray pattern value.
This function gets the current gray pattern level
[out] | YUVValue | - Gray level of input pattern. Valid range is (0 - 255) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
int GetHDR10ModeIndex | ( | const char * | hdr10Mode | ) |
Get HDR10 mode index.
This function returns HDR10 mode index.
[in] | hdr10Mode | - hdr10mode |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
int GetHLGModeIndex | ( | const char * | hlgMode | ) |
Get HLG mode Index.
This function returns HLG mode index.
[in] | hlgMode | - hlg mode |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetHue | ( | int * | hue | ) |
Gets the current hue value.
This function gets the current hue value for the primary video source selected, primary video format played and picture mode selected.
[out] | hue | - Current hue value. Valid range (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
void GetLDIMAndEDIDLevel | ( | int | dimmingMode, |
int | format, | ||
int * | dimmingLevel, | ||
int * | edidLevel ) |
Get LDIM and EDID level.
This function gets the LDIM and EDID level for given video format and dimmingMode
[in] | dimmingMode | - Dimming mode |
[in] | format | - Format |
[out] | dimmingLevel | - Dimming Level |
[out] | edidLevel | - EDID level |
tvError_t GetLocalDimmingLevel | ( | int * | localDimmingLevel | ) |
Gets the current dimming level.
This function gets the current local dimming level for the primary video source selected, primary video format played and picture mode selected.
[out] | localDimmingLevel | - Current Dimming level returned. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetLowLatencyState | ( | int * | lowlatencystate | ) |
Gets the current low latency state.
This function gets the current low latency value for the primary video source selected, primary video format played and picture mode selected.
[out] | lowlatencystate | - Current low latency index value. Valid values are ( 0, 1 ) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
int GetNumberOfModesupported | ( | void | ) |
GetNumberOfModesupported.
This function returns the number of supported picture modes.
numberModesSupported |
int GetPanelID | ( | char * | panelid | ) |
Returns Panel ID information. To be deprecated soon.
This function returns the panel ID string.
[out] | panelid | - Panel ID string to be returned. |
0 | - Success |
-1 | - General failure. |
tvError_t GetRGBPattern | ( | int * | r, |
int * | g, | ||
int * | b ) |
Gets the current RGB values of the RGB pattern.
This function gets the current primary color level(0 - 255) of the RGB pattern.
[out] | r | - Red level of input pattern. Valid range is (0 - 255) |
[out] | g | - Green level of input pattern. Valid range is (0 - 255) |
[out] | b | - Blue level of input pattern. Valid range is (0 - 255) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetSaturation | ( | int * | saturation | ) |
Gets the current saturation value.
This function gets the current saturation value for the primary video source selected, primary video format played and picture mode selected.
[out] | saturation | - Current saturation value. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetSharpness | ( | int * | sharpness | ) |
Gets the current sharpness value.
This function gets the current sharpness value for the primary video source selected, primary video format played and picture mode selected.
[out] | sharpness | - Current sharpness value. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetSupportedBacklightModes | ( | int * | blModes | ) |
Gets the supported backlight modes.
This function returns all supported backlight modes for the TV The output has the bitwise OR-ed value of all the supported backlight modes (tvBacklightMode_t).
[out] | blModes | - Supported backlight modes. Valid values will be members of tvBacklightMode_t |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetSupportedComponentColor | ( | int * | blComponentColor | ) |
Gets the supported Component colors.
This function gets the supported component colors.
The output has the bitwise OR-ed value of all the supported colors (tvDataComponentColor_t).
[out] | blComponentColor | - Bit wise OR-ed value for supported component colors. Please refer tvDataComponentColor_t |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetSupportedContentFormats | ( | unsigned int * | contentFormats, |
unsigned short * | numberOfFormats ) |
Get Supported Content Formats.
This function returns all the supported content formats.
[out] | contentFormats | - content formats |
[out] | numberOfFormats | - number Of Formats |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTint | ( | int * | tint | ) |
Gets the current tint value.
This function gets the current tint value for the primary video source selected,primary video format played and picture mode selected
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVBacklightGlobalFactor | ( | int * | value | ) |
Get TV Backlight Global Factor.
This function get the current applied Backlight Global Factor
[out] | value | - value |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVDolbyVisionMode | ( | char * | dolbyMode | ) |
Gets the current current dolby vision mode.
This function gets the current Dolby vision mode value for the primary video source selected, primary video format played and picture mode selected.
[out] | dolbyMode | - Current Dolby vision mode. Valid values are member of tvDolbyMode_t |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVHDR10Mode | ( | char * | hdr10Mode | ) |
Gets the current current HDR10 mode.
This function gets the current HDR10 mode value for the primary video source selected, primary video format played and picture mode selected.
[out] | hdr10Mode | - HDR mode to get |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVHLGMode | ( | char * | hlgMode | ) |
Gets the current current HLG mode.
This function gets the current HLG mode value for the primary video source selected, primary video format played and picture mode selected.
[out] | hlgMode | - HLG mode to get |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVPictureMode | ( | char * | pictureMode | ) |
Gets the current selected picture Mode.
This function will get the current selected picture mode for current pirmary video source and primary video format.
[out] | pictureMode | - Current picture mode. Valid values are as per values returned by pic_modes_t.name parmaeter from GetTVSupportedPictureModes API. The size of string will be PIC_MODE_NAME_MAX. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvPictureMode_t GetTVPictureModeIndex | ( | const char * | pictureMode | ) |
Get TV Picture Mode Index.
This function returns the current selected picture mode index value.
[in] | pictureMode | - Picture Mode |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVSupportedDimmingModes | ( | char ** | dimmingModes, |
unsigned short * | count ) |
Gets supported backlight dimming modes of the system. To be deprecated soon.
This function returns all the supported backlight dimming modes.
[out] | dimmingModes | - array of dimming modes names. Valid values are "fixed", "local" and "global" |
[out] | count | - Count of supported dimming modes. Min should be 1 |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVSupportedDVModes | ( | pic_modes_t * | dvModes[], |
unsigned short * | count ) |
Gets the supported DV modes and their count.
This function returns the supported Dolby Vision modes and their count
[out] | dvModes | - hdr 10 modes |
[in] | count | - count |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVSupportedHDR10Modes | ( | pic_modes_t * | dvModes[], |
unsigned short * | count ) |
Gets the supported HDR10 modes and their count. To be deprecated soon.
This function returns the supported HDR10 modes and their count
[out] | dvModes[] | - List of available HDR10 modes. Refer pic_modes_t and tvDolbyMode_t Valid values are "dark" and & "bright" for pic_modes_t.name Valid values are member of tvDolbyMode_t tvHDR10Mode_Dark and tvDolbyMode_t tvHDR10Mode_Bright for pic_modes_t.value. |
[out] | count | - Count of supported HDR10 modes. Max and min is 2 |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVSupportedHLGModes | ( | pic_modes_t * | dvModes[], |
unsigned short * | count ) |
Gets the supported HLG modes and their count. To be deprecated soon.
This function returns the supported HLG modes and their count
[out] | dvModes[] | - List of available HLG modes. Refer pic_modes_t and tvDolbyMode_t Valid values are "dark" and & "bright" for pic_modes_t.name Valid values are member of tvDolbyMode_t tvHLGMode_Dark and tvDolbyMode_t tvHLGMode_Bright for pic_modes_t.value. |
[out] | count | - Count of supported HLG modes. Max and min is 2 |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetTVSupportedPictureModes | ( | pic_modes_t * | pictureModes[], |
unsigned short * | count ) |
Gets the supported picture modes and their count.
This function get the array of picture modes supported and their count
[out] | pictureModes | - List of available picture modes. Valid values are as per values returned by pic_modes_t.name and pic_modes_t.values parameter. |
[out] | count | - Count of supported picture modes. Maximum possile value is PIC_MODES_SUPPORTED_MAX. Min is 1. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvDataColor_t GetUSerWBValueOnInit | ( | void | ) |
Get WB values on init.
This function gets the user white balance value on init.
wb | values |
tvError_t GetVideoFrameRate | ( | tvVideoFrameRate_t * | format | ) |
Gets current video framerate.
This function gets the video frame rate of the current primary video played on TV
[out] | format | - Format |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t GetVideoResolution | ( | tvResolutionParam_t * | res | ) |
Gets the current video resolution.
This function gets the video resolution of the current primary video played on TV
[out] | res | - Resolution |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t getWBctrl | ( | char * | inputSrc, |
char * | colortemp, | ||
char * | color, | ||
char * | ctrl, | ||
int * | value ) |
Gets the current white balance control.
This function gets the white balance for a specific source, color, color temperature and control.
[in] | inputSrc | - Input source |
[in] | colortemp | - color temperature value |
[in] | color | - color values (red, blue or green) |
[in] | ctrl | - control values (gain or offset) |
[in] | value | - pointer to store value which will be returned by driver |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t getWbInfo | ( | getWBInfo_t * | params, |
std::vector< std::string > & | selector, | ||
std::vector< std::string > & | colorTmp, | ||
std::vector< std::string > & | input ) |
Gets the current white balance info. To be deprecated soon.
This function gets the White balance info into the vectors
[out] | params | - WB info param. Valid values for : wbControls is ( "gain", "offset" ), wbGain is (0 to 2047), wbOffset is (-1024 to 1024)) |
[out] | selector | - Selector vector. Valid values are ( "color temp", "input" ) |
[out] | colorTmp | - Color temperature vector. Valid values are ( "custom", "normal", "cool", "warm" ) |
[out] | input | - Input source vector. Valid values are ( "TV", "HDMI", "AV" ) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - When the input value is not valid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
int GetWBRgbType | ( | const char * | color, |
const char * | ctrl ) |
Get WB RGB type.
This function gets the white balance RGB type for specific color and control value.
[in] | color | - color |
[in] | ctrl | - ctrl |
rgb_type |
bool isCurrentHDRTypeIsSDR | ( | void | ) |
Check if current format is SDR.
This function checks whether the current content format is SDR or not.
True | or False |
bool isWBUserDfault | ( | tvDataColor_t | wbvalue | ) |
Check the given WB values are default or not.
This function checks if the white balance parameters are equal to default value.
[in] | wbvalue | - wb value |
True | or false |
tvError_t ReadAllModeConfigfile | ( | const char * | file, |
char * | cpybuffer, | ||
const char * | searchstring ) |
Reads PQ capability information sections from the specified file. To be deprecated soon.
This function reads PQ capability information sections from the specified file. The file format is predefined and a template file is supplied by RDK.
[in] | file | - The name of the file from which PQ capability information sections need to be read. |
[out] | cpybuffer | - The return buffer (max size 512 bytes), where PQ capability information sections are copied to. |
[in] | searchstring | - Heading of the section. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
void RegisterVideoContentChangeCB | ( | tvVideoContentCallbackData & | cbData | ) |
Registers the VideoContent FMM change callback.
This function registers a callback for the playback Filmmaker mode change event. Once registered, the callback function will be called by the TV Settings HAL implementation When the system detects SEI content_type 0x01 and content_subtype 0x00, the FMM enter event is raised. When the system detects SEI content_type is other than 0x01 or content_subtype is other than 0x00, the FMM exit event is raised. This applies only to IP video sources and Tuner video sources.
[in] | cbData | - Callback data. Please refer::tvVideoContentCallbackData |
void RegisterVideoFormatChangeCB | ( | tvVideoFormatCallbackData & | cbData | ) |
Registers the video format change callback.
This function registers a callback for video format change event. Once registered, the callback function will be called by the TV Settings HAL implementation whenever the system detects a change in video format of the primary video currently played.
[in] | cbData | - Callback data. Please refer tvVideoFormatCallbackData |
void RegisterVideoFrameRateChangeCB | ( | tvVideoFrameRateCallbackData & | cbData | ) |
Registers the Video framerate change callback.
This function registers a callback for playback content video frame rate change event. Once registered, the callback function will be called by the TV Settings HAL implementation whenever the system detects frame rate change for the primary video currently played.
[in] | cbData | - Callback function. Please refer tvVideoFrameRateCallbackData |
void RegisterVideoResolutionChangeCB | ( | tvVideoResolutionCallbackData & | cbData | ) |
Registers the Video resolution change callback.
This function registers a callback for playback content video resolution change event. Once registered, the callback function will be called by the TV Settings HAL implementation whenever the system detects resolution change for the primary video currently played.
[in] | cbData | - Callback data. Please refer tvVideoResolutionCallbackData |
tvError_t ResetBacklight | ( | int | defaultValue, |
bool | resetForAllFormats ) |
Reset Backlight.
This function reset Backlight value to default value for all formats (or) current format.
[in] | defaultValue | - Default values |
[in] | resetForAllFormats | - reset for all formats |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t ResetBrightness | ( | int | defaultValue, |
bool | resetForAllFormats ) |
Reset Brightness.
This function reset Brightness value to default value for all formats (or) current format.
[in] | defaultValue | - Default values |
[in] | resetForAllFormats | - reset for all formats |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t ResetColorTemperature | ( | int | defaultValue, |
bool | resetForAllFormats ) |
Reset Color Tempearture.
This function reset Color Tempearture value to default value for all formats (or) current format.
[in] | defaultValue | - Default values |
[in] | resetForAllFormats | - reset for all formats |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t ResetComponentHue | ( | int | color, |
int | defaultValue ) |
Reset Component hue.
This function reset Component Hue value to default value for all formats (or) current format.
[in] | color | - Hue color |
[in] | defaultValue | - default value |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t ResetComponentLuma | ( | int | color, |
int | defaultValue ) |
Reset Component Luma.
This function reset Component luma value to default value for all formats (or) current format.
[in] | color | - Luma color |
[in] | defaultValue | - Default values |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t ResetComponentSaturation | ( | int | color, |
int | defaultValue ) |
Reset Component Saturation.
This function reset Component Saturation value to default value for all formats (or) current format.
[in] | color | - saturation color |
[in] | defaultValue | - Default values |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t ResetContrast | ( | int | defaultValue, |
bool | resetForAllFormats ) |
Reset Contrast.
This function reset Contrast value to default value for all formats (or) current format.
[in] | defaultValue | - Default values |
[in] | resetForAllFormats | - reset for all formats |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t ResetHue | ( | int | defaultValue, |
bool | resetForAllFormats ) |
Reset Hue.
This function reset Hue value to default value for all formats (or) current format.
[in] | defaultValue | - Default values |
[in] | resetForAllFormats | - reset for all formats |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t ResetSaturation | ( | int | defaultValue, |
bool | resetForAllFormats ) |
Reset Saturation.
This function reset Saturation value to default value for all formats (or) current format.
[in] | defaultValue | - Default values |
[in] | resetForAllFormats | - reset for all formats |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t ResetSharpness | ( | int | defaultValue, |
bool | resetForAllFormats ) |
Reset Sharpness.
This function reset Sharpness value to default value for all formats (or) current format.
[in] | defaultValue | - Default values |
[in] | resetForAllFormats | - reset for all formats |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveBacklight | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the backlight value.
This function saves the backlight value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved backlight value should be applied automatically whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current backlight value in backlight HW.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr format type value. |
[in] | value | - Value of the backlight to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveBrightness | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the brightness value.
This function saves the brightness value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved brightness value should be applied automatically by whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current brightness value applied in PQ module.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr format type value. |
[in] | value | - Value of the brightness to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveCMS | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | tunnel_type, | ||
int | color_type, | ||
int | value ) |
Save the CMS value.
This function saves the CMS value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved hue value should be applied automatically by whenever the specified picture mode is selected, specified primary video format is played, specified primary video source is selected and the CMS state is enabled for that combination. There will be no change in current CMS value applied in PQ module.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr type value. |
[in] | tunnel_type | - tunnel type value. |
[in] | color_type | - Color type value. |
[in] | value | - Value of the CMS to be set. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveColorTemperature | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the color temperature value.
This function saves the color temperature value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved color temperature value should be applied automatically by whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current color temperature value applied in PQ module.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr format type value. |
[in] | value | - Value of the color temperature to be set. Valid value will be member of tvColorTemp_t |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveColorTemperatureUser | ( | int | rgbType, |
int | value ) |
Saves the color temperature to driver cache. To be deprecated soon.
This function saves the color temperature for user to driver cache file
[in] | rgbType | - RGB type. Valid value will be a member of tvRGBType_t |
[in] | value | - Color temperature value to be set. Valid range : for gain (0 to 2047) , for offset (-1024 to 1024) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveContrast | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the contrast value.
This function saves the contrast value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved contrast value should be applied automatically by whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current contrast value applied in PQ module.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr format type value. |
[in] | value | - Value of the contrast to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveDisplayMode | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the DisplayMode value.
This function saves the aspect ratio(DisplayMode) value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved aspect ratio value should be applied automatically by whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current aspect ratio value applied in PQ module.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr type value. |
[in] | value | - Value of AspectRatio(tvDisplayMode_t) |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveDolbyMode | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the dolby mode value.
This function saves the dolby mode value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved dolby mode value should be applied automatically by whenever the specified picture mode is selected, specified primary video format(if handled via Dolby core) is played and specified primary video source is selected. There will be no change in current dolby mode value in Dolby Vision core.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr type value. |
[in] | value | - Value of the CMS to be set. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveDynamicBacklight | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the DynamicBacklight mode.
This function saves the backlight dimming mode(DynamicBacklight) in picture profile database for the specific picture mode, primary video format type and primary video source. The saved backlight dimming mode should be applied automatically whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current backlight dimming mode. If peak brightness capablity of the panel changes as a result of dimming mode change in future reload the edid accordingly to update VSVDB string if current video format is handled via Dolby Vision core.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr type value. |
[in] | value | - Value of the DynamicBacklight(tvDimmingMode_t) |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveGammaTable | ( | int | colortemp, |
unsigned short * | pData_R, | ||
unsigned short * | pData_G, | ||
unsigned short * | pData_B, | ||
unsigned short | size ) |
Saves the gamma calibrated values.s.
This function saves the gamma calibrated values in picture profile database for the primary colors for a specific color temperature. The saved gamma calibrated values will be automatically applied when the specified colour temperature choice is made as a result of picture mode change or primary video source change or primary vidoe format change.
[in] | colortemp | - Color temperature. Valid value will be member of tvColorTemp_t |
[out] | pData_R | - Array of gamma red values. Valid range is (0 - 1023) |
[out] | pData_G | - Array of gamma green values. Valid range is (0 - 1023) |
[out] | pData_B | - Array of gamma blue values. Valid range is (0 - 1023) |
[out] | size | - Common size of each array. Valid range is (0 - 256) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveHue | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the hue value.
This function saves the hue value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved hue value should be applied automatically by whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current hue value applied in PQ module.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr type value. |
[in] | value | - Value of the hue to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveLocalDimmingLevel | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves local dimming level.
This function saves the local dimming level in picture profile database for the specific picture mode, primary video format type and primary video source. The saved local dimming level should be applied automatically whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current local dimming level applied in local dimming module. If peak brightness capablity of the panel changes as a result of local dimming level change in future reload the edid accordingly to update VSVDB string if current video format is handled via Dolby Vision core.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr type value. |
[in] | value | - Value of the local dimming level to be set. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveLowLatencyState | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the low latency index.
This function saves the low latency index in picture profile database for the specific picture mode, primary video format type and primary video source. The saved low latency index should be applied automatically by whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in low latency index value applied in PQ module.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr value. |
[in] | value | - Value of the low latency index to be set. Valid values are ( 0, 1 ) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveSaturation | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the saturation value.
This function saves the sharpness value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved saturation value should be applied automatically by whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current saturation value applied in PQ module.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr format type value. |
[in] | value | - Value of the saturation to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SaveSharpness | ( | int | sourceInput, |
int | pq_mode, | ||
int | hdr_type, | ||
int | value ) |
Saves the sharpness value.
This function saves the sharpness value in picture profile database for the specific picture mode, primary video format type and primary video source. The saved sharpness value should be applied automatically by whenever the specified picture mode is selected, specified primary video format is played and specified primary video source is selected. There will be no change in current sharpness value applied in PQ module.
[in] | sourceInput | - Source input value. |
[in] | pq_mode | - Picture mode index. |
[in] | hdr_type | - hdr format type value. |
[in] | value | - Value of the sharpness to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetAspectRatio | ( | tvDisplayMode_t | dispMode | ) |
Sets the aspect ratio.
This function updates the new aspect ratio value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | dispMode | - Aspect ratio value to be set. Valid value will be a member of tvDisplayMode_t |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetBacklight | ( | int | backlight | ) |
Sets the backlight value in the backlight hardware.
This function updates the new backlight value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | backlight | - Backlight value to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetBacklightFade | ( | int | from, |
int | to, | ||
int | duration ) |
Sets the backlight fade settings.
This function will fade the backlight between 2 different backlight values specified in a given duration. It will only set and does'nt save the value. The function call is asynchronous and expected to return immediately after initiating the fading process. If there is change in backlight value due to SetBacklight API call or a change initiated due to picture mode change or primary video source change or primary video format change, the fading stops instantly and system jumps to the new backlight value.
[in] | from | - Percentage of current backlight value from where fade starts. Valid range is (0 - 100)
|
[in] | to | - Percentage of current backlight value where fade ends. Valid range is (0 - 100) |
[in] | duration | - Time duration for which the backlight needs to be faded to reach new value. Valid range is (0 - 10000 ms) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetBacklightInfo | ( | tvBacklightInfo_t * | backlightDefaults | ) |
Set backlight info.
This function updates the backlight curve details to HAL
[in] | backlightDefaults | - backlightDefaults to set |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetBrightness | ( | int | brightness | ) |
Sets the brightness value to driver register(s)
This function updates the new brightness value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | brightness | - Brightness value to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetCMSState | ( | tvCMS_tunel_t | tunelType, |
tvcomponent_color_type_t | colorType, | ||
tvcomponent_state_t | componentState ) |
Sets and save's the CMS state.
This function enable or disable the CMS state. The change is applied for current primary video source selected, video format played and picture mode selected and if successful will be saved in override picture profile database. The saved CMS state value should be applied automatically whenever the current picture mode, current primary video format
[in] | tunelType | - Tunnel Type |
[in] | colorType | - Color Type |
[in] | componentState | - Component State |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_B_post_offset | ( | tvColorTemp_t | colorTemp, |
int | bpostoffset ) |
Set the bpostoffset value.
This function sets the bpostoffset value for specfic color temperature.
[in] | colorTemp | - Color Temperature |
[out] | bpostoffset | - bpostoffset |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_B_post_offset_onSource | ( | tvColorTemp_t | colorTemp, |
int | bpostoffset, | ||
int | sourceId, | ||
int | saveOnly ) |
Sets or saves the bpostoffset value.
This function sets or saves the bpostoffset value for a specfic color temperature and video source. If it is set operation (saveOnly=0)
the rgb gain and offset for the specified colour temperature will be loaded in white balance module and
the new bpostoffset gain value from this API will be updated, but not saved in picture profile database. The value is discarded and default value from picture profile database is used when primary video format or primary video source or picture mode changes. If it is save operation (saveOnly =1) then the bpostoffset will be saved for the specific video source and colour temperature. The saved bpostoffset value should be automatically applied in white balance module when the colour temperaure choice is made as result of picture mode change or primary video format change or primary video source change.
[in] | colorTemp | - Color temperature value to be save/set. Valid value will be a member of tvColorTemp_t |
[in] | bpostoffset | - Bpostoffset Value to be set. Valid range is (-1024 to +1023) |
[in] | sourceId | - SourceId value. |
[in] | saveOnly | - Save=1 / Set=0 ( 0 for bpostoffset value will be applied to PQ HW. i.e changes can be visible immediately on screen 1 for bpostoffset value will be saved and applied later i.e changes not visible immediately for current video) |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_Bgain | ( | tvColorTemp_t | colorTemp, |
int | bgain ) |
Set the bgain value.
This function sets the bgain value for specfic color temperature.
[in] | colorTemp | - Color Temperature |
[in] | bgain | - Bgain value |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_Bgain_onSource | ( | tvColorTemp_t | colorTemp, |
int | bgain, | ||
int | sourceId, | ||
int | saveOnly ) |
Sets or saves the bgain value.
This function sets or saves the bgain value for a specfic color temperature and video source. If it is set operation (saveOnly=0)
the rgb gain and offset for the specified colour temperature will be loaded in white balance module and
the new bgain gain value from this API will be updated, but not saved in picture profile database. The value is discarded and default value from picture profile database is used when primary video format or primary video source or picture mode changes. If it is save operation (saveOnly =1) then the bgain will be saved for the specific video source and colour temperature. The saved bgain value will be automatically applied in white balance module when the colour temperaure choice is made as result of picture mode change or primary video format change or primary video source change.
[in] | colorTemp | - Color temperature value to be save/set. Valid value will be a member of tvColorTemp_t |
[in] | bgain | - Bgain Value to be set. Valid range is (0 - 2047) |
[in] | sourceId | - SourceId value. |
[in] | saveOnly | - Save=1 / Set=0 ( 0 for bgain value will be applied to PQ HW. i.e changes can be visible immediately on screen 1 for bgain value will be saved and applied later i.e changes not visible immediately for current video) |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_G_post_offset | ( | tvColorTemp_t | colorTemp, |
int | gpostoffset ) |
Set the gpostoffset value.
This function sets the gpostoffset value for specfic color temperature.
[in] | colorTemp | - Color Temperature |
[out] | gpostoffset | - gpostoffset |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_G_post_offset_onSource | ( | tvColorTemp_t | colorTemp, |
int | gpostoffset, | ||
int | sourceId, | ||
int | saveOnly ) |
Sets or saves the gpostoffset value.
This function sets or saves the gpostoffset value for a specfic color temperature and video source. If it is set operation (saveOnly=0)
the rgb gain and offset for the specified colour temperature will be loaded in white balance module and
the new gpostoffset gain value from this API will be updated, but not saved in picture profile database. The value is discarded and default value from picture profile database is used when primary video format or primary video source or picture mode changes. If it is save operation (saveOnly =1) then the gpostoffset will be saved for the specific video source and colour temperature. The saved gpostoffset value should be automatically applied in white balance module when the colour temperaure choice is made as result of picture mode change or primary video format change or primary video source change.
[in] | colorTemp | - Color temperature value to be save/set. Valid value will be a member of tvColorTemp_t |
[in] | gpostoffset | - Gpostoffset Value to be set. Valid range is (-1024 to +1023) |
[in] | sourceId | - SourceId value. |
[in] | saveOnly | - Save=1 / Set=0 ( 0 for gpostoffset value will be applied to PQ HW. i.e changes can be visible immediately on screen 1 for gpostoffset value will be saved and applied later i.e changes not visible immediately for current video) |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_Ggain | ( | tvColorTemp_t | colorTemp, |
int | ggain ) |
Set the ggain value.
This function sets the ggain value for specfic color temperature.
[in] | colorTemp | - color temperature |
[in] | ggain | - ggain |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_Ggain_onSource | ( | tvColorTemp_t | colorTemp, |
int | ggain, | ||
int | sourceId, | ||
int | saveOnly ) |
Sets or saves the ggain value.
This function sets or saves the ggain value for a specfic color temperature and video source. If it is set operation (saveOnly=0)
the rgb gain and offset for the specified colour temperature will be loaded in white balance module and
the new green gain value from this API will be updated, but not saved in picture profile database. The value is discarded and default value from picture profile database is used when primary video format or primary video source or picture mode changes. If it is save operation (saveOnly =1) then the ggain will be saved for the specific video source and colour temperature. The saved ggain value should be automatically applied in white balance module when the colour temperaure choice is made as result of picture mode change or primary video format change or primary video source change.
[in] | colorTemp | - Color temperature value to be save/set. Valid value will be a member of tvColorTemp_t |
[in] | ggain | - Ggain Value to be set. Valid range is (0 - 2047) |
[in] | sourceId | - SourceId value. |
[in] | saveOnly | - Save=1 / Set=0 ( 0 for ggain value will be applied to PQ HW. i.e changes can be visible immediately on screen 1 for ggain value will be saved and applied later i.e changes not visible immediately for current video) |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_R_post_offset | ( | tvColorTemp_t | colorTemp, |
int | rpostoffset ) |
Set the rpostoffset value.
This function sets the rpostoffset value for specfic color temperature.
[in] | colorTemp | - Color Temperature |
[in] | rpostoffset | - rpostoffset |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_R_post_offset_onSource | ( | tvColorTemp_t | colorTemp, |
int | rpostoffset, | ||
int | sourceId, | ||
int | saveOnly ) |
Sets or saves the rpostoffset value.
This function sets or saves the rpostoffset value for a specfic color temperature and video source. If it is set operation (saveOnly=0)
the rgb gain and offset for the specified colour temperature will be loaded in white balance module and
the new rpostoffset gain value from this API will be updated, but not saved in picture profile database. The value is discarded and default value from picture profile database is used when primary video format or primary video source or picture mode changes. If it is save operation (saveOnly =1) then the rpostoffset will be saved for the specific video source and colour temperature. The saved rpostoffset value should be automatically applied in white balance module when the colour temperaure choice is made as result of picture mode change or primary video format change or primary video source change.
[in] | colorTemp | - Color temperature value to be save/set. Valid value will be a member of tvColorTemp_t |
[in] | rpostoffset | - Rpostoffset Value to be set. Valid range is (-1024 to +1023) |
[in] | sourceId | - SourceId value. |
[in] | saveOnly | - Save=1 / Set=0 ( 0 for rpostoffset value will be applied to PQ HW. i.e changes can be visible immediately on screen 1 for rpostoffset value will be saved and applied later i.e changes not visible immediately for current video) |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_Rgain | ( | tvColorTemp_t | colorTemp, |
int | rgain ) |
Set the rgain value.
This function sets the rgain value for specfic color temperature.
[in] | colorTemp | - color temperature |
[in] | rgain | - rgain |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemp_Rgain_onSource | ( | tvColorTemp_t | colorTemp, |
int | rgain, | ||
int | sourceId, | ||
int | saveOnly ) |
Sets or saves the rgain value.
This function sets or saves the rgain value for a specfic color temperature and video source. If it is set operation (saveOnly=0)
the rgb gain and offset for the specified colour temperature will be loaded in white balance module and
the new red gain value from this API will be updated, but not saved in picture profile database. The value is discarded and default value from picture profile database is used when primary video format or primary video source or picture mode changes. If it is save operation (saveOnly =1) then the rgain will be saved for the specific video source and colour temperature. The saved rgain value will be automatically applied in white balance module when the colour temperaure choice is made as result of picture mode change or primary video format change or primary video source change.
[in] | colorTemp | - Color temperature value to be save/set. Valid value will be a member of tvColorTemp_t |
[in] | rgain | - Rgain Value to be set. Valid range is (0 - 2047) |
[in] | sourceId | - SourceId value. |
[in] | saveOnly | - Save=1 / Set=0 ( 0 for rgain value will be applied to PQ HW. i.e changes can be visible immediately on screen 1 for rgain value will be saved and applied later i.e changes not visible immediately for current video) |
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemperature | ( | tvColorTemp_t | colorTemp | ) |
Sets the color temperature to driver register(s)
This function updates the new color temperature value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | colorTemp | - Color temperature value to be set. Valid value will be a member of tvColorTemp_t |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetColorTemperatureUser | ( | int | rgbType, |
int | value ) |
Set Color Temperature User.
This function update RGB(WhiteBalance) values for user colortemperature
[in] | rgbType | - rgb type |
[in] | value | - value |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetContrast | ( | int | contrast | ) |
Sets the contrast value to driver register(s)
This function updates the new contrast value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected.
[in] | contrast | - Contrast value to be set.Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetCurrentBacklightMode | ( | tvBacklightMode_t | blMode | ) |
Sets the backlight mode.
This function sets the backlight mode.
[in] | blMode | - Backlight mode to be set. Valid value can be one of the member of tvBacklightMode_t". If more than one value is bitwise OR-ed and passed then the function should return invalid param. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetCurrentComponentHue | ( | tvDataComponentColor_t | blHueColor, |
int | hue ) |
Sets current component hue.
This function updates the component hue value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | blHueColor | - Component color. Valid value will be a member of tvDataComponentColor_t |
[in] | hue | - Hue value to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetCurrentComponentLuma | ( | tvDataComponentColor_t | blLumaColor, |
int | Luma ) |
Sets the current component luma value.
This function updates the component luma value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | blLumaColor | - Component color. Valid value will be a member of tvDataComponentColor_t |
[in] | Luma | - Luma value to be set. Valid range is (0 - 30) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetCurrentComponentSaturation | ( | tvDataComponentColor_t | blSaturationColor, |
int | saturation ) |
Sets current component saturation.
This function updates the component saturation value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | blSaturationColor | - Component color. Valid value will be one of the member of tvDataComponentColor_t. If more than one value is bitwise OR-ed and passed then the function should return invalid param. |
[in] | saturation | - Saturation value to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetDynamicContrast | ( | const char * | dynamicContrastEnable | ) |
Sets the dynamic contrast.
This function updates the dynamic contrast state to PQ module. The change takes effect for current primary video source selected, video format played and picture mode selected, but not saved in picture profile database. The value is discarded and default value from picture profile database is used when primary video format or primary video source or picture mode changes.
[in] | dynamicContrastEnable | - Dynamic contrast enable flag value (valid values are "enabled" for enable and "disabled" for disable) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetGammaMode | ( | int | mode | ) |
Enable or disable gamma mode.
This function enables or disables the gamma mode.
[in] | mode | - Mode |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetGammaPattern | ( | int | is_10_bit, |
int | R_Value, | ||
int | G_Value, | ||
int | B_Value ) |
Sets the gamma pattern.
This function sets the primary color level at 10bit resolution( 0 - 1023 ). Should bypass all PQ elements
and display the full screen pattern of the primary colour passed. This function will only set and does'nt save the value.
[in] | is_10_bit | - Value to check if red/green/blue paramter is 10 bit resolution or 8 bit resolution. Valid values are ( 0 for is 10 bit, 1 for 8 bit). If 8 bit resolution is passed values should be converted to 10 bit by 2 bit left shift and then used. |
[in] | R_Value | - Red level of input pattern. Valid range is ( 0 - 1023 for 10 bit and 0 to 255 for 8 bit ) |
[in] | G_Value | - Green level of input pattern. Valid range is ( 0 - 1023 for 10 bit and 0 to 255 for 8 bit ) |
[in] | B_Value | - Blue level of input pattern. Valid range is ( 0 - 1023 for 10 bit and 0 to 255 for 8 bit ) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetGammaTable | ( | unsigned short * | pData_R, |
unsigned short * | pData_G, | ||
unsigned short * | pData_B, | ||
unsigned short | size ) |
Sets the gamma calibrated values to gamma HW for current selected colour temperature.
This function sets the gamma calibrated values(0 - 1023) for the primary colors to gamma Hardware for the current selected colour temperature, but they are not saved in picture profile database. The gamma values will be discarded and default value from picture profile database is used on colour temperature value change as a result of picture mode change or primary video source change or primary vidoe format change.
[in] | pData_R | - Array of gamma red values. Valid range is (0 - 1023) |
[in] | pData_G | - Array of gamma green values. Valid range is (0 - 1023) |
[in] | pData_B | - Array of gamma blue values. Valid range is (0 - 1023) |
[in] | size | - Common size of each array. Valid range is (0 - 256) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetGrayPattern | ( | int | YUVValue | ) |
Sets the gray pattern value.
This function sets the various gray pattern levels. Should bypass all PQ elements
and display the full screen grey pattern.
[in] | YUVValue | - Gray level of input pattern to be set. Valid range is (0 - 255) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetHue | ( | int | hue | ) |
Sets the hue value to driver register(s)
This function updates the new hue value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | hue | - Hue value to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetLocalDimmingLevel | ( | int | localDimmingLevel | ) |
Sets the local dimming level.
This function updates the new local dimming level to hardware. The change is applied for current primary video source selected, video format played and picture mode selected and if successful will be saved in override picture profile database. The saved local dimming level value should be applied automatically whenever the current picture mode, current primary video format If peak brightness capablity of the panel changes as a result of local dimming level change reload the edid accordingly to update VSVDB string if current video format is handled via Dolby Vision core.
[in] | localDimmingLevel | - Dimming level to set. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetLowLatencyState | ( | int | lowLatencyIndex | ) |
Sets the low latency state to driver register(s)
This function updates the new low latency state value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected and if successful will be saved in override picture profile database. The saved low latency state value should be applied automatically whenever the current picture mode, current primary video format
[in] | lowLatencyIndex | - Value of the low latency index to be set. Valid values are ( 0 for disable, 1 for enable) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetRGBPattern | ( | int | r, |
int | g, | ||
int | b ) |
Sets the RGB values of RGB pattern.
This function sets the primary color level at 8bit resolution(0 - 255). This pattern is processed via PQ pipeline @ elemennts before it reaches the panel.
[in] | r | - Red level of input pattern to be set. Valid range is (0 - 255) |
[in] | g | - Green level of input pattern to be set. Valid range is (0 - 255) |
[in] | b | - Blue level of input pattern to be set. Valid range is (0 - 255) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetSaturation | ( | int | saturation | ) |
Sets the saturation value to driver register(s)
This function updates the new saturation value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | saturation | - Saturation value to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetSharpness | ( | int | sharpness | ) |
Sets the sharpness value to driver register(s)
This function updates the new sharpness value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected
[in] | sharpness | - Sharpness value to be set. Valid range is (0 - 100) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetTint | ( | int | tint | ) |
Sets the tint value to driver register(s)
This function updates the new tint value to hardware. The change is applied for current primary video source selected, video format played and picture mode selected.
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetTVBacklightGlobalFactor | ( | int | value, |
int | rangeMidPointValue ) |
Set TV Backlight Global Factor.
This function controls the backlight through backlight global factor.
[in] | value | - value |
[in] | rangeMidPointValue | - Range Mid point value |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetTVDimmingMode | ( | const char * | dimmingMode | ) |
Sets the backlight dimming mode.
This function updates the new dimming mode to hardware. The change is applied for current primary video source selected, video format played and picture mode selected. If peak brightness capablity of the panel changes as a result of dimming mode change reload the edid accordingly to update VSVDB string if video format currently playing is handled via Dolby Vision core.
[in] | dimmingMode | - Dimming mode to be set. Valid values are ( "local", "fixed", "global" ) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetTVDolbyVisionMode | ( | const char * | dolbyMode | ) |
Sets dolby vision mode. To be deprecated soon.
This function sets the Dolby vision mode in Dolby vision core. The change takes effect for current primary video source selected, primary video format if handled via Dolby vision core and picture mode selected, but not saved for future use. The value is discarded if primary video format or primary video source or picture mode changes.
[in] | dolbyMode | - Dolby vision mode to be set. Valid values can be one of the strings from pic_modes_t.name parameter returned by GetTVSupportedDolbyVisionModesODM |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetTVHDR10Mode | ( | const char * | hdr10Mode | ) |
Sets the HDR10 mode. To be deprecated soon.
This function sets the HDR10 mode in Dolby vision core. The change takes effect for current primary video source selected, primary video format if handled via Dolby vision core and picture mode selected, but not saved for future use. The value is discarded if primary video format or primary video source or picture mode changes.
[in] | hdr10Mode | - HDR10 mode to be set. Valid values can be one of the strings from pic_modes_t.name parameter returned by GetTVSupportedHDR10ModesODM |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetTVHLGMode | ( | const char * | hlgMode | ) |
Sets the HLG mode. To be deprecated soon.
This function sets the HLG mode in Dolby vision core. The change takes effect for current primary video source selected, primary video format if handled via Dolby vision core and picture mode selected, but not saved for future use. The value is discarded if primary video format or primary video source or picture mode changes.
[in] | hlgMode | - HLG mode to be set. Valid values can be one of the strings from pic_modes_t.name parameter returned by GetTVSupportedHLGModesODM |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t SetTVPictureMode | ( | const char * | pictureMode | ) |
Sets the Picture Mode.
This function updates the picture mode and reloads all the associated picture properties for the picture mode. This applies to current selected primary video source and primary video format, if successful the association of picture mode to the current video source and current primary video format is saved in override picture profile database. The associated picture mode and all the associated picture properties will be reloaded again when the current video source and current primary video format are selected in future.
[in] | pictureMode | - Picture mode to be set.Valid values are as per values returned by pic_modes_t.name parmaeter from GetTVSupportedPictureModes API. The size of string will be PIC_MODE_NAME_MAX. |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t setWakeupConfig | ( | const tvWakeupSrcType_t | src_type, |
const bool | value ) |
Sets wake-up configuration.
This function enables/disables the specific deepsleep wake-up source
[in] | src_type | - Wakeup source type. Valid value will be a member of tvWakeupSrcType_t |
[in] | value | - Enable/disable wakeup source to be set ( 0 for disable and 1 for enable ) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, write failure, etc |
tvError_t setWBctrl | ( | char * | inputSrc, |
char * | colorTemp, | ||
char * | color, | ||
char * | ctrl, | ||
int | value ) |
Sets the white balance control. To be deprecated soon.
This function sets the white balance for a specific source, color, color temperature and control.
[in] | inputSrc | - Source of input to be set. Valid values are ( "HDMI", "TV", "AV" ) |
[in] | colorTemp | - Color temperature value to be set. Valid values are ( "custom", "normal", "cool", "warm" ) |
[in] | color | - Color to be set. Valid values are ( "red", "blue", "green" ) |
[in] | ctrl | - Control to be set. Valid values are ( "gain", "offset" ) |
[in] | value | - Values to be set for the specific control. Valid range : for gain is ( 0 to 2047 ), for offset is ( -1024 to 1024 ) |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - When the input value is not valid |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
void splitstringsandvaluefrombuffer | ( | char * | buffer, |
pic_modes_t * | availableModes[], | ||
unsigned short * | totalcount ) |
Parse buffer and return string values,index & total count.
This function parses the buffer returned through ReadAllModeConfigfile() and returns the string value,index and their count.
[in] | buffer | - Buffer to split |
[in] | availableModes | - avilable modes |
[out] | totalcount | - total count |
void splitstringsfrombuffer | ( | char * | buffer, |
char * | availableModes, | ||
unsigned short * | totalcount ) |
Parse buffer and return string values & total count.
This function parses the buffer returned through ReadAllModeConfigfile() and returns the string value and their count.
[in] | buffer | - Buffer to split |
[in] | availableModes | - avilable modes |
[out] | totalcount | - total count |
void SwitchEDID | ( | int | pqmode | ) |
Switch EDID.
This Function updates the EDID for given picture mode
[in] | pqmode | - picture quality mode |
tvError_t tvInit | ( | ) |
Initialises TV Settings HAL.
This function is used to initialize the TV Setting HAL APIs. All dependent vendor specific driver modules for implementing TV Settings HAL are expected to be initialised when this call return successfully. Calling TvInit() API more than once without a TvTerm() API call should return failure. Any TV Settings HAL API called before TvInit() API should return failure.
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is already initialized |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t tvSD3toCriSyncInit | ( | ) |
Sync the calibrated data to driver.
This function is to read the calibration data from serialization area and sync to driver during init.
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t tvTerm | ( | ) |
De-initialises TV Settings HAL.
This function should terminate the TV Settings HAL APIs. All dependent vendor specific driver modules for implementing TV Settings HAL are expected to be terminated when this call return successfully. Calling TvTerm() API more than once without a TvInit() API call should return failure. Any TV Settings HAL API called after TvTerm() and before TvInit() API should return failure.
tvERROR_NONE | - Success |
tvERROR_INVALID_STATE | - Interface is already terminated |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |
tvError_t UpdateEDIDAndSetDimmingLevel | ( | int | dimmingLevel | ) |
Set the EDID and dimming level.
This function Update EDID and set dimming level for current Picture mode
[in] | dimmingLevel | - Dimming level |
tvERROR_NONE | - Success |
tvERROR_INVALID_PARAM | - Input parameter is invalid |
tvERROR_INVALID_STATE | - Interface is not initialized |
tvERROR_OPERATION_NOT_SUPPORTED | - Operation is not supported |
tvERROR_GENERAL | - Underlying failures - SoC, memory, etc |