Owu, I thought you was suggesting to be only local (and not static). In
this case the local and global variables will end up on the same place of
the object output. Even that the current way is visible for other functions
in this file, its local to this TU what is enough for me. So I prefer to
have it on a global scope and have the function code a less cumbersome,
specially because we will add more of those vectors in a close future to
address other RS camera models so the number of variables will keep growing.
You could use a static local variable. So they are in the scope of the
function. I prefer this way, but it is up to you.
Other than that, the patch looks ok for me.
Owu, I thought you was suggesting to be only local (and not static). In this case the local and global variables will end up on the same place of the object output. Even that the current way is visible for other functions in this file, its local to this TU what is enough for me. So I prefer to have it on a global scope and have the function code a less cumbersome, specially because we will add more of those vectors in a close future to address other RS camera models so the number of variables will keep growing.
On Thu, Apr 20, 2017 at 11:57 AM, Otavio Pontes notifications@github.com wrote: