libtorc-baseui: Refactor OpenMax

Probably not the last time