1 extern unsigned int __invalid_size_argument_for_IOC;
2 typedef unsigned int __u32;
8 typedef unsigned long XID;
10 typedef struct _XExtData
20 typedef struct _XDisplay Display;
34 unsigned short hdisplay;
35 unsigned short vdisplay;
45 XF86VidModeModeInfo **modelines, *fullscreenmode = ((void *) 0);
46 struct video_window vswin;
52 XSizeHints fmsizehints;
53 XWindowAttributes fmwinattr;
56 (((1U) << (((0 + 8) + 8) + 14)) | ((('v')) << (0 + 8)) | (((8)) << 0) |
57 (((((sizeof (int) == sizeof (int[1])
59 (1 << 14)) ? sizeof (int) : __invalid_size_argument_for_IOC))) <<
60 ((0 + 8) + 8))), &ccapt) < 0)
62 perror ("ioctl VIDIOCCAPTURE");
64 if (!XTranslateCoordinates
66 ((&((_XPrivDisplay) display)->
67 screens[(((_XPrivDisplay) display)->default_screen)])->root),
68 -fmwinattr.border_width, -fmwinattr.border_width, &rx, &ry, &junkwin))
71 vswin.width = fswidth;
72 vswin.height = fsheight;
73 vswin.x = fmsizehints.x + rx;
74 vswin.y = fmsizehints.y + ry;
77 (((1U) << (((0 + 8) + 8) + 14)) | ((('v')) << (0 + 8)) | (((8)) << 0) |
78 (((((sizeof (int) == sizeof (int[1])
80 (1 << 14)) ? sizeof (int) : __invalid_size_argument_for_IOC))) <<
81 ((0 + 8) + 8))), &ccapt) < 0)
83 XF86VidModeGetAllModeLines (display, XDefaultScreen (display), &tml,
86 if ((modelines[i]->hdisplay == fswidth)
87 && (modelines[i]->vdisplay == fsheight))
89 fullscreenmode = modelines[i];
93 XF86VidModeSetViewPort (display, XDefaultScreen (display), vswin.x,