add ShowPig

This commit is contained in:
TangoCash
2021-03-12 17:51:26 +01:00
committed by Thilo Graf
parent fee588c593
commit ed01ec8082
2 changed files with 15 additions and 0 deletions

View File

@@ -141,6 +141,13 @@ static const char *VMPEG_framerate[] = {
"/proc/stb/vmpeg/3/framerate"
};
static const char *VMPEG_visible[] = {
"/proc/stb/vmpeg/0/visible",
"/proc/stb/vmpeg/1/visible",
"/proc/stb/vmpeg/2/visible",
"/proc/stb/vmpeg/3/visible"
};
static const char *vid_modes[] = {
"pal", // VIDEO_STD_NTSC
"pal", // VIDEO_STD_SECAM
@@ -759,6 +766,13 @@ int cVideo::getBlank(void)
#endif
}
void cVideo::ShowPig(int _x)
{
char buffer[64];
sprintf(buffer, "%d", _x);
proc_put(VMPEG_visible[devnum], buffer, strlen(buffer));
}
void cVideo::Pig(int x, int y, int w, int h, int osd_w, int osd_h, int startx, int starty, int endx, int endy)
{
char buffer[64];