Core classes and pixel access macros from opticl

WWW: https://github.com/slyrus/opticl-core
