Ram usage in any C compiler depends on the individual functions and optimizations used in the calculation so it can be efficient but unpredictable. You have little control over it I'm afraid.
You could experiment though to see if it can be reduced, for example the "for" loop working out the total may be more efficiently written as :
Code:
i = OV_UV_SIZE;
while (i--) total+= OV_UV_Values[i];
on the basis that PIC have instructions for detecting if a variable is zero so it's easier to count 'i' down than compare it against another value each time it loops.
Brian.