Hey Laurent,
I've tried to follow all your suggestion, I hope I didn't any mistakes.

However you can find the updated HOW-TO always here:
http://ubuntuforums.org/showthread.php?t=838210

I did the following changes:
- used PATCHES instead of the source of the modded function;
- I've tried to speed up for the solutions with memory allocation, just
allocating half the size of a frame;
- I've rolled back the last "if (len >= maxlen)" to "if (len > maxlen)";
- I've deleted some variable that where not needed;
- in the solutions without allocation, I've modified a little bit the
"filosofy" on counting the offset where to copy data. In this way it should
be more clear to understand;
- added a complete explaination of the code with a lot of comments (I hope
they are clear and meaningful).

I hope all these changes can help the final users and make the code more
clear!!  ;)

If you have any other suggestions...please let me know!!

Thank you,
Regards

Marco Argiolas
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to