mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
vuduo4k/vuduo4kse/vuultimo4k/vuuno4kse: HDMI input as mode and PiP added
This commit is contained in:
@@ -65,6 +65,11 @@ extern "C"
|
||||
_r; \
|
||||
})
|
||||
|
||||
enum
|
||||
{ ENCODER,
|
||||
AUX
|
||||
};
|
||||
|
||||
cVideo * videoDecoder = NULL;
|
||||
cVideo * pipDecoder = NULL;
|
||||
|
||||
@@ -365,6 +370,19 @@ int image_to_mpeg2(const char *image_name, const char *encode_name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void cVideo::setAVInput(int val)
|
||||
{
|
||||
hal_info("%s not implemented yet - switching to: %s\n", __func__, val == AUX ? "SCART" : "ENCODER");
|
||||
#if 0 // not working
|
||||
int input_fd = open("/proc/stb/avs/0/input", O_WRONLY);
|
||||
if(input_fd){
|
||||
const char *input[] = {"encoder", "scart"};
|
||||
write(input_fd, input[val], strlen(input[val]));
|
||||
close(input_fd);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
cVideo::cVideo(int, void *, void *, unsigned int unit)
|
||||
{
|
||||
hal_debug("%s unit %u\n", __func__, unit);
|
||||
|
Reference in New Issue
Block a user