Mercurial > libavformat.hg
changeset 156:6c90bbfc4b97 libavformat
1000l
author | al3x |
---|---|
date | Fri, 20 Jun 2003 15:51:24 +0000 |
parents | 78a13c7b7d49 |
children | a9972ec5319f |
files | dv1394.c dv1394.h |
diffstat | 2 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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; }
--- 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. */