Vikas Arora
e38b40a996
Factorize code for clearing HtreeGroup.
...
Change-Id: I29de6dab7383b8cf071eec155e01340d5fdadee5
2012-05-07 14:24:53 -07:00
James Zern
5c5be8ba69
VP8[L]GetInfo: check input pointers
...
validate data before using & width/height before assigning.
Change-Id: I0872e80fcbfea295d7c633b0d4cb7809e1d1883b
2012-05-02 16:05:02 -07:00
James Zern
02f27fbd3b
dec: remove deprecated WebPINew()
...
Change-Id: I22ad1d297333f5ebc84456d142426a4e0e9a044b
2012-04-27 19:47:35 -07:00
Pascal Massimino
c8139fbe5d
Merge "few cosmetics"
2012-04-24 23:47:06 -07:00
James Zern
532020f24a
lossless: remove some size_t -> int conversions
...
Sizes are given as ints in the documentation and used as such elsewhere.
Change-Id: I51ecd9e501cf9b4e3948aa0e947d2c9b5c85a30f
2012-04-24 16:00:00 -07:00
Pascal Massimino
23be6edfd4
few cosmetics
...
Change-Id: I85b44d811ecc7c551b75e74e64115e74645836b6
2012-04-24 11:53:10 -07:00
James Zern
39a57dae22
Makefile.am: header file maintenance
...
src/dec/Makefile.am: add missing reference to vp8li.h
src/{dec,dsp,enc}/Makefile.am: move some headers to noinst_
Change-Id: I0e2bc69980bd8175d99ad0ab63f537ef9e425b77
2012-04-23 18:53:48 -07:00
Vikas Arora
231ec1fb6d
Removing the indirection of meta-huffman tables.
...
Now, the indexing refers directly to 5 huffman codes that must be encoded separately.
Change-Id: I4deeb04de1997e6d20c376046d2053ec7ee918de
2012-04-23 08:36:14 -07:00
James Zern
2e75a9a1ba
Merge "decode.h: use size_t consistently"
2012-04-19 22:49:47 -07:00
James Zern
9b3d1f3a1b
decode.h: use size_t consistently
...
replaces mixed use of int/uint32_t for buffer sizes
further changes the API/ABI.
Change-Id: I91d70fd82ee3e1ac34b884b8ead9a114a9b1015a
2012-04-19 14:31:31 -07:00
pascal massimino
64083d3c89
Merge "Makefile.am: cosmetics"
2012-04-19 13:51:33 -07:00
James Zern
dceb8b4d9a
Merge changes If1331d3c,I86fe3847
...
* changes:
types.h: centralize use of stddef.h
vp8io: use size_t for buffer size
2012-04-14 13:01:14 -07:00
Pascal Massimino
fac0f12e1b
rename BitReader to VP8LBitReader
...
Change-Id: I192b76422e131a94fb58c2c4a5520a5dba807126
2012-04-13 01:56:31 -07:00
James Zern
fbd82b5a39
types.h: centralize use of stddef.h
...
for size_t / NULL
Change-Id: If1331d3cf44296ed0ba9e838eae2f5b1bcaeb61b
2012-04-12 17:14:58 -07:00
James Zern
2154835f73
Makefile.am: cosmetics
...
- use common file organization across subdir makefiles
- append lib/source/header list variables and sort
Change-Id: I0653e1c73a4552b0c43d21f321b22b4972d6e87b
2012-04-12 15:53:06 -07:00
James Zern
90ead710dc
fix some more uint32_t -> size_t typing
...
Change-Id: Ibbe85ff4a700b17126a65e9ca5a3fa8cbf00b8a6
2012-04-12 13:06:54 -07:00
James Zern
8d254a0927
cosmetics
...
long line, remove out of date TODO
Change-Id: Ic8a40c9d731178af85645b3e24c1cbd807d7d58b
2012-04-11 15:44:48 -07:00
Pascal Massimino
6860c2ea9d
fix some uint32_t -> size_t typing
...
Change-Id: I078243802a67498dfcd3d15b5f1bebf4b6b3b1bb
2012-04-11 04:27:45 -07:00
Urvang Joshi
4af1858a10
Fix a crash due to max symbol in a tree >= alphabet size
...
(cherry picked from commit 15253f91567ce7a2a4a3de8d70e54ba4b0641af3)
Change-Id: I4fbeaea4c712dae3bef078aef9d302b44bc39ffb
2012-04-10 23:07:13 -07:00
Pascal Massimino
6f01b830e2
split the VP8 and VP8L decoding properly
...
* each with their own decoder instances.
* Refactor the incremental buffer-update code a lot.
* remove br_offset_ for VP8LDecoder along the way
* make VP8GetHeaders() be used only for VP8, not VP8L bitstream
* remove VP8LInitDecoder()
* rename VP8LBitReaderResize() to VP8LBitReaderSetBuffer()
(cherry picked from commit 5529a2e6d47212a721ca4ab003215f97bd88ebb4)
Change-Id: I58f0b8abe1ef31c8b0e1a6175d2d86b863793ead
2012-04-10 23:06:58 -07:00
James Zern
f2623dbe58
enable lossless decoder
...
import changes from experimental 5529a2e^
and enable build in autoconf and makefile.unix; windows will be treated
separately.
Change-Id: Ie2e177a99db63190b4cd647b3edee3b4e13719e9
2012-04-10 23:06:36 -07:00
James Zern
b96efd7d50
add dec/vp8i.h changes from experimental
...
Pulled from 5529a2e^.
Change-Id: I51fe7a9c3acf1be4c43af834fd525ab3be5d7e65
2012-04-10 23:05:57 -07:00
James Zern
19f6398ed7
add dec/vp8l{i.h,.c} from experimental
...
Pulled from 5529a2e^.
The history of this and related files is a bit entangled so rather
trying to split the changes and introduce some noise in master's history
we'll start with a fresh snapshot.
The file progression is still available in the experimental branch.
Change-Id: I490a49cb0084d556a29d7c5257c986ea695ce60c
2012-04-10 23:05:14 -07:00
Pascal Massimino
1db888ba40
take colorspace into account when cropping
...
(cherry picked from commit 4e33653b52637c74ae30adde7990265d1d43994b)
Conflicts:
src/dec/vp8l.c
2012-03-30 12:48:24 -07:00
Pascal Massimino
61c2d51fd7
move the rescaling code into its own file and make enc/ and dec/ use it.
...
(cherry picked from commit 8e92d9e380a89b7443a2e2c3d16ce5a222e8c1e8)
Conflicts:
Android.mk
makefile.unix
src/dec/vp8l.c
src/utils/Makefile.am
2012-03-30 12:16:25 -07:00
Urvang Joshi
efc2016a31
Make rescaler methods generic
...
to be used in rescaling of lossless bitstreams.
(cherry picked from commit 2e12a3045498b6faf13b93bc25391e8226119f0a)
2012-03-30 11:57:07 -07:00
Urvang Joshi
3eacee8158
Move rescaler methods out of io.c.
...
(cherry picked from commit b5e9db1824f6efbe0bfb87e94b8d6e88a7973ef7)
2012-03-30 11:56:51 -07:00
Scott LaVarnway
ed278e2279
Removed unnecessary lookup
...
The lookup value is the same as the index. The index in this
case is either a 0 or 1.
Change-Id: I0432dfcbea9e7bb20bca7574e25fb1fd8a51c8e9
2012-03-26 11:44:04 -04:00
Pascal Massimino
cd8c3ba78f
fix some warnings: down-cast and possibly-uninitialized variable
...
Change-Id: I5baf59bbcd5dcff69316b0601483ff5abe8e1454
2012-03-16 20:20:33 -07:00
pascal massimino
8abaf82083
Merge "silence some type size related warnings"
2012-02-09 19:21:39 -08:00
James Zern
1601a39b09
silence some type size related warnings
...
size_t/ptrdiff_t -> uint32_t
Change-Id: Ic4d889b9239752311b9ed906c83076829d850874
2012-02-09 13:00:09 -08:00
pascal massimino
f3abe520ac
Merge "idec: simplify buffer size calculation"
2012-02-09 01:25:00 -08:00
James Zern
a9c5cd4c97
idec: simplify buffer size calculation
...
Change-Id: Id0e20c44704ef9b0e14dcf5e71a05cea488fd95a
2012-02-08 14:29:25 -08:00
James Zern
5081db78be
configure/automake: no -version-info for convenience libs
...
Silences:
libtool: link: warning: `-version-info/-version-number' is ignored for
convenience libraries
Change-Id: I5705383b58f529fb06c2bf0932976b5a202446b6
2012-02-07 18:06:20 -08:00
pascal massimino
85b6ff6897
Merge "idec: fix WebPIUpdate failure"
2012-01-31 23:39:02 -08:00
James Zern
7bb6a9ccd6
idec: fix internal state corruption
...
A call to Append/Update would index the parts_ array w/-1 as num_parts_
had yet to be set by DecodePartition0. This would cause corruption
within the VP8Decoder member.
Fixes issue #106 .
Change-Id: Ib9f2811594ff19e948a66fda862a4e0a384bb9aa
2012-01-31 17:10:29 -08:00
James Zern
89cd1bb85b
idec: fix WebPIUpdate failure
...
If the first call to WebPIUpdate contained all of partition 0, but not
enough to decode a macroblock the test for max macro block size could
fail (4096 bytes) due to a memory buffer offset not being updated.
This change offsets the buffer in the same manner as Append().
Fixes issue #105 .
Change-Id: I90ca3d0dde92eedc076933b8349d2d297f2469e8
2012-01-31 16:55:10 -08:00
pascal massimino
631117ea5e
Merge "cosmetics & warnings"
2012-01-30 22:04:11 -08:00
James Zern
a0b2736d79
cosmetics & warnings
...
- remove some unused functions
- move global arrays from data to read only section
- explicitly cast malloc returns; not specifically necessary, but helps
show intent
- miscellaneous formatting
Change-Id: Ib15fe5b37fe6c29c369ad928bdc3a7290cd13c84
2012-01-30 17:19:53 -08:00
Pascal Massimino
f73947f41d
use 32bit for storing dequant coeffs, instead of 16b.
...
is a tad faster
Change-Id: Ibef8f3b4f3f04a9a647098e5946f616e211a61cd
2012-01-29 17:38:37 -08:00
Pascal Massimino
28a9d9b41a
speed-up GetResidualCost()
...
+ misc cosmetics and code polishing
Change-Id: I5830cd2f268d64c072b1cbccc0a4674833875055
2012-01-23 02:36:38 -08:00
Pascal Massimino
378086bd0a
misc cosmetics
...
Change-Id: Iafc73f9fece13b5ca900a8b9c1039268872a181b
2012-01-22 23:20:53 -08:00
Pascal Massimino
f0d2c7a76f
pass of cosmetics
...
Change-Id: Id031221b7499e8cfc460c873d0f8124c9bef3aa3
2012-01-17 18:32:27 -08:00
Vikas Arora
221a06bb16
Fix bug for Alpha in RGBA_4444 color-mode.
...
Fix bug for Alpha data in RGBA_4444 color-mode.
The Alpha data is required to be clipped [0, 15] while
converting from 8 bits to 4 bits.
Change-Id: I80705d575c35121beb9633a05ec8823435c79586
2012-01-09 14:07:30 +05:30
James Zern
ad1e163a0d
cosmetics: normalize copyright headers
...
Change-Id: I5e2462b101e0447a4f15a1455c07131bc97a52dd
2012-01-06 14:49:06 -08:00
James Zern
b1662b0530
fix some more type conversion warnings w/MSVC
...
API & memory related warnings will be dealt with separately
Change-Id: I8a7893baa4d5035c963fb3c16e0bb4eee742e968
2011-12-21 16:07:16 -08:00
Pascal Massimino
223d8c60aa
fix some uint64_t -> int conversion warnings with MSC
...
Change-Id: I5dc314c9d1a3cbda095be3c90886983500104867
2011-12-21 14:43:52 -08:00
James Zern
421eb99db3
Merge "Remove assigned-but-not-used variable "br""
2011-12-08 10:41:18 -08:00
Martin Olsson
a5d7ed5c4b
Remove assigned-but-not-used variable "br"
...
Fixes gcc 4.6.x -Wunused-but-set-variable compiler warning:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -Wextra -Wall -Wunused-but-set-variable -MT libwebpdecode_la-idec.lo -MD -MP -MF .deps/libwebpdecode_la-idec.Tpo -c idec.c -fPIC -DPIC -o .libs/libwebpdecode_la-idec.o
idec.c: In function 'DecodeRemaining':
idec.c:371:17: warning: variable 'br' set but not used [-Wunused-but-set-variable]
Change-Id: Ib037be9634b5b802ba9f1e2ef156a8fdf9630752
2011-12-08 15:42:01 +01:00
Pascal Massimino
f62d2c9497
remove unused 'has_alpha' from VP8GetInfo() signature
...
alpha information is not to be found at RIFF chunks level, not
in the VP8 bitstream (that was a tmp hack)
Change-Id: Idd1629c696b03c26f6f30650d7216f627f1761df
2011-12-08 06:41:40 -08:00