mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
spark: implement cVideo::SetVideoMode
this should add rudimentary support to get SCART output working
This commit is contained in:
@@ -284,22 +284,22 @@ int cVideo::getPlayState(void)
|
|||||||
|
|
||||||
void cVideo::SetVideoMode(analog_mode_t mode)
|
void cVideo::SetVideoMode(analog_mode_t mode)
|
||||||
{
|
{
|
||||||
lt_debug("%s(%d)\n", __FUNCTION__, mode);
|
lt_debug("%s(%d)\n", __func__, mode);
|
||||||
#if 0
|
const char *m;
|
||||||
switch(mode)
|
switch(mode)
|
||||||
{
|
{
|
||||||
case ANALOG_SD_YPRPB_SCART:
|
case ANALOG_SD_YPRPB_SCART:
|
||||||
outputformat = VID_OUTFMT_YBR_SVIDEO;
|
m = "yuv";
|
||||||
break;
|
break;
|
||||||
case ANALOG_SD_RGB_SCART:
|
case ANALOG_SD_RGB_SCART:
|
||||||
outputformat = VID_OUTFMT_RGBC_SVIDEO;
|
m = "rgb";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
lt_info("%s unknown mode %d\n", __FUNCTION__, mode);
|
lt_info("%s unknown mode %d\n", __func__, mode);
|
||||||
return;
|
m = "rgb";
|
||||||
|
break; /* default to rgb */
|
||||||
}
|
}
|
||||||
fop(ioctl, MPEG_VID_SET_OUTFMT, outputformat);
|
proc_put("/proc/stb/avs/0/colorformat", m, strlen(m));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void cVideo::ShowPicture(const char * fname)
|
void cVideo::ShowPicture(const char * fname)
|
||||||
|
Reference in New Issue
Block a user