decoder/mad: make variables more local
decoder/mad: convert enums/macros to constexpr