Yes - what I've been thinking about either. I wonder isn't there a control
on the camera that switches the image vertically. There are cameras that do
that. Otherwise it means that the Windows driver does the same and that is
quite expensive doing memory copies on video flows buffers (what will that
do at 1600x1200 for example on a 2MP camera ??
Adrian Sergiu DARABANT
Nice to see that you've got yourself a fix. But you are leaking your
temp buffer -- you'll need to free it somewhere.
But it does seem expensive to copy the data 3 times. Could you do
something like this instead?
int *src = (int*) data + len;
int *dst = (int*) buffer;
for ( int i= 0; i < len /sizeof(int); i++) {
src--;
*dst++ = *src;
}
that way you only have to copy the data once and you don't need a
temporary buffer.
Cheers
Richard
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel