Urvang Joshi
479d19085d
webpmux: Also print compression info per frame.
...
As per the user request:
https://groups.google.com/a/webmproject.org/forum/#!topic/webp-discuss/dk9M-q1MFnw
Change-Id: Id2540413a89e1f043e50abb0cec7c69367ee8325
2016-07-08 15:44:38 -07:00
Pascal Massimino
df9f6ec829
Merge "webpmux/DisplayInfo: send non-error output to stdout"
2015-09-26 05:36:40 +00:00
James Zern
cc020a8c96
webpmux/DisplayInfo: send non-error output to stdout
...
Change-Id: I4ed0d10e4a7cbc8f2d204b33a483990f1ace58ff
2015-09-25 18:49:08 -07:00
James Zern
bef8e97d5d
webpmux: fix type conversion warning
...
Change-Id: I65de23f376570346a9489c2116a0effa60345157
2015-09-25 18:42:31 -07:00
James Zern
ac79ed19ef
webpmux: remove experimental fragment handling
...
Change-Id: I1c418b76b43dfb20cbf7f97d7011ca0d76472ba0
2015-01-08 20:03:51 -08:00
James Zern
924fcfd900
Merge "webpmux: simplify InitializeConfig()"
2014-09-12 00:43:06 -07:00
James Zern
c0a462cac2
webpmux: simplify InitializeConfig()
...
put WebPMuxConfig on the stack in main() rather than allocating it in
InitializeConfig(); removes a level of indirection there.
Change-Id: I81d386f7472ebbd322dd3fdbfda9d78dbeb62a66
2014-09-12 00:23:06 -07:00
James Zern
6986bb5e12
webpmux: fix indent
...
+ remove unnecessary cast
Change-Id: I2070fbe6aeda49f5790c69390e5b539a2c1a5616
2014-09-12 00:11:56 -07:00
James Zern
f89e1690df
webpmux: fix exit status on numeric value parse error
...
in most cases 'ok' is set via a goto macro
Change-Id: I17c832446bf3e716d3bcd323dbcc72bec544029c
2014-09-12 00:10:09 -07:00
James Zern
0e23c487da
webpmux: fix loop_count range check
...
explicitly check [0, 65535], the use of 'long' was removed in a prior
commit
Change-Id: I70d5bf286908459b5d4d619c657853f0e833b6ea
2014-09-11 15:26:11 -07:00
James Zern
96d43a873a
examples: warn on invalid numeric parameters
...
add ExUtilGet[U]Int / ExUtilGetFloat which print an error message on
parse failure.
fixes issue #219 .
Change-Id: Ie537f5aebd138925bf1a48289b6b5e261b3af2ca
2014-09-11 11:18:28 -07:00
James Zern
e80eab1fbc
webpmux: (windows) open stdout in binary mode
...
prevents corrupt output. related to issue #217
Change-Id: I6f0dac8131127717ba72b0709fb35d421ab41acb
2014-08-29 19:25:45 -07:00
skal
0b747b1b39
use explicit size of kErrorMessages[] arrays
...
Change-Id: If02864e3a07ae37814bf379bf347862cd2871bf4
2014-07-21 13:21:56 -07:00
James Zern
c6af999168
Merge "dust up the help message"
2014-06-19 23:12:02 -07:00
skal
0a8b8863cc
dust up the help message
...
* try to avoid trailing '.'
* rationalize capitalization
Change-Id: I50939baf01b1ab44d3031eee916ba51f2338af8a
2014-06-20 07:13:11 +02:00
James Zern
c072663493
webpmux: warn when odd frame offsets are used
...
offsets are stored as (x/2, y/2)
Change-Id: Ic8f727ab7996a84c1f8c57f4f6dbaf8701bf8eae
2014-06-18 10:47:23 -07:00
James Zern
32b3137936
configure: move config.h to src/webp/config.h
...
this change has the side-effect of using directory names in the
include, silencing a lint warning.
Change-Id: Ib91cf63a90534e32fadfa5c2372bfdb29f854d02
2014-06-10 23:42:00 -07:00
James Zern
b4fa0a47ea
webpmux: let -- stop parameter parsing
...
this enables webpmux to accept input files starting with '-' when using
-get/-set/-strip; -info & -frame expect an input file as one of their
parameters so no changes are necessary there.
Change-Id: I154eb6dc388258a7fb743ec76ba869bf9589be1b
2013-12-17 20:50:46 -08:00
Urvang Joshi
54b8e3f6e2
webpmux: DisplayInfo(): remove unnecessary error checks.
...
As WebPMuxCreate() would have succeeded by then, many of the calls
cannot fail.
Change-Id: I3220c59e9aa47c948da9f8741b4098c47b91a8fc
2013-09-18 11:44:24 -07:00
Urvang Joshi
0e6747f88d
webpmux -info: display dimensions and has_alpha per frame
...
Also, more readable dispose and blend methods.
Change-Id: I318431f94dcdee4c5da296a48e6f3762aa254c1f
2013-09-16 15:29:24 -07:00
Urvang Joshi
e81fac86dd
Add support for "no blend" in webpmux binary
...
Change-Id: I6d07b120626317df73f1a6f026931c5b9485a340
2013-08-26 18:04:52 -07:00
Urvang Joshi
6284854bd5
Support for "Do not blend" in mux and demux libraries
...
Change-Id: I9566a8e2d059fe1ebd9ca99c7e13311bf3f8f281
2013-08-12 11:49:00 -07:00
James Zern
d640614d54
update copyright text
...
rather than symlink the webm/vpx terms, use the same header as libvpx to
reference in-tree files
based on the discussion in:
https://codereview.chromium.org/12771026/
Change-Id: Ia3067ecddefaa7ee01550136e00f7b3f086d4af4
2013-06-06 23:09:14 -07:00
skal
3e59a74d72
fix two minor memory leaks in webpmux
...
(only occur in case of error)
Change-Id: Icab69bb364b77f8eae6cae91047354c27e610602
2013-05-22 00:58:53 +02:00
pascal massimino
ed6f53086b
Merge "Add GetCanvasSize() method to mux"
2013-05-08 01:53:22 -07:00
Urvang Joshi
fffefd18c3
Add GetCanvasSize() method to mux
...
Change-Id: If910f5024f4c301a92e6c2e8ee9c315a103c5df7
2013-05-07 12:47:48 -07:00
Pascal Massimino
a4e1cdbbe8
Remove the gcc compilation comments
...
They went out of sync some time ago, and are
no longer really required since we have them
buildable from makefile.unix
Change-Id: Ica2dcf5c55f44365598f832f55204d123d7aa601
2013-05-01 15:01:37 -07:00
Urvang Joshi
6393fe4b7c
Cosmetic fixes
...
Change-Id: I7d5a337077ba1d0406769190fef9b47146ed8b24
2013-04-26 15:55:42 -07:00
James Zern
14d42af207
examples: don't use C99 %zu
...
this would require a PRIuS or similar macro for proper platform
compatibility (Visual Studio for instance would be variants of %lu)
Change-Id: I1af530c7c358c91b845acde1d8c12ef46c2ef746
2013-03-20 16:59:35 -07:00
James Zern
0d6927d3cd
Merge "Mark fragment options as experimental in webpmux" into 0.3.0
2013-03-16 10:45:52 -07:00
Urvang Joshi
5dbd403029
Mark fragment options as experimental in webpmux
...
This is to disallow any accidental creation/parsing of fragmented images
by users.
Change-Id: I970a4bd5ec5a522867b24a0c9efb45164ae67047
2013-03-16 04:07:19 -07:00
James Zern
50eeddad3d
Merge "examples: normalize icc related program arguments" into 0.3.0
2013-03-15 16:37:30 -07:00
James Zern
d8dc72a039
examples: normalize icc related program arguments
...
use 'icc' rather than 'iccp'.
Change-Id: I9667f286bfa1cfeb0ac49148ba341d268b051b98
2013-03-14 19:05:22 -07:00
Urvang Joshi
7681bb961d
webpmux binary: tiny style fix
...
Change-Id: I195929d79940cd3d060977ef7feee9cd13f7d041
2013-03-13 18:10:56 -07:00
James Zern
8fab161a3f
webpmux: correct -frame param order in help output
...
params were reordered to +duration+x offset+...
Change-Id: I99e8a70c8a645552238294ab82c3f7ffe01e70bd
2013-03-07 19:15:37 -08:00
Urvang Joshi
a5042a3240
GetVersion() methods for mux and demux
...
Also use the same in example binaries.
Change-Id: Id4bb4c4231a6b8fe9ed4370a6f46567c52a04a17
2013-02-26 14:22:06 -08:00
skal
0d19fbff51
remove some -Wshadow warnings
...
these are quite noisy, but it's not a big deal to remove
them.
Change-Id: I5deb08f10263feb77e2cc8a70be44ad4f725febd
2013-01-22 23:06:28 +01:00
skal
4860008483
Change the order of -frame argument to be more natural
...
Now, its: +duration+xoffset+yoffset+disposal
+disposal can be omitted and will default to +0 (NONE)
additionally, +xoffset+yoffset can be omitted and will default to +0+0
Change-Id: I62138c9f675d4fc4408305babbcd485cb32b73d3
2012-11-14 06:19:31 +01:00
Urvang Joshi
7caab1d8f6
Some cosmetic/comment fixes.
...
Change-Id: Id0613f84cc53fcbeceb913c835a262451687e27b
2012-11-09 10:46:38 -08:00
Urvang Joshi
fa30c86323
Update mux code to match the spec wrt animation
...
- Allow a duration of 0
- Rename LOOP chunk to ANIM and add the background color field to it.
- Add a disposal method field for each animation frame.
- Modify webpmux.c binary interface to allow the input of background color
and disposal methods. Also make '-loop' and '-bgcolor' arguments optional
with some default values.
Change-Id: I807372a61cdb8a0d3080ae3552caf2848070bf4d
2012-11-07 11:43:06 -08:00
Urvang Joshi
a00a3daf5b
Use 'frgm' instead of 'tile' in webpmux parameters
...
- Also, use the term 'fragments' instead of 'tiling' in code
- This makes code consistent with the spec.
Change-Id: Ibeccffc35db23bbedb88cc5e18e29e51621931f8
2012-11-06 16:09:10 -08:00
Urvang Joshi
f903cbab9a
Chunk fourCCs for XMP/EXIF
...
Use separate fourCCs "XMP " and "EXIF" instead of a common "META"
Also, some refactorization in webpmux.c
Change-Id: Iad3337e5c1b81e785c60670ce28b1f536dd7ee31
2012-11-06 14:53:21 -08:00
Urvang Joshi
a077072777
mux struct naming
...
members of public structs should not have a trailing underscore.
Change-Id: Ieef42e1da115bf42b0ea42159701e32bed7b9f60
2012-10-31 11:37:49 -07:00
Urvang Joshi
92f8059ce4
Rename some chunks:
...
TILE --> FRGM and FRM --> ANMF
Change-Id: I752f90b950413501aecb021a8f57882da0e01484
2012-10-30 15:02:15 -07:00
Urvang Joshi
d0c79f0552
Mux API change:
...
Create common APIs for image, frame and tile.
Change-Id: I709ad752133094bd5bc89dd9c832ff79802aac68
2012-10-30 14:16:29 -07:00
Urvang Joshi
f6c096aad3
webpmux binary: Rename 'xmp' option to 'meta'
...
Change-Id: I00d7d2aa43ccb1e86b58e75e8677ea8ef7e1226e
2012-08-29 22:24:10 -07:00
Urvang Joshi
ddfe871a51
webpmux help correction
...
Clarify 'SET_OPTIONS'
Change-Id: I623ea955beb2a800709412b914a257abd95266cc
2012-08-29 22:23:12 -07:00
Urvang Joshi
1c04a0d438
Common APIs for chunks metadata and color profile.
...
Change-Id: Ie105ce913c0b56e34cc26fd7ec397103354f268a
2012-08-29 08:21:43 -07:00
Urvang Joshi
ab3234ae6b
Create WebPMuxFrameInfo struct for Mux APIs
...
Change-Id: I1f3b15d679280b5347124e1d59865a3df089043b
2012-08-23 15:18:51 +05:30
Urvang Joshi
a4b9b1c604
Remove some unused enum values.
...
- WEBP_MUX_INVALID_PARAMETER: was used only at one place, and that too
should actually be an assert().
- WEBP_MUX_ERROR: was never used.
Change-Id: I8883cb4dfae7a7918507501f21fced0c04dda36a
2012-07-19 11:23:37 +05:30