rename hdmi_mode -> hdmi_colorimetry

Origin commit data
------------------
Branch: master
Commit: 91225e1e36
Author: TangoCash <eric@loxat.de>
Date: 2021-12-05 (Sun, 05 Dec 2021)


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

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2021-12-05 21:54:59 +01:00
committed by vanhofen
parent c548da4479
commit 5e50fcbfe7
2 changed files with 12 additions and 12 deletions

View File

@@ -1238,21 +1238,21 @@ void cVideo::SetColorFormat(COLOR_FORMAT color_format)
proc_put("/proc/stb/video/hdmi_colorspace", p, strlen(p)); proc_put("/proc/stb/video/hdmi_colorspace", p, strlen(p));
} }
void cVideo::SetHdmiMode(HDMI_MODE hdmi_mode) void cVideo::SetHDMIColorimetry(HDMI_COLORIMETRY hdmi_colorimetry)
{ {
const char *p = NULL; const char *p = NULL;
switch (hdmi_mode) switch (hdmi_colorimetry)
{ {
case HDMI_MODE_AUTO: case HDMI_COLORIMETRY_AUTO:
p = "auto"; p = "auto";
break; break;
case HDMI_MODE_BT2020NCL: case HDMI_COLORIMETRY_BT2020NCL:
p = "bt2020ncl"; p = "bt2020ncl";
break; break;
case HDMI_MODE_BT2020CL: case HDMI_COLORIMETRY_BT2020CL:
p = "bt2020cl"; p = "bt2020cl";
break; break;
case HDMI_MODE_BT709: case HDMI_COLORIMETRY_BT709:
p = "bt709"; p = "bt709";
break; break;
} }

View File

@@ -38,11 +38,11 @@ typedef enum
typedef enum typedef enum
{ {
HDMI_MODE_AUTO, HDMI_COLORIMETRY_AUTO,
HDMI_MODE_BT2020NCL, HDMI_COLORIMETRY_BT2020NCL,
HDMI_MODE_BT2020CL, HDMI_COLORIMETRY_BT2020CL,
HDMI_MODE_BT709 HDMI_COLORIMETRY_BT709
} HDMI_MODE; } HDMI_COLORIMETRY;
typedef enum typedef enum
{ {
@@ -284,8 +284,8 @@ class cVideo
int StartVBI(unsigned short) { return 0; }; int StartVBI(unsigned short) { return 0; };
int StopVBI(void) { return 0; }; int StopVBI(void) { return 0; };
void SetDemux(cDemux *dmx); void SetDemux(cDemux *dmx);
void SetHDMIColorimetry(HDMI_COLORIMETRY hdmi_colorimetry);
void SetColorFormat(COLOR_FORMAT color_format); void SetColorFormat(COLOR_FORMAT color_format);
void SetHdmiMode(HDMI_MODE hdmi_mode);
bool GetScreenImage(unsigned char *&data, int &xres, int &yres, bool get_video = true, bool get_osd = false, bool scale_to_video = false); bool GetScreenImage(unsigned char *&data, int &xres, int &yres, bool get_video = true, bool get_osd = false, bool scale_to_video = false);
}; };