dct: fix 16bpp, dct primitives are not 16bpp safe