mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
Revert "implement GetVideoSystem"
This reverts commit6c74b8f4c5
. Origin commit data ------------------ Branch: master Commit:6b2e3594fa
Author: max_10 <max_10@gmx.de> Date: 2017-10-07 (Sat, 07 Oct 2017) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -317,40 +317,6 @@ int cVideo::setBlank(int)
|
||||
return Stop(1);
|
||||
}
|
||||
|
||||
int cVideo::GetVideoSystem()
|
||||
{
|
||||
lt_debug("%s\n", __func__);
|
||||
char current[32];
|
||||
static const char *modes[] = {
|
||||
"pal", // VIDEO_STD_NTSC
|
||||
"pal", // VIDEO_STD_SECAM
|
||||
"pal", // VIDEO_STD_PAL
|
||||
"480p", // VIDEO_STD_480P
|
||||
"576p50", // VIDEO_STD_576P
|
||||
"720p60", // VIDEO_STD_720P60
|
||||
"1080i60", // VIDEO_STD_1080I60
|
||||
"720p50", // VIDEO_STD_720P50
|
||||
"1080i50", // VIDEO_STD_1080I50
|
||||
"1080p30", // VIDEO_STD_1080P30
|
||||
"1080p24", // VIDEO_STD_1080P24
|
||||
"1080p25", // VIDEO_STD_1080P25
|
||||
"1080p50", // VIDEO_STD_1080P50
|
||||
"1080p60", // VIDEO_STD_1080P60
|
||||
"1080p2397", // VIDEO_STD_1080P2397
|
||||
"1080p2997" // VIDEO_STD_1080P2997
|
||||
};
|
||||
|
||||
int ret = proc_get("/proc/stb/video/videomode", current, 32);
|
||||
for (int i=0; i<sizeof(modes)/sizeof(*modes); i++) {
|
||||
if (strcmp(current, modes[i]) == 0)
|
||||
{
|
||||
lt_info("%s: video_system (%s) \n", __func__, current);
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
int cVideo::SetVideoSystem(int video_system, bool remember)
|
||||
{
|
||||
lt_debug("%s(%d, %d)\n", __func__, video_system, remember);
|
||||
|
@@ -182,9 +182,6 @@ class cVideo
|
||||
int Stop(bool blank = true);
|
||||
bool Pause(void);
|
||||
|
||||
/* get video system infos */
|
||||
int GetVideoSystem();
|
||||
|
||||
/* set video_system */
|
||||
int SetVideoSystem(int video_system, bool remember = true);
|
||||
int SetStreamType(VIDEO_FORMAT type);
|
||||
|
Reference in New Issue
Block a user