¡@

Home 

c++ Programming Glossary: newerrors

What is a good, optimized C/C++ algorithm for converting a 24-bit bitmap to 16-bit with dithering?

http://stackoverflow.com/questions/11640017/what-is-a-good-optimized-c-c-algorithm-for-converting-a-24-bit-bitmap-to-16-b

width 2 for int y 0 y height y std vector RGBTriplet newErrors width 2 RGBTriplet errorAhead for int x 0 x width x int b int.. pixel16 8 int error r rAfter 255 31 errorAhead.r error 7 newErrors x .r error 3 newErrors x 1 .r error 5 newErrors x 2 .r error.. rAfter 255 31 errorAhead.r error 7 newErrors x .r error 3 newErrors x 1 .r error 5 newErrors x 2 .r error 1 error g gAfter 255 63..