reduces 256 color mjpegs into an optimized 8 colors with cuda