libopenjpegenc: simplify switch statement

Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com>