# HG changeset patch # User al3x # Date 1056124284 0 # Node ID 6c90bbfc4b9704b6575e64b65d3d78a353340463 # Parent 78a13c7b7d496c1c9362bf6a5c54c69342184607 1000l diff -r 78a13c7b7d49 -r 6c90bbfc4b97 dv1394.c --- a/dv1394.c Fri Jun 20 15:30:14 2003 +0000 +++ b/dv1394.c Fri Jun 20 15:51:24 2003 +0000 @@ -91,21 +91,21 @@ return -ENOMEM; } - dv->width = DV1394_WIDTH; - dv->height = DV1394_HEIGHT; + /* FIXME: Need a format change parameter */ + dv->format = DV1394_NTSC; if (ap->channel) dv->channel = ap->channel; else dv->channel = DV1394_DEFAULT_CHANNEL; - /* FIXME: Need a format change parameter */ - dv->format = DV1394_NTSC; - + dv->width = DV1394_WIDTH; if (dv->format == DV1394_NTSC) { + dv->height = DV1394_NTSC_HEIGHT; dv->frame_size = DV1394_NTSC_FRAME_SIZE; dv->frame_rate = 30; } else { + dv->height = DV1394_PAL_HEIGHT; dv->frame_size = DV1394_PAL_FRAME_SIZE; dv->frame_rate = 25; } diff -r 78a13c7b7d49 -r 6c90bbfc4b97 dv1394.h --- a/dv1394.h Fri Jun 20 15:30:14 2003 +0000 +++ b/dv1394.h Fri Jun 20 15:51:24 2003 +0000 @@ -31,7 +31,8 @@ #define DV1394_RING_FRAMES 20 #define DV1394_WIDTH 720 -#define DV1394_HEIGHT 576 +#define DV1394_NTSC_HEIGHT 480 +#define DV1394_PAL_HEIGHT 576 /* This is the public user-space interface. Try not to break it. */