Commit Graph

48 Commits

Author SHA1 Message Date
eustas
c49918e1ee Update brotlimodule.cc 2016-01-25 12:07:39 +01:00
eustas
ca0ae4cbc0 Update brotlimodule.cc 2016-01-25 11:40:20 +01:00
eustas
a4f40c1b24 Fix brotlimodule compilation warnings 2016-01-25 11:39:05 +01:00
eustas
fec00d24e1 Make input const 2016-01-23 00:31:47 +01:00
eustas
a22993b312 Fix pointer dereferencing. 2016-01-22 14:09:25 +01:00
eustas
1f9106429a Remove deprecated API call 2016-01-22 14:01:46 +01:00
Cosimo Lupo
912b0ac2c4 brotlimodule.cc: fix error with clang ('expected a class or namespace') 2015-12-08 12:49:04 +00:00
Cosimo Lupo
8195a5c946 [brotlimodule.cc] set 'lgwin' valid range to [10..24] 2015-10-06 19:50:58 +01:00
Cosimo Lupo
82ffc4df57 [bro.py] set 'lgwin' valid range to [10..24] 2015-10-06 19:50:53 +01:00
Cosimo Lupo
3e67d48702 [brotlimodule.cc] remove C++11 vector::data() call 2015-10-05 11:09:11 +01:00
Zoltan Szabadka
b5c92e54a6 Add tools/version.h that conatins the brotli version.
This can be reused by all of the tools.
Set the version to the next git release tag.
2015-10-02 11:32:42 +02:00
Cosimo Lupo
8c7edd3e07 [bro.py] print --version as brotli.__version__ 2015-08-11 11:12:56 +01:00
Cosimo Lupo
ac33d35632 [brotlimodule.cc] add __version__ string attribute to brotli module 2015-08-11 11:12:54 +01:00
Cosimo Lupo
f14172902b [brotlimodule.cc] fix RuntimeError on OS X: keyword list must be NULL terminated
Sorry, my fault...
2015-08-11 11:09:47 +01:00
Cosimo Lupo
08212db733 [brotlimodule.cc] fix C++11 warning about conversion from string literal to 'char *' 2015-08-10 14:39:44 +01:00
Cosimo Lupo
d3dfc68922 [brotlimodule.cc] no longer expose deprecated BrotliParams: enable_dictionary, enable_transforms, greedy_block_split, enable_context_modeling 2015-08-10 14:38:17 +01:00
Cosimo Lupo
e356b9bc2f [roundtrip_test.py] repeat test at different quality (1, 6, 9, 11) 2015-05-11 14:12:37 +01:00
Cosimo Lupo
c93c0dab92 [bro.py] use brotli.MODE_GENERIC as default compression mode;
remove additional low-level parameters
2015-05-11 11:10:48 +01:00
Cosimo Lupo
aa6f7d8f0c [brotlimodule] add MODE_GENERIC constant 2015-05-11 11:09:36 +01:00
Cosimo Lupo
b7e8291788 [bro.py] remove debug print 2015-05-11 10:39:29 +01:00
Cosimo Lupo
4106a406d0 [bro.py] use new optional encoder parameters when compressing;
modified the help string to include the new parameters.
2015-05-11 10:39:28 +01:00
Cosimo Lupo
32c44ec87d [bro.py] use argparse instead of getopt 2015-05-11 10:39:26 +01:00
Cosimo Lupo
3351bb08e3 [brotlimodule] apply uniform docstring style 2015-05-11 10:39:24 +01:00
Cosimo Lupo
6d935db75c [brotlimodule] add quality, lgwin and lgblock parameters 2015-05-11 10:39:23 +01:00
Cosimo Lupo
dbcb32614a [brotlimodule] add enable_context_modeling parameter (defaults to True) 2015-05-11 10:39:21 +01:00
Cosimo Lupo
4c1d06931e [brotlimodule] add new keyword params docstring of brotli.compress 2015-05-11 10:39:20 +01:00
Cosimo Lupo
6264bea2e4 [brotlimodule] add greedy_block_split parameter (defaults to False);
renamed variables: transform -> enable_transforms, dictionary -> enable_dictionary
2015-05-11 10:39:18 +01:00
Cosimo Lupo
b2eba122c8 [brotlimodule] add enable_dictionary parameter (defautls to True) 2015-05-11 10:39:17 +01:00
Cosimo Lupo
89c74d6859 [brotlimodule] use keyword arguments for mode and enable_transforms;
update brotli.compress docstring accordingly
2015-05-11 10:39:15 +01:00
Cosimo Lupo
e6913b2e78 [python] use built-in split instead of 'string' module for py23
In python3, the 'string' module no longer has a 'split' function.
2015-05-08 10:06:18 +01:00
Zoltan Szabadka
10a2f3745a Handle multiple compressed files per original in the test.
Add some more test cases that decompress to the empty
file or a one byte long file. These test cases have
examples for the updated stream header and meta-block
header formats.
2015-05-07 20:43:01 +02:00
Cosimo Lupo
cdde52ef63 [python] refactored tests and import shared utilities from module 2015-04-22 17:54:56 +01:00
Cosimo Lupo
906f4f52ab [python] prepend build/lib folder to PYTHONPATH before running tests 2015-04-22 16:50:38 +01:00
Cosimo Lupo
b316cb747a [python] fix unbuffered binary mode for I/O streams in Windows pypy 2015-04-16 12:41:40 +01:00
Cosimo Lupo
77c239952d [python] moved setup.py to the root of repository 2015-03-31 09:30:56 +01:00
Cosimo Lupo
4865fd1d4f [python] add test command to setup.py 2015-03-30 10:20:50 +01:00
Khaled Hosny
fa7dd52da9 Fixing building Python module after 534654d 2015-03-27 18:56:18 +02:00
Cosimo Lupo
17866801d6 [python] fix calling python script as subprocess on Windows 2015-03-23 12:09:42 +00:00
Cosimo Lupo
203fe326d4 [python] fix subprocess shell pipeline 2015-03-22 00:15:54 +00:00
Cosimo Lupo
064d8e0bea [python] add new state.c and state.h to Brotli extension's setup.py 2015-03-21 20:05:02 +00:00
szabadka
4836e87d4c Merge pull request #38 from anthrotype/py_tests
add Python port of bro utility and scripts to test Brotli extension
2015-03-16 20:35:19 +01:00
szabadka
e651c85fe2 Merge pull request #37 from anthrotype/setup_py
[python] setup.py fixes for Windows
2015-03-16 20:33:14 +01:00
Khaled Hosny
e0c5df8c61 [python] Use BrotliDecompress()
So that we can use a callback to dynamically allocate the decompression
buffer, getting rid of the optional bufsize argument to
decompress.decompress().
2015-03-16 21:06:52 +02:00
Cosimo Lupo
b33e10e9dc add Python port of bro utility and scripts to test Brotli extension 2015-03-16 17:56:10 +00:00
Cosimo Lupo
3113fe7163 [setup.py] enable C++ exception handling on MSVC compiler to fix warning C4530 2015-03-16 16:55:07 +00:00
Cosimo Lupo
dec72c5931 [setup.py] use "-std=c++0x" only with GCC compiler (usupported on MSVC) 2015-03-16 16:54:59 +00:00
Cosimo Lupo
855efcf75c [python/setup.py] use relative paths instead of symlinks (unsupported on Win) 2015-03-16 16:54:27 +00:00
Khaled Hosny
11306237f4 Add Python bindings 2015-01-24 11:56:43 +02:00