mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user