libspark: implement cVideo::GetVideoSystemFormatName()

Origin commit data
------------------
Branch: master
Commit: 4285d9449d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-08-26 (Sat, 26 Aug 2017)


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

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2017-08-26 12:57:40 +02:00
committed by max_10
parent df2b0eb23b
commit 4f3efe9853
3 changed files with 245 additions and 2 deletions

View File

@@ -380,6 +380,17 @@ int cVideo::GetVideoSystem(void)
return VIDEO_STD_720P50;
}
void cVideo::GetVideoSystemFormatName(cs_vs_format_t *format, int system)
{
if (system == -1)
system = GetVideoSystem();
if (system < 0 || system > VIDEO_STD_1080P50) {
lt_info("%s: invalid system %d\n", __func__, system);
strcpy(format->format, "invalid");
} else
strcpy(format->format, vid_modes[system]);
}
int cVideo::getPlayState(void)
{
return playstate;