}
static PyObject *
-svc_conversion(self, args, function, factor)
- captureobject *self;
- PyObject *args;
- void (*function)();
- float factor;
+svc_conversion(captureobject *self, PyObject *args, void (*function)(), float factor)
{
PyObject *output;
int invert;
* Compression Library 4:2:2 Duplicate Chroma format.
*/
static PyObject *
-svc_YUVtoYUV422DC(self, args)
- captureobject *self;
- PyObject *args;
+svc_YUVtoYUV422DC(captureobject *self, PyObject *args)
{
if (self->ob_info.format != SV_YUV411_FRAMES) {
PyErr_SetString(SvError, "data has bad format");
}
static PyObject *
-svc_YUVtoYUV422DC_quarter(self, args)
- captureobject *self;
- PyObject *args;
+svc_YUVtoYUV422DC_quarter(captureobject *self, PyObject *args)
{
if (self->ob_info.format != SV_YUV411_FRAMES) {
PyErr_SetString(SvError, "data has bad format");
}
static PyObject *
-svc_YUVtoYUV422DC_sixteenth(self, args)
- captureobject *self;
- PyObject *args;
+svc_YUVtoYUV422DC_sixteenth(captureobject *self, PyObject *args)
{
if (self->ob_info.format != SV_YUV411_FRAMES) {
PyErr_SetString(SvError, "data has bad format");
}
static PyObject *
-svc_YUVtoRGB(self, args)
- captureobject *self;
- PyObject *args;
+svc_YUVtoRGB(captureobject *self, PyObject *args)
{
switch (self->ob_info.format) {
case SV_YUV411_FRAMES:
}
static PyObject *
-svc_RGB8toRGB32(self, args)
- captureobject *self;
- PyObject *args;
+svc_RGB8toRGB32(captureobject *self, PyObject *args)
{
if (self->ob_info.format != SV_RGB8_FRAMES) {
PyErr_SetString(SvError, "data has bad format");
}
static PyObject *
-svc_InterleaveFields(self, args)
- captureobject *self;
- PyObject *args;
+svc_InterleaveFields(captureobject *self, PyObject *args)
{
if (self->ob_info.format != SV_RGB8_FRAMES) {
PyErr_SetString(SvError, "data has bad format");
}
static PyObject *
-svc_GetFields(self, args)
- captureobject *self;
- PyObject *args;
+svc_GetFields(captureobject *self, PyObject *args)
{
PyObject *f1 = NULL;
PyObject *f2 = NULL;
}
static PyObject *
-svc_UnlockCaptureData(self, args)
- captureobject *self;
- PyObject *args;
+svc_UnlockCaptureData(captureobject *self, PyObject *args)
{
if (!PyArg_Parse(args, ""))
return NULL;
#include <gl.h>
static PyObject *
-svc_lrectwrite(self, args)
- captureobject *self;
- PyObject *args;
+svc_lrectwrite(captureobject *self, PyObject *args)
{
Screencoord x1, x2, y1, y2;
#endif
static PyObject *
-svc_writefile(self, args)
- captureobject *self;
- PyObject *args;
+svc_writefile(captureobject *self, PyObject *args)
{
PyObject *file;
int size;
}
static PyObject *
-svc_FindVisibleRegion(self, args)
- captureobject *self;
- PyObject *args;
+svc_FindVisibleRegion(captureobject *self, PyObject *args)
{
void *visible;
int width;
};
static void
-capture_dealloc(self)
- captureobject *self;
+capture_dealloc(captureobject *self)
{
if (self->ob_capture != NULL) {
if (self->ob_mustunlock)
}
static PyObject *
-capture_getattr(self, name)
- svobject *self;
- char *name;
+capture_getattr(svobject *self, char *name)
{
return Py_FindMethod(capture_methods, (PyObject *)self, name);
}
};
static PyObject *
-newcaptureobject(self, ptr, mustunlock)
- svobject *self;
- void *ptr;
- int mustunlock;
+newcaptureobject(svobject *self, void *ptr, int mustunlock)
{
captureobject *p;
}
static PyObject *
-sv_GetCaptureData(self, args)
- svobject *self;
- PyObject *args;
+sv_GetCaptureData(svobject *self, PyObject *args)
{
void *ptr;
long fieldID;
}
static PyObject *
-sv_BindGLWindow(self, args)
- svobject *self;
- PyObject *args;
+sv_BindGLWindow(svobject *self, PyObject *args)
{
long wid;
int mode;
}
static PyObject *
-sv_EndContinuousCapture(self, args)
- svobject *self;
- PyObject *args;
+sv_EndContinuousCapture(svobject *self, PyObject *args)
{
if (!PyArg_Parse(args, ""))
}
static PyObject *
-sv_IsVideoDisplayed(self, args)
- svobject *self;
- PyObject *args;
+sv_IsVideoDisplayed(svobject *self, PyObject *args)
{
int v;
}
static PyObject *
-sv_OutputOffset(self, args)
- svobject *self;
- PyObject *args;
+sv_OutputOffset(svobject *self, PyObject *args)
{
int x_offset;
int y_offset;
}
static PyObject *
-sv_PutFrame(self, args)
- svobject *self;
- PyObject *args;
+sv_PutFrame(svobject *self, PyObject *args)
{
char *buffer;
}
static PyObject *
-sv_QuerySize(self, args)
- svobject *self;
- PyObject *args;
+sv_QuerySize(svobject *self, PyObject *args)
{
int w;
int h;
}
static PyObject *
-sv_SetSize(self, args)
- svobject *self;
- PyObject *args;
+sv_SetSize(svobject *self, PyObject *args)
{
int w;
int h;
}
static PyObject *
-sv_SetStdDefaults(self, args)
- svobject *self;
- PyObject *args;
+sv_SetStdDefaults(svobject *self, PyObject *args)
{
if (!PyArg_Parse(args, ""))
}
static PyObject *
-sv_UseExclusive(self, args)
- svobject *self;
- PyObject *args;
+sv_UseExclusive(svobject *self, PyObject *args)
{
boolean onoff;
int mode;
}
static PyObject *
-sv_WindowOffset(self, args)
- svobject *self;
- PyObject *args;
+sv_WindowOffset(svobject *self, PyObject *args)
{
int x_offset;
int y_offset;
}
static PyObject *
-sv_CaptureBurst(self, args)
- svobject *self;
- PyObject *args;
+sv_CaptureBurst(svobject *self, PyObject *args)
{
int bytes, i;
svCaptureInfo info;
}
static PyObject *
-sv_CaptureOneFrame(self, args)
- svobject *self;
- PyObject *args;
+sv_CaptureOneFrame(svobject *self, PyObject *args)
{
svCaptureInfo info;
int format, width, height;
}
static PyObject *
-sv_InitContinuousCapture(self, args)
- svobject *self;
- PyObject *args;
+sv_InitContinuousCapture(svobject *self, PyObject *args)
{
svCaptureInfo info;
}
static PyObject *
-sv_LoadMap(self, args)
- svobject *self;
- PyObject *args;
+sv_LoadMap(svobject *self, PyObject *args)
{
PyObject *rgb;
PyObject *res = NULL;
}
static PyObject *
-sv_CloseVideo(self, args)
- svobject *self;
- PyObject *args;
+sv_CloseVideo(svobject *self, PyObject *args)
{
if (!PyArg_Parse(args, ""))
return NULL;
}
static PyObject *
-doParams(self, args, func, modified)
- svobject *self;
- PyObject *args;
- int (*func)(SV_nodeP, long *, int);
- int modified;
+doParams(svobject *self, PyObject *args,
+ int (*func)(SV_nodeP, long *, int), int modified)
{
PyObject *list;
PyObject *res = NULL;
}
static PyObject *
-sv_GetParam(self, args)
- PyObject *self, *args;
+sv_GetParam(PyObject *self, PyObject *args)
{
return doParams(self, args, svGetParam, 1);
}
static PyObject *
-sv_GetParamRange(self, args)
- PyObject *self, *args;
+sv_GetParamRange(PyObject *self, PyObject *args)
{
return doParams(self, args, svGetParamRange, 1);
}
static PyObject *
-sv_SetParam(self, args)
- PyObject *self, *args;
+sv_SetParam(PyObject *self, PyObject *args)
{
return doParams(self, args, svSetParam, 0);
}
};
static PyObject *
-sv_conversion(self, args, function, inputfactor, factor)
- PyObject *self, *args;
- void (*function)();
- int inputfactor;
- float factor;
+sv_conversion(PyObject *self, PyObject *args, void (*function)(),
+ int inputfactor, float factor)
{
int invert, width, height, inputlength;
char *input, *str;
}
static PyObject *
-sv_InterleaveFields(self, args)
- PyObject *self, *args;
+sv_InterleaveFields(PyObject *self, PyObject *args)
{
return sv_conversion(self, args, svInterleaveFields, 1, 1.0);
}
static PyObject *
-sv_RGB8toRGB32(self, args)
- PyObject *self, *args;
+sv_RGB8toRGB32(PyObject *self, PyObject *args)
{
return sv_conversion(self, args, svRGB8toRGB32, 1, (float) sizeof(long));
}
static PyObject *
-sv_YUVtoRGB(self, args)
- PyObject *self, *args;
+sv_YUVtoRGB(PyObject *self, PyObject *args)
{
return sv_conversion(self, args, svYUVtoRGB, 2, (float) sizeof(long));
}
static void
-svideo_dealloc(self)
- svobject *self;
+svideo_dealloc(svobject *self)
{
if (self->ob_svideo != NULL)
(void) svCloseVideo(self->ob_svideo);
}
static PyObject *
-svideo_getattr(self, name)
- svobject *self;
- char *name;
+svideo_getattr(svobject *self, char *name)
{
return Py_FindMethod(svideo_methods, (PyObject *)self, name);
}
};
static PyObject *
-newsvobject(svp)
- SV_nodeP svp;
+newsvobject(SV_nodeP svp)
{
svobject *p;
}
static PyObject *
-sv_OpenVideo(self, args)
- PyObject *self, *args;
+sv_OpenVideo(PyObject *self, PyObject *args)
{
SV_nodeP svp;