Hi Alan                                          >@2003.06.29_01:22:02_+0200

> >  (a) captures frames (V4L2_TYPE_CAPTURE)
> >  (b) acts as a codec (V4L2_TYPE_CODEC)
> >  (c) is a video output device (V4L2_TYPE_OUTPUT)
> > 
> > So what should I set the type of the driver to?
> 
> All three ?

You can't. The type is not a bitfield:

------------< snip <------< snip <------< snip <------------
struct v4l2_capability
{
    char    name[32];   /* Descriptive, and unique */
    int type;       /* Device type, see below */
    int inputs;     /* Num video inputs */
    int outputs;    /* Num video outputs */
    int audios;     /* Num audio devices */
    int maxwidth;
    int maxheight;
    int minwidth;
    int minheight;
    int maxframerate;
    __u32   flags;      /* Feature flags, see below */
    __u32   reserved[4];
};
/* Values for 'type' field */
#define V4L2_TYPE_CAPTURE   0   /* Is a video capture device */
#define V4L2_TYPE_CODEC     1   /* Is a CODEC device */
#define V4L2_TYPE_OUTPUT    2   /* Is a video output device */
#define V4L2_TYPE_FX        3   /* Is a video effects device */
#define V4L2_TYPE_VBI       4   /* Is a VBI capture device */
#define V4L2_TYPE_VTR       5   /* Is a tape recorder controller */
#define V4L2_TYPE_VTX       6   /* Is a teletext device */
#define V4L2_TYPE_RADIO     7   /* Is a radio device */
#define V4L2_TYPE_VBI_INPUT 4   /* Is a VBI capture device */
#define V4L2_TYPE_VBI_OUTPUT    9   /* Is a VBI output device */
#define V4L2_TYPE_PRIVATE   1000    /* Start of driver private types */
------------< snip <------< snip <------< snip <------------

-- 

Regards
 Abraham

Majorities, of course, start with minorities.
                -- Robert Moses

___________________________________________________
 Abraham vd Merwe - Frogfoot Networks CC
 9 Kinnaird Court, 33 Main Street, Newlands, 7700
 Phone: +27 21 686 1665 Cell: +27 82 565 4451
 Http: http://www.frogfoot.net/ Email: [EMAIL PROTECTED]


--
video4linux-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/video4linux-list

Reply via email to