Lines Matching refs:capture
2 * s2255drv.c - a driver for the Sensoray 2255 USB video capture device
131 #define FDEC_1 1 /* capture every frame. default */
132 #define FDEC_2 2 /* capture every 2nd frame */
133 #define FDEC_3 3 /* capture every 3rd frame */
134 #define FDEC_5 5 /* capture every 5th frame */
164 u32 single; /* capture 1 frame at a time (!=0), continuously (==0)*/
238 /* capture parameters (for high quality mode full size) */
1401 /* Sensoray 2255 is a multiple channel capture device.
1600 sp->parm.capture.capability = V4L2_CAP_TIMEPERFRAME;
1601 sp->parm.capture.capturemode = channel->cap_parm.capturemode;
1604 sp->parm.capture.timeperframe.denominator = def_dem;
1608 sp->parm.capture.timeperframe.numerator = def_num;
1611 sp->parm.capture.timeperframe.numerator = def_num * 2;
1614 sp->parm.capture.timeperframe.numerator = def_num * 3;
1617 sp->parm.capture.timeperframe.numerator = def_num * 5;
1620 dprintk(4, "%s capture mode, %d timeperframe %d/%d\n", __func__,
1621 sp->parm.capture.capturemode,
1622 sp->parm.capture.timeperframe.numerator,
1623 sp->parm.capture.timeperframe.denominator);
1638 /* high quality capture mode requires a stream restart */
1640 != sp->parm.capture.capturemode && res_locked(fh))
1644 if (def_dem != sp->parm.capture.timeperframe.denominator)
1645 sp->parm.capture.timeperframe.numerator = def_num;
1646 else if (sp->parm.capture.timeperframe.numerator <= def_num)
1647 sp->parm.capture.timeperframe.numerator = def_num;
1648 else if (sp->parm.capture.timeperframe.numerator <= (def_num * 2)) {
1649 sp->parm.capture.timeperframe.numerator = def_num * 2;
1651 } else if (sp->parm.capture.timeperframe.numerator <= (def_num * 3)) {
1652 sp->parm.capture.timeperframe.numerator = def_num * 3;
1655 sp->parm.capture.timeperframe.numerator = def_num * 5;
1659 sp->parm.capture.timeperframe.denominator = def_dem;
1661 dprintk(4, "%s capture mode, %d timeperframe %d/%d, fdec %d\n",
1663 sp->parm.capture.capturemode,
1664 sp->parm.capture.timeperframe.numerator,
1665 sp->parm.capture.timeperframe.denominator, fdec);