mirror of
https://github.com/X11Libre/xf86-video-v4l.git
synced 2026-03-24 01:25:19 +00:00
DRI XFree86-4_3_99_12-merge import
This commit is contained in:
2
README
2
README
@@ -34,4 +34,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/README,v 1.1 1999/03/28 15:32:50 dawes Exp $
|
$XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/README,v 1.2 2001/05/07 21:59:07 tsi Exp $
|
||||||
|
|||||||
10
man/v4l.man
10
man/v4l.man
@@ -1,4 +1,4 @@
|
|||||||
.\" $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/v4l.man,v 1.2 2001/01/27 18:20:55 dawes Exp $
|
.\" $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/v4l.man,v 1.3 2001/05/29 22:24:06 dawes Exp $
|
||||||
.\" shorthand for double quote that works everywhere.
|
.\" shorthand for double quote that works everywhere.
|
||||||
.ds q \N'34'
|
.ds q \N'34'
|
||||||
.TH V4L __drivermansuffix__ __vendorversion__
|
.TH V4L __drivermansuffix__ __vendorversion__
|
||||||
@@ -13,9 +13,9 @@ v4l \- video4linux driver
|
|||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B v4l
|
.B v4l
|
||||||
is an __xservername__ driver for video4linux cards. It provides a Xvideo
|
is an XFree86 driver for video4linux cards. It provides a Xvideo
|
||||||
extention port for video overlay. Just add the driver to the module
|
extention port for video overlay. Just add the driver to the module
|
||||||
list within the module section of your __xconfigfile__ file if you want
|
list within the module section of your XF86Config file if you want
|
||||||
to use it. There are no config options.
|
to use it. There are no config options.
|
||||||
.P
|
.P
|
||||||
Note that the the extmod module is also required for the Xvideo
|
Note that the the extmod module is also required for the Xvideo
|
||||||
@@ -30,10 +30,10 @@ overlay.
|
|||||||
bt848/bt878-based TV cards are the most popular hardware these
|
bt848/bt878-based TV cards are the most popular hardware these
|
||||||
days.
|
days.
|
||||||
.SH CONFIGURATION DETAILS
|
.SH CONFIGURATION DETAILS
|
||||||
Please refer to __xconfigfile__(__filemansuffix__) for general configuration
|
Please refer to XF86Config(__filemansuffix__) for general configuration
|
||||||
details. This section only covers configuration details specific to this
|
details. This section only covers configuration details specific to this
|
||||||
driver.
|
driver.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), xorgconfig(__appmansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__)
|
XFree86(1), XF86Config(__filemansuffix__), xf86config(1), Xserver(1), X(__miscmansuffix__)
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
Authors include: Gerd Knorr <kraxel@bytesex.org>
|
Authors include: Gerd Knorr <kraxel@bytesex.org>
|
||||||
|
|||||||
24
src/v4l.c
24
src/v4l.c
@@ -2,7 +2,7 @@
|
|||||||
* video4linux Xv Driver
|
* video4linux Xv Driver
|
||||||
* based on Michael Schimek's permedia 2 driver.
|
* based on Michael Schimek's permedia 2 driver.
|
||||||
*/
|
*/
|
||||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/v4l.c,v 1.33 2003/12/05 03:55:32 dawes Exp $ */
|
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/v4l.c,v 1.31 2003/07/16 01:38:47 dawes Exp $ */
|
||||||
|
|
||||||
#include "videodev.h"
|
#include "videodev.h"
|
||||||
#include "xf86.h"
|
#include "xf86.h"
|
||||||
@@ -50,7 +50,7 @@ static XF86ModuleVersionInfo v4lVersRec =
|
|||||||
MODULEVENDORSTRING,
|
MODULEVENDORSTRING,
|
||||||
MODINFOSTRING1,
|
MODINFOSTRING1,
|
||||||
MODINFOSTRING2,
|
MODINFOSTRING2,
|
||||||
XORG_VERSION_CURRENT,
|
XF86_VERSION_CURRENT,
|
||||||
0, 0, 1,
|
0, 0, 1,
|
||||||
ABI_CLASS_VIDEODRV,
|
ABI_CLASS_VIDEODRV,
|
||||||
ABI_VIDEODRV_VERSION,
|
ABI_VIDEODRV_VERSION,
|
||||||
@@ -220,7 +220,7 @@ static int V4lOpenDevice(PortPrivPtr pPPriv, ScrnInfoPtr pScrn)
|
|||||||
if (first) {
|
if (first) {
|
||||||
first = 0;
|
first = 0;
|
||||||
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 2,
|
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 2,
|
||||||
"v4l: memPhysBase=0x%lx\n", pScrn->memPhysBase);
|
"v4l: memPhysBase=%p\n", pScrn->memPhysBase);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (pScrn->bitsPerPixel) {
|
switch (pScrn->bitsPerPixel) {
|
||||||
@@ -718,11 +718,11 @@ static void
|
|||||||
V4LBuildEncodings(PortPrivPtr p, int fd, int channels)
|
V4LBuildEncodings(PortPrivPtr p, int fd, int channels)
|
||||||
{
|
{
|
||||||
static struct video_channel channel;
|
static struct video_channel channel;
|
||||||
int i,entries,have_bttv,bttv_ver;
|
int i,entries,have_bttv;
|
||||||
|
|
||||||
#define BTTV_VERSION _IOR('v' , BASE_VIDIOCPRIVATE+6, int)
|
#define BTTV_VERSION _IOR('v' , BASE_VIDIOCPRIVATE+6, int)
|
||||||
have_bttv = 0;
|
have_bttv = 0;
|
||||||
if (-1 != ioctl(fd,BTTV_VERSION,&bttv_ver))
|
if (-1 != ioctl(fd,BTTV_VERSION,NULL))
|
||||||
have_bttv = 1;
|
have_bttv = 1;
|
||||||
|
|
||||||
entries = (have_bttv ? 7 : 3) * channels;
|
entries = (have_bttv ? 7 : 3) * channels;
|
||||||
@@ -747,17 +747,17 @@ V4LBuildEncodings(PortPrivPtr p, int fd, int channels)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
v4l_add_enc(p->enc, p->nenc,"PAL", channel.name, 768,576, 1,50);
|
v4l_add_enc(p->enc, p->nenc,"pal", channel.name, 768,576, 1,50);
|
||||||
p->norm[p->nenc] = VIDEO_MODE_PAL;
|
p->norm[p->nenc] = VIDEO_MODE_PAL;
|
||||||
p->input[p->nenc] = i;
|
p->input[p->nenc] = i;
|
||||||
p->nenc++;
|
p->nenc++;
|
||||||
|
|
||||||
v4l_add_enc(p->enc,p->nenc,"NTSC", channel.name, 640,480, 1001,60000);
|
v4l_add_enc(p->enc,p->nenc,"ntsc", channel.name, 640,480, 1001,60000);
|
||||||
p->norm[p->nenc] = VIDEO_MODE_NTSC;
|
p->norm[p->nenc] = VIDEO_MODE_NTSC;
|
||||||
p->input[p->nenc] = i;
|
p->input[p->nenc] = i;
|
||||||
p->nenc++;
|
p->nenc++;
|
||||||
|
|
||||||
v4l_add_enc(p->enc,p->nenc,"SECAM",channel.name, 768,576, 1,50);
|
v4l_add_enc(p->enc,p->nenc,"secam",channel.name, 768,576, 1,50);
|
||||||
p->norm[p->nenc] = VIDEO_MODE_SECAM;
|
p->norm[p->nenc] = VIDEO_MODE_SECAM;
|
||||||
p->input[p->nenc] = i;
|
p->input[p->nenc] = i;
|
||||||
p->nenc++;
|
p->nenc++;
|
||||||
@@ -767,28 +767,28 @@ V4LBuildEncodings(PortPrivPtr p, int fd, int channels)
|
|||||||
ntsc and secam. But there are a few more norms (pal versions
|
ntsc and secam. But there are a few more norms (pal versions
|
||||||
with a different timings used in south america for example).
|
with a different timings used in south america for example).
|
||||||
The bttv driver can handle these too. */
|
The bttv driver can handle these too. */
|
||||||
if (0 != v4l_add_enc(p->enc,p->nenc,"PAL-Nc",channel.name,
|
if (0 != v4l_add_enc(p->enc,p->nenc,"palnc",channel.name,
|
||||||
640, 576, 1,50))
|
640, 576, 1,50))
|
||||||
goto fail;
|
goto fail;
|
||||||
p->norm[p->nenc] = 3;
|
p->norm[p->nenc] = 3;
|
||||||
p->input[p->nenc] = i;
|
p->input[p->nenc] = i;
|
||||||
p->nenc++;
|
p->nenc++;
|
||||||
|
|
||||||
if (0 != v4l_add_enc(p->enc,p->nenc,"PAL-M",channel.name,
|
if (0 != v4l_add_enc(p->enc,p->nenc,"palm",channel.name,
|
||||||
640, 576, 1,50))
|
640, 576, 1,50))
|
||||||
goto fail;
|
goto fail;
|
||||||
p->norm[p->nenc] = 4;
|
p->norm[p->nenc] = 4;
|
||||||
p->input[p->nenc] = i;
|
p->input[p->nenc] = i;
|
||||||
p->nenc++;
|
p->nenc++;
|
||||||
|
|
||||||
if (0 != v4l_add_enc(p->enc, p->nenc,"PAL-N", channel.name,
|
if (0 != v4l_add_enc(p->enc, p->nenc,"paln", channel.name,
|
||||||
768,576, 1,50))
|
768,576, 1,50))
|
||||||
goto fail;
|
goto fail;
|
||||||
p->norm[p->nenc] = 5;
|
p->norm[p->nenc] = 5;
|
||||||
p->input[p->nenc] = i;
|
p->input[p->nenc] = i;
|
||||||
p->nenc++;
|
p->nenc++;
|
||||||
|
|
||||||
if (0 != v4l_add_enc(p->enc,p->nenc,"NTSC-JP", channel.name,
|
if (0 != v4l_add_enc(p->enc,p->nenc,"ntscjp", channel.name,
|
||||||
640,480, 1001,60000))
|
640,480, 1001,60000))
|
||||||
goto fail;
|
goto fail;
|
||||||
p->norm[p->nenc] = 6;
|
p->norm[p->nenc] = 6;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* Used here with the explicit permission of the original author, Alan Cox.
|
* Used here with the explicit permission of the original author, Alan Cox.
|
||||||
* <alan@lxorguk.ukuu.org.uk>
|
* <alan@lxorguk.ukuu.org.uk>
|
||||||
*/
|
*/
|
||||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/videodev.h,v 1.7tsi Exp $ */
|
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/videodev.h,v 1.8 2001/03/03 22:46:31 tsi Exp $ */
|
||||||
|
|
||||||
#include "Xmd.h"
|
#include "Xmd.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user