vuduo4k/vuduo4kse/vuultimo4k/vuuno4kse: HDMI input as mode and PiP added

This commit is contained in:
BPanther
2021-05-09 21:25:43 +02:00
committed by Thilo Graf
parent d7da634795
commit dbad7ef37a
10 changed files with 175 additions and 6 deletions

View File

@@ -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);