printing pixelformat ASCII code correctly
git-svn-id: svn://anubis/misc/WebcamTracker@126 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
7b70159842
commit
d7d82a28c4
@ -257,7 +257,10 @@ void WebcamTracker::setFormat()
|
||||
}
|
||||
cerr << "width: " << fmt.fmt.pix.width << endl;
|
||||
cerr << "height: " << fmt.fmt.pix.height << endl;
|
||||
cerr << "pixelformat: " << fmt.fmt.pix.pixelformat << endl;
|
||||
cerr << "pixelformat: ";
|
||||
for (int s = 0; s < 32; s += 8)
|
||||
cerr << (char)((fmt.fmt.pix.pixelformat >> s) & 0xFF);
|
||||
cerr << endl;
|
||||
cerr << "field: " << fmt.fmt.pix.field << endl;
|
||||
cerr << "bytesperline: " << fmt.fmt.pix.bytesperline << endl;
|
||||
ret = ioctl(m_fd, VIDIOC_S_FMT, &fmt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user