|
|
|
@ -274,7 +274,7 @@ int ng_vid_driver::xioctl( int fd, int cmd, void *arg )
|
|
|
|
|
if (rc == 0)
|
|
|
|
|
return 0;
|
|
|
|
|
//print_ioctl(stderr,ioctls_v4l1,PREFIX,cmd,arg);
|
|
|
|
|
qDebug( ": %s\n",(rc == 0) ? "ok" : strerror(errno) );
|
|
|
|
|
tqDebug( ": %s\n",(rc == 0) ? "ok" : strerror(errno) );
|
|
|
|
|
return rc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -340,7 +340,7 @@ bool ng_vid_driver_v4l::open2( TQString device )
|
|
|
|
|
{
|
|
|
|
|
/* open device */
|
|
|
|
|
if ((m_fd = ::open( device.latin1(), O_RDWR )) == -1) {
|
|
|
|
|
qDebug( "v4l: open %s: %s\n", device.latin1(), strerror(errno) );
|
|
|
|
|
tqDebug( "v4l: open %s: %s\n", device.latin1(), strerror(errno) );
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (ioctl( m_fd, VIDIOCGCAP, &m_capability ) == -1) {
|
|
|
|
@ -349,7 +349,7 @@ bool ng_vid_driver_v4l::open2( TQString device )
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef Barcode_DEBUG
|
|
|
|
|
qDebug( "v4l: open: %s (%s)\n", device.latin1(), m_capability.name );
|
|
|
|
|
tqDebug( "v4l: open: %s (%s)\n", device.latin1(), m_capability.name );
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
fcntl( m_fd, F_SETFD, FD_CLOEXEC ); // close on exit
|
|
|
|
@ -358,8 +358,8 @@ bool ng_vid_driver_v4l::open2( TQString device )
|
|
|
|
|
myDebug() << " capabilities: " << endl;
|
|
|
|
|
for (int i = 0; device_cap[i] != NULL; i++)
|
|
|
|
|
if (m_capability.type & (1 << i))
|
|
|
|
|
qDebug( " %s", device_cap[i] );
|
|
|
|
|
qDebug( " size : %dx%d => %dx%d", m_capability.minwidth, m_capability.minheight, m_capability.maxwidth, m_capability.maxheight );
|
|
|
|
|
tqDebug( " %s", device_cap[i] );
|
|
|
|
|
tqDebug( " size : %dx%d => %dx%d", m_capability.minwidth, m_capability.minheight, m_capability.maxwidth, m_capability.maxheight );
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef Barcode_DEBUG
|
|
|
|
|