libwebp/src/utils
skal 176fda2650 fix the bit-writer for lossless in 32bit mode
Sometimes, we can write 18bit or more at time, and it would
overflow the 32bit accumulator.

Also clarified the num-bits limitations (and exposed
VP8L_MAX_NUM_BIT_READ in bit_reader.h)

fixes http://code.google.com/p/webp/issues/detail?id=200

Seems a bit faster (use of local fields for bits_ / used_)

also: added the __QNX__ bswap while at it.

Change-Id: I876db93a931db15b083cf1d838c70105effa7167
2014-05-22 07:19:22 +02:00
..
alpha_processing.c drop: ifdef __cplusplus checks from C files 2013-12-13 11:42:13 -08:00
alpha_processing.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
bit_reader.c fix the bit-writer for lossless in 32bit mode 2014-05-22 07:19:22 +02:00
bit_reader.h fix the bit-writer for lossless in 32bit mode 2014-05-22 07:19:22 +02:00
bit_writer.c fix the bit-writer for lossless in 32bit mode 2014-05-22 07:19:22 +02:00
bit_writer.h fix the bit-writer for lossless in 32bit mode 2014-05-22 07:19:22 +02:00
color_cache.c use WebPSafe[CM]alloc/WebPSafeFree instead of [cm]alloc/free 2014-03-27 15:50:59 -07:00
color_cache.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
filters.c drop: ifdef __cplusplus checks from C files 2013-12-13 11:42:13 -08:00
filters.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
huffman_encode.c make HistogramAdd() a pointer in dsp 2014-04-28 10:09:34 -07:00
huffman_encode.h make HistogramAdd() a pointer in dsp 2014-04-28 10:09:34 -07:00
huffman.c Reduce number of memory allocations while decoding lossless. 2014-05-02 01:01:43 -07:00
huffman.h Reduce number of memory allocations while decoding lossless. 2014-05-02 01:01:43 -07:00
Makefile.am extract random utils to their own file util/random.[ch] 2013-10-30 02:00:33 -07:00
quant_levels_dec.c drop: ifdef __cplusplus checks from C files 2013-12-13 11:42:13 -08:00
quant_levels_dec.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
quant_levels.c drop: ifdef __cplusplus checks from C files 2013-12-13 11:42:13 -08:00
quant_levels.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
random.c drop: ifdef __cplusplus checks from C files 2013-12-13 11:42:13 -08:00
random.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
rescaler.c cosmetics: normalize VP8GetCPUInfo checks 2014-02-28 18:47:41 -08:00
rescaler.h Rescale: let ImportRow / ExportRow be pointer-to-function 2014-02-17 00:58:17 -08:00
thread.c drop: ifdef __cplusplus checks from C files 2013-12-13 11:42:13 -08:00
thread.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
utils.c memory debug: allow setting pre-defined malloc failure points 2014-05-05 14:01:33 -07:00
utils.h windows: fix dll builds 2014-03-31 17:46:12 -07:00