mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
spark: implement cVideo::SetVideoMode
this should add rudimentary support to get SCART output working
Origin commit data
------------------
Branch: master
Commit: eb8439be3e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-23 (Thu, 23 Feb 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -284,22 +284,22 @@ int cVideo::getPlayState(void)
|
||||
|
||||
void cVideo::SetVideoMode(analog_mode_t mode)
|
||||
{
|
||||
lt_debug("%s(%d)\n", __FUNCTION__, mode);
|
||||
#if 0
|
||||
lt_debug("%s(%d)\n", __func__, mode);
|
||||
const char *m;
|
||||
switch(mode)
|
||||
{
|
||||
case ANALOG_SD_YPRPB_SCART:
|
||||
outputformat = VID_OUTFMT_YBR_SVIDEO;
|
||||
m = "yuv";
|
||||
break;
|
||||
case ANALOG_SD_RGB_SCART:
|
||||
outputformat = VID_OUTFMT_RGBC_SVIDEO;
|
||||
m = "rgb";
|
||||
break;
|
||||
default:
|
||||
lt_info("%s unknown mode %d\n", __FUNCTION__, mode);
|
||||
return;
|
||||
lt_info("%s unknown mode %d\n", __func__, mode);
|
||||
m = "rgb";
|
||||
break; /* default to rgb */
|
||||
}
|
||||
fop(ioctl, MPEG_VID_SET_OUTFMT, outputformat);
|
||||
#endif
|
||||
proc_put("/proc/stb/avs/0/colorformat", m, strlen(m));
|
||||
}
|
||||
|
||||
void cVideo::ShowPicture(const char * fname)
|
||||
|
Reference in New Issue
Block a user