cinepakenc: factor out ELBG quantisation