James Zern
948d4fe94f
silence a msvc build warning
...
implicit double -> float conversion; avoiding sqrtf (c99) for
compatibility
Change-Id: If9b367dde237fc5173c1445cc60b16aa6ad2821c
2011-12-19 23:04:01 -08:00
Pascal Massimino
6aac1df17b
add a bunch of missing 'extern "C"'
...
Change-Id: I8c0ada049ce9fa7ef14164b90d58e999cdabba53
2011-12-13 10:51:32 -08:00
Pascal Massimino
08e865822a
trap alpha-decoding error
...
Improves robustness to bad bitstream.
Change-Id: I87ca03ccd12d4d690904b35f8dfc2a20a28fb47b
2011-12-08 06:34:00 -08:00
Pascal Massimino
b361eca1c5
add cut-off to arith coder probability update.
...
This speeds things up for long message, while not damaging
the stats too much for usual-sized cases
Change-Id: I3f45e28b771d701e2e1da11eb800de18c4ed12fc
2011-12-08 06:27:11 -08:00
Pascal Massimino
30971c9e95
Implement progress report (and user abort)
...
New cwebp flag is -progress
Change-Id: Ied872cca13f512036860783bbee1bdbccad72768
2011-12-01 14:19:40 -08:00
James Zern
67228734dc
cosmetics after e1947a9
...
indent / spelling / line length & a couple missing consts
Change-Id: Id282cb7bc6881d4738a3d9fa912b5b22a007c4d2
2011-11-30 18:51:20 -08:00
Vikas Arora
e1947a9299
Add Alpha encode/decode code.
...
Add code for Alpha encoding & decoding. The alpha compression is done
via backward reference counts encoded with Arithmetic encoder (TCoder).
Also provided is lossy Alpha pre-processing option via level-quantizations
using kNN heuristic.
Change-Id: Ib6b13530c1a4ab6493edcb586ad29fe242bc1766
2011-11-30 17:53:09 +05:30
James Zern
469d6eb974
Merge "Makefile.am: remove redundant noinst_HEADERS"
2011-11-16 18:41:55 -08:00
James Zern
ced3e3f4e0
Makefile.am: remove redundant noinst_HEADERS
...
When they appear in _SOURCES they won't be installed [1].
[1]: http://www.gnu.org/software/automake/manual/automake.html#Headers
Change-Id: I14fd816294682e7bd0fccefd6428e1526c9470d8
2011-11-11 16:29:32 -08:00
James Zern
964387ed19
use WEBP_INLINE for inline function declarations
...
removes a #define inline, objectionable in certain projects
Change-Id: Iebe0ce0b25a030756304d402679ef769e5f854d1
2011-11-11 10:53:58 -08:00
James Zern
fdbe02c581
windows: match _cond_destroy logic w/return variable name
...
CloseHandle returns non-zero on success so earlier versions would leave
'ok' with a misleading value, though the return itself was correct.
Change-Id: I21b74a59d90f7bf1b484a55f3960962e933f577b
2011-09-13 15:48:33 -07:00
Pascal Massimino
6a32a0f5bf
make VP8BitReader a typedef, for better re-use
...
Change-Id: Id91f8c5649f9fd078facc9f280a314377193b5e8
2011-09-13 15:47:24 -07:00
Pascal Massimino
b112e83647
create a libwebputils under src/utils
...
with bit_reader bit_writer and thread for now.
Change-Id: If961933fcfc43e60220913fe4d527230ba8f46bb
2011-09-13 15:34:15 -07:00