Urvang Joshi
352a4f49ab
Get rid of PackLiteralBitLengths()
...
[and in turn a malloc]. Also, a few related const fixes.
Change-Id: I229519b1c34d41c78d9ad2403f1e25feab3c9d93
2012-05-07 14:24:31 -07:00
Vikas Arora
d673b6b9a0
Change the predictor function to pass left pixel
...
instead of pointer to the source.
Change-Id: Ia2c8e17c3140709a825c2f85a88c5e31bd6e462f
2012-05-07 14:24:29 -07:00
Urvang Joshi
b2f99465a7
Fix CopyTileWithPrediction()
...
so that it uses original values of left, top etc for prediction rather than the
predicted values of the same. Also, do some renaming in the same to make it
more readable.
Change-Id: I2fe94e35a6700bd437f5c601e2af12323bf32445
2012-05-07 14:24:27 -07:00
Vikas Arora
84547f540c
Add EncodeImageInternal() method.
...
Most of changes in enc/vp8l.c is cherry-picked from src/lossless/encode.c
Change-Id: I27938cb2590eccbfe1db0a454343e856bd483e75
2012-05-07 14:24:25 -07:00
Urvang Joshi
6b38378acb
Guard the lossless encoder (in flux) under a flag
...
Change-Id: I6dd8fd17089c199001c06b1afde14233dc3e3234
2012-05-07 14:24:23 -07:00
Vikas Arora
09f7532cce
Fix few nits (const qualifiers)
...
Change-Id: I527e82af49956b695ab18625d34e143854067421
2012-05-07 14:24:21 -07:00
Vikas Arora
648be3939f
Added implementation for various lossless functions
...
- VP8LEncAnalyze, EvalAndApplySubtractGreen, ApplyPredictFilter,
ApplyCrossColorFilter
- Added palette handling and transform buffer management in VP8LEncodeImage()
- Add Transforms (subtract Green, Predict, cross_color) to dsp/lossless.c.
These are more-or-less copied from src/lossless code.
After this Change, will implement the EncodeImageInternal() method.
Change-Id: Idf71f803c24b3b5ae3b5079b15e019721784611d
2012-05-07 14:24:19 -07:00
Vikas Arora
32714ce3be
Add VP8L prefix to backward ref & histogram methods.
...
Change-Id: I8c14fb219a1d7830d3244aa780c91c9964867330
2012-05-07 14:24:17 -07:00
Vikas Arora
fcba7be2d3
Fixed header file tag (WEBP_UTILS_HUFFMAN_ENCODE_H_)
...
Change-Id: I7ccd00361b1b0347639b05ee494e8e701c95cfe3
2012-05-07 14:24:16 -07:00
Vikas Arora
bc7037465d
Add backward_ref, histogram & huffman encode modules from lossless.
...
Change-Id: Iac056d27972956782defa182caa3ea400cdb77f8
2012-05-07 14:24:14 -07:00
Vikas Arora
fdccaaddcf
Fixing nits
...
- Const Handling of picture object, removed bitwriter from encoder.
Change-Id: Id943854de09324de81cca615ada960390c4b8152
2012-05-07 14:24:12 -07:00
Vikas Arora
227110c4c3
libwebp interface changes for lossless encoding.
...
Change-Id: I703a1a18347acf78378cb23fddc6e5ca6dc6a0bb
2012-05-07 14:24:09 -07:00
James Zern
c04eb7be9d
tcoder.c: define NOT_HAVE_LOG2 for MSVC builds
...
no version of msvc currently implements log2(). unconditionally define
NOT_HAVE_LOG2 in this case to simplify building libwebp sources in other
projects.
Change-Id: Ia9d985b1125553c5a8271d7e539bc1b4f898d749
2012-05-03 16:59:13 -07:00
pascal massimino
9a214fa112
Merge "VP8[L]GetInfo: check input pointers"
2012-05-02 16:07:47 -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
b3515c6215
mux: drop 'chunk' from ChunkInfo member names
...
fixes naming style (members should be lowercase, not camelcase).
Change-Id: I431acdfe3cc3740d9effe9df80a94ca284a072b6
2012-05-01 17:47:18 -07:00
James Zern
aea7923ca2
muxi.h: remove some unused defines
...
Change-Id: I713659b7ed83bafedd94a0b16379decea293a2f0
2012-05-01 17:47:11 -07:00
James Zern
29e3f7ec75
Merge "dec: remove deprecated WebPINew()"
2012-05-01 11:26:31 -07:00
pascal massimino
4718e44988
Merge "muxedit: a few more size_t changes"
2012-04-28 03:04:08 -07:00
pascal massimino
82654f961d
Merge "muxedit: remove a few redundant NULL checks"
2012-04-28 02:50:27 -07:00
James Zern
02f27fbd3b
dec: remove deprecated WebPINew()
...
Change-Id: I22ad1d297333f5ebc84456d142426a4e0e9a044b
2012-04-27 19:47:35 -07:00
James Zern
ccddb3fc6f
muxedit: remove a few redundant NULL checks
...
Change-Id: I8285a7694d40b0f5c986dbfe40703251682eaafc
2012-04-27 19:06:03 -07:00
James Zern
a6cdf7107a
muxedit: a few more size_t changes
...
Change-Id: I18266dc572426cb3daace6e0ad8f2ae21687a151
2012-04-27 18:53:08 -07:00
pascal massimino
a384689292
Merge "mux: remove unused LIST_ID"
2012-04-27 03:03:34 -07:00
James Zern
11ae46ae91
alpha.c: quiet some size_t -> int conversion warnings
...
Change-Id: I52026a9271bde4028f00df2d752e100c61fd3fe3
2012-04-26 18:47:08 -07:00
James Zern
dee466926b
mux: remove unused LIST_ID
...
The 'LIST' fourcc is not a well known value in the context of webp.
Change-Id: I6a571f5f3acd6463cf3cad7c5d5ffa89d0597fb6
2012-04-25 18:18:25 -07:00
James Zern
03f1f49321
mux: add version checked entry points
...
Change-Id: I3bf5b25b17c06ec092f8ad1c14eea411aa9471c1
2012-04-25 17:27:16 -07:00
Pascal Massimino
c8139fbe5d
Merge "few cosmetics"
2012-04-24 23:47:06 -07:00
pascal massimino
683387374b
Merge "lossless: remove some size_t -> int conversions"
2012-04-24 23:41:26 -07:00
James Zern
d96e722b0c
huffman: quiet int64 -> int conversion warning
...
children_ is bounded by max_nodes_ and protected with IsFull checks
Change-Id: Iac1eb03c5030568140352174c1265a938fc28d97
2012-04-24 16:17:36 -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
1427ca8eae
Merge "Makefile.am: header file maintenance"
2012-04-24 10:41:59 -07:00
Pascal Massimino
087332e394
Merge "remove unused parameter 'round' from CalcProba()"
2012-04-24 06:41:54 -07:00
Pascal Massimino
9630e16854
remove unused parameter 'round' from CalcProba()
...
Change-Id: I0d89c34565decb28776aee7500ebd261fc43caf7
2012-04-24 06:40:19 -07:00
pascal massimino
92092eaa45
Merge "bit_reader.h: correct include"
2012-04-24 04:19:24 -07:00
pascal massimino
a87fc3f609
Merge "mux: ensure # images = # tiles"
2012-04-24 04:18:35 -07:00
pascal massimino
53af99b18f
Merge "mux: use size_t consistently"
2012-04-24 04:09:44 -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
James Zern
1bd0bd0d4d
bit_reader.h: correct include
...
use webp/types.h rather than webp/decode_vp8.h
Change-Id: I9c6da04b92ff00d6dac47ce3eb0bcb2d6a96712d
2012-04-23 17:04:22 -07:00
James Zern
326a3c6bdc
mux: ensure # images = # tiles
...
when a file contains tiles an image outside of a tile is not allowed.
Change-Id: I5d16759abc9aa9bb299103b2cd7d694fc9c89697
2012-04-23 16:44:37 -07:00
James Zern
95667b8d86
mux: use size_t consistently
...
remove mixed use of uint32_t
Change-Id: I57f701a0d9fce255c4dd83c01e523079976ef5b5
2012-04-23 11:00:20 -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
Pascal Massimino
15ebcbaaf4
check return pointer from MuxImageGetListFromId
...
previously, it could crash with nth=1 on a raw vp8 bitstream, e.g.
Change-Id: Ice555d95b984ba71017fc56314d0c2c1b5bdf599
2012-04-23 08:22:58 -07:00
James Zern
b08819a624
dsp/lossless: silence some build warnings
...
src/dsp/lossless.c: In function 'VP8LInverseTransform':
src/dsp/lossless.c:312:23: warning: 'packed_pixels' may be used
uninitialized in this function [-Wuninitialized]
src/dsp/lossless.c:304:16: note: 'packed_pixels' was declared here
src/dsp/lossless.c:258:34: warning: 'm.red_to_blue_' may be used
uninitialized in this function [-Wuninitialized]
src/dsp/lossless.c:275:17: note: 'm.red_to_blue_' was declared here
src/dsp/lossless.c:257:34: warning: 'm.green_to_blue_' may be used
uninitialized in this function [-Wuninitialized]
src/dsp/lossless.c:275:17: note: 'm.green_to_blue_' was declared here
src/dsp/lossless.c:255:33: warning: 'm.green_to_red_' may be used
uninitialized in this function [-Wuninitialized]
src/dsp/lossless.c:275:17: note: 'm.green_to_red_' was declared here
patch by pepijn vaneeckhoudt
Change-Id: Iffa4764487a75479df45e772169325cd9ee60d94
2012-04-20 12:35:35 -07:00
James Zern
2e75a9a1ba
Merge "decode.h: use size_t consistently"
2012-04-19 22:49:47 -07:00
James Zern
4cce137ebf
Merge "enc_sse2 add missing stdlib.h include"
2012-04-19 15:51:53 -07:00
James Zern
80256b8567
enc_sse2 add missing stdlib.h include
...
lost in fbd82b5; most platforms were getting it indirectly through
emmintrin.h.
Change-Id: I310f8bc8e82d63cfbde74c34cd21b72514a16a01
2012-04-19 15:47:58 -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