|
|
FWIW, after thinking about it, I'd suggest to use the simple solution 1 above (KISS) by either moving the buffer into the global space or making it static as a local variable (I'd prefer the latter). In both cases the buffer should be initialized with zeroes (IIRC), otherwise an initializer like { 0 } would do it (untested). This would be well-defined and using color_average() as in the existing code would be an informative example as well.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
[ Direct Link to Message ] | |
|
| |