Skip to content

Commit

Permalink
add automatic pip screenshot support
Browse files Browse the repository at this point in the history
  • Loading branch information
TangoCash committed Nov 22, 2022
1 parent 4dda648 commit 7e2e7ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aio-grab/main.c
Expand Up @@ -734,6 +734,17 @@ int main(int argc, char **argv)
if (stb_type == VULCAN || stb_type == PALLAS)
mallocsize=720*576;

if (pips == 0)
{
for (int p=1; p < 3; p++)
{
char pipbuf[25];
sprintf(pipbuf,"/proc/stb/vmpeg/%d/xres",p);
if (proc_get_hex(pipbuf))
pips = p;
}
}

video = (unsigned char *)malloc(mallocsize*3);
if (pips > 0)
video1 = (unsigned char *)malloc(mallocsize*3);
Expand Down

0 comments on commit 7e2e7ca

Please sign in to comment.