vuplus_arm: color profile (auto/bt709/bt470) added

Origin commit data
------------------
Branch: master
Commit: 347a9fb9aa
Author: max_10 <max_10@gmx.de>
Date: 2021-12-20 (Mon, 20 Dec 2021)

Origin message was:
------------------
- vuplus_arm: color profile (auto/bt709/bt470) added

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2021-12-20 20:36:46 +01:00
committed by vanhofen
parent 5e50fcbfe7
commit 72ec7dfaca
2 changed files with 29 additions and 0 deletions

View File

@@ -1238,6 +1238,26 @@ void cVideo::SetColorFormat(COLOR_FORMAT color_format)
proc_put("/proc/stb/video/hdmi_colorspace", p, strlen(p));
}
#if BOXMODEL_VUPLUS_ARM
void cVideo::SetHDMIColorimetry(HDMI_COLORIMETRY hdmi_colorimetry)
{
const char *p = NULL;
switch (hdmi_colorimetry)
{
case HDMI_COLORIMETRY_AUTO:
p = "Edit(Auto)";
break;
case HDMI_COLORIMETRY_BT709:
p = "Itu_R_BT_709";
break;
case HDMI_COLORIMETRY_BT470:
p = "Itu_R_BT_470_2_BG";
break;
}
if (p)
proc_put("/proc/stb/video/hdmi_colorspace", p, strlen(p));
}
#else
void cVideo::SetHDMIColorimetry(HDMI_COLORIMETRY hdmi_colorimetry)
{
const char *p = NULL;