Commit graph

209 commits

Author SHA1 Message Date
Christian Schneider
bdee02f9c7 Compression_Types_Disable for comfort mode
- more consistent to -t+/-t-
- makes -t- recommendation easier
2017-07-24 12:59:43 +02:00
Christian Schneider
3f973a2e44 Merge pull request #62 from schnaader/pr/61
preserve input file name
2017-07-24 11:35:33 +02:00
Christian Schneider
39333197f3 Lower case -t- recommendation 2017-07-24 11:15:48 +02:00
Christian Schneider
1c2cf7615f -t- recommendation for decompressed_count > 0 only
- Recommandation should be displayed when recompressed count is zero, but decompressed count is higher (e.g. 0/5 PNG). This way, only disabling the streams that actually slowed down processing is recommened (0/0 streams don't slow down the process)
2017-07-24 11:13:20 +02:00
Christian Schneider
78ed8160d2 Boolean operator fix
- Same boolean operator for PDF as for all others
2017-07-24 11:03:28 +02:00
Christian Schneider
b5da5d17b6 Some corrections for -t- recommendation
- GIF is F, not G
- Order changed (MP3 last) to match Precomp syntax order for -t
2017-07-24 11:02:31 +02:00
Christian Schneider
6bfe8a154f Remove "#define COMFORT" leftover 2017-07-24 10:54:41 +02:00
guptaprince8832
d596c0f603 Speed up recommendations with -t- options 2017-07-17 22:42:49 +05:30
guptaprince8832
1a8cbd3eb3 preserve input file name 2017-07-17 21:45:14 +05:30
Christian Schneider
2fcd184a6e lzma progress
- don't show it when recompressing (-r)
- show it when converting to lzma (-nl)
2017-06-27 07:16:05 +02:00
Christian Schneider
2b7fc2d2ed Merge branch 'master' into progress_with_io 2017-06-27 06:54:14 +02:00
Christian Schneider
f49298ca06 Merge pull request #58 from sftt/master
- Minor bugfix for Precomp Comfort
- Memory leak in packmp3 fixed
- Updated liblzma to 5.2.3
- x64 configuration in VS
2017-06-27 06:53:03 +02:00
Christian Schneider
e44733f5e0 Undo packJPG change
- The change succeeded in compressing the sample file from https://github.com/packjpg/packJPG/issues/4 , but lead to crashes on other files (see https://github.com/schnaader/precomp-cpp/pull/58 for two examples)
2017-06-20 07:03:56 +02:00
Christian Schneider
14ab46353b Add x64 VS build folders to .gitignore 2017-06-20 06:14:47 +02:00
Christian Schneider
ac6547273d x64 in VS without COMFORT 2017-06-19 06:57:42 +02:00
Christian Schneider
5374942d97 Better progress indication
- Progress of copying uncompressed bytes is shown
- Better bzip2 on-the-fly compression progress
- lzma on-the-fly compression: As this buffers internally and we do not know how much bytes will be written beforehand, it shows a seperate progress text (total/written/left lzma data in MiB)
- Use of std::string constructor instead of "\b\b\b..." strings
- No more "status strings" in DLL mode (e.g. "Precompressing: ")
- Time between progress updates set to 250 ms for both work sign and percentage
2017-06-16 07:31:37 +02:00
Christian Schneider
1dac54dfa5 Helper method for displaying progress 2017-06-11 11:47:05 +02:00
Christian Schneider
86fa069bec Fx issue #59
- Unhandled GIF_ERROR led to accessing uninitialized memory
2017-06-07 07:01:58 +02:00
Gavin Gao
fa2dc68704 Update to liblzma xz-5.2.3 released on 2016-12-30. 2017-05-04 11:41:35 +08:00
Gavin Gao
9081053eba Minor bugfixes for precomf/packmp3/packjpg
- Fixed init_comfort(): missing suppress_jpg_parsing_until
- Fixed memory leak and bad huffman table check in packMP3
    0c283d8e1c
- packjpg: add extra range to 172 when (1024+6-1)/6 = 171.5
    https://github.com/packjpg/packJPG/issues/4
- add x64 to VS project with BIT64;COMFORT;
2017-05-04 11:33:35 +08:00
Christian Schneider
d9f61c65d6 Adjusted help for -n
- Making it more clear that conversion is off by default
2017-04-05 16:51:54 +02:00
Christian Schneider
dcc1c648f2 Add parameters for LZMA memory and thread count
- Use at least the memory for LZMA preset 1
- Added methods for memory and thread defaults to avoid code duplication
- Fix: Precomp Comfort used invalid Compression_Method as default
- Fix: Use singular if only 1 thread is used
- Fix: precomp_dll.h had use_mp3 declared twice
2017-04-05 16:49:58 +02:00
Christian Schneider
2aab7dffa5 Preparing configurable LZMA max. memory/thread count 2017-04-05 15:30:02 +02:00
Christian Schneider
ea7af5f2fd Show LZMA block size 2017-04-05 13:44:45 +02:00
Christian Schneider
d1c9ca9f96 Add precomp_xz.h to VS project 2017-04-05 13:04:18 +02:00
Christian Schneider
725f8c381f Fix two wrong declarations in precomp.h 2017-04-05 13:02:29 +02:00
Christian Schneider
e8e24907e0 Add precomp.h to VS project 2017-04-05 12:59:25 +02:00
Christian Schneider
2112d8be7b Bump copyright year 2017-04-05 10:57:08 +02:00
Christian Schneider
998e690213 Merge branch 'guptaprince-zlib-1-2-11' 2017-04-05 10:39:35 +02:00
Christian Schneider
baf7d68dd8 Use old Makefile 2017-04-05 10:36:07 +02:00
Christian Schneider
5f2de4844c Removed unnecessary files
Re-added commented gzguts.h modification
2017-04-05 10:23:33 +02:00
Prince Gupta
e647bf7b96 Update README.md 2017-04-03 23:36:17 +05:30
Prince Gupta
88d5081582 update to zlib-1-2-11 2017-04-03 22:06:48 +05:30
Christian Schneider
55f78fd763 Fix garbled output with -nl
First percentage (0.00%) is shown after LZMA thread/memory usage now,
like it is in -cl mode
2017-03-28 07:21:10 +02:00
Christian Schneider
f86c9b420e Improve JPG parsing
- fixes JPG part of #52
- improves JPG parsing speed (issue #5)
2017-03-12 11:00:38 +01:00
Christian Schneider
7d4ab6554c Fix for MP3 part of #52
Incomplete MP3 frames were detected before, now they get discarded, too
2017-03-12 10:11:14 +01:00
schnaader
05a6e77880 liblzma Makefile uses std=gnu99
This fixes compile errors on e.g. Ubuntu
2017-02-28 06:48:37 +01:00
Christian Schneider
9ddc049521 Fix for incorrectly restored multi PNGs
- Using a signed int instead of an unsigned solves the issue
- Fixes #50
2017-01-02 11:32:08 +01:00
Christian Schneider
67091fcbbd Fix for slowdown on some files
- identical_bytes and compressed_stream_size don't have to be the same
anymore, as for some files they differ although decompressed bytes match
- tolerance for penalty bytes (5*32 bytes)
2017-01-02 11:22:01 +01:00
Christian Schneider
d64c1c55e4 Use -DBIT64 in Makefile, too 2017-01-02 10:03:13 +01:00
Christian Schneider
64a50242d7 Compile 64 bit versions by default 2017-01-02 10:00:47 +01:00
Christian Schneider
b0e9d813b6 Some Makefile changes
- make.bat: Use other GCC64/GPP64 defaults
- make.bat and Makefiles: No -fsched-spec-load, older compilers don't
support it
- make.bat and Makefiles: Use -std=c99 and -std=c++11 to make sure
everything compiles correct on different compilers
2017-01-02 09:50:57 +01:00
Christian Schneider
6abf077c27 Merge pull request #47 from jasarsoft/patch-1
fix error code C2061
2016-12-29 18:47:29 +01:00
Christian Schneider
db61f2c8e4 Merge branch 'master' into patch-1 2016-12-29 18:47:21 +01:00
Christian Schneider
c06b250ee7 Merge pull request #48 from jasarsoft/jasarsoft-fix-dll
fix use_mp3 param
2016-12-29 18:46:01 +01:00
Christian Schneider
b5b971c69f Merge branch 'master' into jasarsoft-fix-dll 2016-12-29 18:45:31 +01:00
Christian Schneider
942e417a2e Merge with lzma2 branch
Support multi-threaded lzma2 as compression method
2016-12-29 18:38:49 +01:00
Christian Schneider
a7a2b78feb Show lzma memory usage in MiB 2016-12-29 18:34:34 +01:00
Christian Schneider
28f3a72899 Use multithreaded lzma2 only 2016-12-29 18:31:47 +01:00
Christian Schneider
75c64cc1cb Disable misleading indendation warnings for packJPG and packMP3 2016-12-29 18:22:42 +01:00